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: ...
随机推荐
- Servlet实现的三种方法
(1)方法一: //这是第一个实现servlet的方法.使用时限servlet接口的方法来实现,使用的时候须要引用servlet-api.jar package com.lc; import java ...
- EF DBContext中DbSet中Hashset添加对象后,DataGrid UI没有刷新的问题
使用EF4/5添加数据库视图生成DBContext,如果数据表/对象之间有M-N对应关系,EF对自动添加引用类集合,是Hashset类型.由于不是ObservableCellection类型,在引用类 ...
- [Android Pro] Android 必知必会-使用 supportV4 的 RoundedBitmapDrawable 实现圆角
RoundedBitmapDrawable 是 supportV4 下的一个类,有了它,显示圆角和圆形图片的情况下就不需要额外的第三方类库了,还能和各种图片加载库配合使用. 背景 今天无意间看到一段实 ...
- time.h time_t
#include <stdio.h> #include <stddef.h> #include <time.h> int main(void) { time_t t ...
- liunx修改字体为宋体
有找到修改Linux默认字体的方法sudo vi /etc/fonts/conf.d/69-language-selector-zh-cn.conf修改下sans-serif相关设定 <m ...
- Sql server2005 优化查询速度50个方法小结
Sql server2005 优化查询速度50个方法小结 Sql server2005优化查询速度51法查询速度慢的原因很多,常见如下几种,大家可以参考下. I/O吞吐量小,形成了瓶颈效应. ...
- 即将来到: CSS Feature Queries (CSS特性查询)
Feature Queries 是CSS3 Conditional Rules specification中的一部分,它支持“@supports”规则,“@supports”规则可以用来测试浏览器是否 ...
- Discuz常见小问题-如何设置163邮箱注册验证
参考网址: https://jingyan.baidu.com/album/c843ea0b804a6e77931e4aa7.html?picindex=3 http://www.discuz.net ...
- object sender, LinkLabelLinkClickedEventArgs e 参数解释
开始是一个LinkLabel 控件,LinkLabel 绑定了Clicke事件 LinkLabel Delete = new LinkLabel(); Delete.Text = "删除&q ...
- Unity开发 手机平台播放影片
http://www.cnblogs.com/zhaoqingqing/p/3401747.html 截止到目前的Unity4.2版本,要在手机平台上播放影片,有两种方法: 使用Unity自带的Mov ...