atitit.激活一个窗口总结 swing java .net php
atitit.激活一个窗口总结
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
转载请注明来源: 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 (Exception
e) {
//
TODO: handle exception
}
start: Thread.sleep(actsleep);
} catch (InterruptedException
e) {
//
TODO Auto-generated catch block
e.printStackTrace();
}
List<String>
set=ProcessX. getProcessList();
//
List<String>lst=
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
atitit.激活一个窗口总结 swing java .net php的更多相关文章
- Atitit. 悬浮窗口的实现 java swing c# .net c++ js html 的实现
Atitit. 悬浮窗口的实现 java swing c# .net c++ js html 的实现 1. 建立悬浮窗口引用代码 1 1.1. 定义悬浮窗口,设置this主窗口引用,是为了在悬浮窗口中 ...
- Atitit。Js调用后台语言 java c# php swing android swt的方法大总结
Atitit.Js调用后台语言 java c# php swing android swt的方法大总结 1. Js调用后台语言有三种方法1 2. Swt BrowserFunction 绑定方法 ...
- VC程序只运行一个实例,并在打开多个时激活原窗口
(一)单文档应用程序 1.在应用程序类C~~App::InitInstance()函数中判断是否已有一个应用程序实例正在运行 BOOL C~~App::InitInstance() { . ...
- Java坦克大战 (一) 之产生一个窗口
本文来自:小易博客专栏.转载请注明出处:http://blog.csdn.net/oldinaction 在此小易将坦克大战这个项目分为几个版本,以此对J2SE的知识进行回顾和总结,希望这样也能给刚学 ...
- Atitit onvif 协议截图 getSnapshotUri 使用java
Atitit onvif 协议截图 getSnapshotUri 使用java 1.1. ONVIF Device Test Tool1 1.2. 源码2 1.3. 直接浏览器访问http://192 ...
- atitit..代码生成流程图 流程图绘制解决方案 java c#.net php v2
atitit..代码生成流程图 流程图绘制解决方案 java c#.net php v2 1.1. Markdown 推荐,就是代码和flow都不能直接使用.1 1.2. Java code2fl ...
- Atitit.excel导出 功能解决方案 php java C#.net版总集合.doc
Atitit.excel导出 功能解决方案 php java C#.net版总集合.docx 1.1. Excel的保存格式office2003 office2007/2010格式1 1.2. 类库选 ...
- atitit.泛型编程总结最佳实践 vO99 java c++ c#.net php
atitit.泛型编程总结最佳实践 vO99 java c++ c#.net php \ 1. 泛型历史 1 由来 1 2. 泛型的机制编辑 1 机制 1 编译机制 2 3. 泛型方法定义1::前定义 ...
- atitit.技术选型方法总结为什么java就是比.net有前途
atitit.技术选型方法总结为什么java就是比.net有前途 #----按照不同的需要有不铜的法... 一般有开发效率,稳定性上的需要.. 作者 老哇的爪子 Attilax 艾龙, EMAIL: ...
随机推荐
- 【jQuery】select动态追加的option选中
var turnUpHidden = $("input[name='turnUpHidden']").val(); if(turnUpHidden != "") ...
- HTML:基本的标签
概述: <html></html>标准的语言格式,回环标签,有头和躯体部分,头里面一般显示标题title,躯体部分显示内容:背景色.文字.图片.超链接.表格.表单等. 可以直接 ...
- 数学图形(2.13)Spherical trochoid曲线
该曲线与上一节的herical cycloid球面外摆曲线 很相似,难道这是球面内摆曲线? #http://www.mathcurve.com/courbes3d/cycloidspheric/tro ...
- Jni本地多线程回调Java函数,env->findClass()失败。
遇到的问题,Native层本地多线程回调Java函数时env->findClass()失败. 前面的代码是这样的在 JNI_OnLoad记录全局变量g_vm static JavaVM* g_v ...
- http://blog.csdn.net/steveguoshao/article/details/38414145
http://blog.csdn.net/steveguoshao/article/details/38414145
- 解决.NET 调用JAVA WEBService服务中文乱码问题
主要代码如下: String input ="中文" C#调用代码: String str = System.Text.Encoding.GetEncoding("UT ...
- 转: SVN使用教程总结(图文丰富,相当详细)
转自:http://www.cnblogs.com/armyfai/p/3985660.html SVN使用教程总结 SVN简介: 为什么要使用SVN? 程序员在编写程序的过程中,每个程序员都会生 ...
- linux查看CPU性能及工作状态的指令mpstat,vmstat,iostat,sar,top
转载:http://www.cnblogs.com/xianghang123/archive/2011/08/25/2153591.html 衡量CPU性能的指标: 1,用户使用CPU的情况:CPU运 ...
- Service 生命周期
有了 Service 类我们如何启动他呢,有两种方法: • Context.startService() • Context.bindService() 1. 在同一个应用任何地方调用 start ...
- python的加密模块(md5,sha,crypt)学习
python的加密模块(md5,sha,crypt)学习 命令行使用python MD5: yinguicai@Cpl-IBP-Product:~/data/work/svn/v1.4.0_dev/A ...