atitit.激活一个窗口总结 swing java .net php

php中文网
发布: 2016-06-23 13:36:54
原创
1393人浏览过

atitit.激活一个窗口总结

 

 

1     激活窗口:鼠标激活vswindows消息激活... 1

1.1      Web框架激活... 1

立即学习PHP免费学习笔记(深入)”;

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

BibiGPT-哔哔终结者
BibiGPT-哔哔终结者

B站视频总结器-一键总结 音视频内容

BibiGPT-哔哔终结者 28
查看详情 BibiGPT-哔哔终结者

              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

 

Windows激活工具
Windows激活工具

Windows激活工具是正版认证的激活工具,永久激活,一键解决windows许可证即将过期。可激活win7系统、win8.1系统、win10系统、win11系统。下载后先看完视频激活教程,再进行操作,100%激活成功。

下载
来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号