4 Web コントロールのアクティブ化 - コード

WBOY
リリース: 2016-06-13 12:17:46
オリジナル
910 人が閲覧しました

atitit. ウィンドウの概要をアクティブ化します。 java .net php

atitit. ウィンドウの概要をアクティブ化します。

1

ウィンドウをアクティブ化します。 : マウスのアクティブ化と Windows メッセージのアクティブ化 ... 11.1

Web フレームワークのアクティブ化... 12

アクティブ化ウィンドウの終了ホットキー (dbg モード)... 13

2 つのウィンドウ アクティブ化の優先順位...24

Web コントロールのアクティブ化 - コード3

1 アクティブ化ウィンドウ: マウスによるアクティブ化と Windows のメッセージによるアクティブ化

原則として、可能な限りメッセージを使用します活性化。 。

WinGet, active_id2, ID, ahk_classSunAwtFrame

;MsgBox�tive_id2%

WinActivate, ahk_class SunAwtFrame

1.1 Web フレームワークのアクティブ化

メッセージの使用を有効にすることはできません。 。 ControlFocus,InternetExplorer_Server

ControlFocus,InternetExplorer_Server1

はマウスでのみアクティブ化できます。 。 (マウスの左右のボタンはアクティベーションには適していません。アクティベーションには China Construction が最適です...

final

Robotrb = 新しい Robot();

clickMidKeyMouse(rb,50);

作者::老Wow's Claw Attilax Ailong, EMAIL: [email protected]

転載する場合は出典を示してください: http://blog.csdn.net/attilax

2 終了アクティブ化ウィンドウのホット キー (dbg モード)

#c:: ExitApp ::win+c

はループの後ろに配置されます。 exe

3 2 つのウィンドウ アクティブ化の優先順位

DetectHiddenWindows、On

ループ

{

;クラス PowerDVD14

;PowerDVD

;ahk_classPowerDVD14

WinGet,active_id, ID, PowerDVD,,Everything,Everything

WinActivate,ahk_classPowerDVD14

WinMaximize,ahk_classPowerDVD14

;;,,すべて,すべて

;MsgBox aa

IfWinNotExist,ahk_class PowerDVD14

2%

WinActivate、ahk_class SunAwtFrame

ControlFocus,InternetExplorer_Server

ControlFocus,InternetExplorer_Server1

}

;msgbox tt

スリープ、3000

}

#c :: ExitApp

4 Web コントロールのアクティブ化 - コード

public

static

void activeWin()throws AWTException {

while(true)

{

試してみる {

booleanexistPower=false;

試してみましょう {

文字列 playserver=PropX.getConfig(pathx.classPath()+"/cfg.properties", "actsleep");

intactsleep=3000;

試してください {

actsleep=Integer.parseInt(playserver);

} catch (例外e) {

//TODO: 例外を処理します

}

start: スレッド。sleep(actsleep);

} catch (InterruptedExceptione) {

//TODO 自動生成された catch ブロック

e.printStackTrace();

}

List set=ProcessX。  getProcessList();

//Listlst=

for (Stringline : set) {

if(line.contains("PowerDVD.exe") || .contains("PowerDVDMovie"))

{

システム。out .println("exist DVD ");

existPower=true;

break ;

}

}

if(existPower) // if 性差別的な権力 DVD 、、 b は勝利を選択します。

続行;

System.out.println("--- DVD が存在しません") ;

最終 ロボットrb = 新しい Robot();

clickMidKeyMouse(rb,50);

} キャッチ (例外 e) {

e.printStackTrace();

}

}

}

参考

プロジェクトatibrow

actPlayWin.ahk

関連ラベル:
ソース:php.cn
このウェブサイトの声明
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。
人気のチュートリアル
詳細>
最新のダウンロード
詳細>
ウェブエフェクト
公式サイト
サイト素材
フロントエンドテンプレート
私たちについて 免責事項 Sitemap
PHP中国語ウェブサイト:福祉オンライン PHP トレーニング,PHP 学習者の迅速な成長を支援します!