atitit.啟用一個視窗總結 swing java .net php

來源:互聯網
上載者:User
atitit.啟用一個視窗總結

1 啟用視窗:滑鼠啟用vswindows訊息啟用... 1

1.1 Web架構啟用... 1

2 退出啟用視窗熱鍵(dbg模式)... 1

3 倆個視窗啟用優先順序... 2

4 Web控制項啟用?code. 3

1 啟用視窗:滑鼠啟用vs windows訊息啟用

原則上儘可能的使用訊息啟用。。

WinGet, active_id2, ID, ahk_classSunAwtFrame

;MsgBox%active_id2%

WinActivate, ahk_class SunAwtFrame

1.1 Web架構啟用

使用訊息不能啟用 。。ControlFocus,InternetExplorer_Server

ControlFocus,InternetExplorer_Server1

只好使用滑鼠啟用。。(滑鼠左右鍵均不適合啟用用,中建啟用最好了。。。

final Robot rb = new Robot();

clickMidKeyMouse(rb,50);

作者:: 老哇的爪子 Attilax 艾龍, EMAIL:1466519819@qq.com

2 退出啟用視窗熱鍵(dbg模式)

#c:: ExitApp ::win+c

要放的個loop 後面了。。被而不個cant exe

3 倆個視窗啟用優先順序

DetectHiddenWindows, On

Loop

{

;class PowerDVD14

;PowerDVD

;ahk_classPowerDVD14

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

WinActivate,ahk_classPowerDVD14

WinMaximize,ahk_classPowerDVD14

;;,,Everything,Everything

;MsgBox aa

IfWinNotExist,ahk_class PowerDVD14

{

WinGet,active_id2, ID, ahk_class SunAwtFrame

;MsgBox%active_id2%

WinActivate, ahk_class SunAwtFrame

ControlFocus,InternetExplorer_Server

ControlFocus,InternetExplorer_Server1

}

;msgbox tt

Sleep, 3000

}

#c:: ExitApp

4 Web控制項啟用?code

publicstaticvoid activeWin() throws AWTException {

while(true)

{

try {

booleanexistPower=false;

try {

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

intactsleep=3000;

try {

actsleep=Integer.parseInt(playserver);

} catch (Exception e) {

// TODO: handle exception

}

start: Thread.sleep(actsleep);

} catch (InterruptedException e) {

// TODO Auto-generated catch block

e.printStackTrace();

}

List set=ProcessX. getProcessList();

// Listlst=

for (String line : set) {

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

{

System.out.println("exist dvd ");

existPower=true;

break ;

}

}

if(existPower) // if sexist power dvd ,,b actselect win..

continue;

System.out.println("---no exist dvd");

final Robot rb = new Robot();

clickMidKeyMouse(rb,50);

} catch (Exception e) {

e.printStackTrace();

}

}

}

參考

proj。atibrow

actPlayWin.ahk

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.