您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息
三六零分类信息网 > 大庆分类信息网,免费分类信息发布

4 Web控件激活—code

2025/12/9 6:20:34发布9次查看
atitit.激活一个窗口总结 swing java .net php
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 robotrb = new robot();
 clickmidkeymouse(rb,50);
作者:: 老哇的爪子 attilax 艾龙,  email:[email protected]
转载请注明来源: http://blog.csdn.net/attilax
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 (exceptione) {
                   //todo: handle exception
                }
            start: thread.sleep(actsleep);
            } catch (interruptedexceptione) {
                //todo auto-generated catch block
                e.printstacktrace();
            }
            listset=processx.  getprocesslist();
         //listlst=
            for (stringline : 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 robotrb = new robot();
clickmidkeymouse(rb,50);
         } catch (exceptione) {
            e.printstacktrace();
         }
}
   }
参考
proj。atibrow
actplaywin.ahk
大庆分类信息网,免费分类信息发布

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product