|
楼主 |
发表于 2011-2-20 16:46:49
|
显示全部楼层
是呀,这几个函数AU3里面都没有,而且肯定有其他的办法。
看这篇帖子
http://www.autoitx.com/archiver/tid-16956.html
ShellExecute("C:\Program Files\SogouInput\5.0.1.4185\config.exe")
sleep(800)
$pos = WinGetPos("搜狗拼音输入法设置")
If IsArray($pos) Then
$x=MouseGetPos(0)
$y=MouseGetPos(1)
WinActivate ("搜狗拼音输入法设置")
MouseClick ( "left",$pos[0]+80,$pos[1]+120,1,0)
ControlCommand("搜狗拼音输入法设置","切换英文状态时保留输入窗口中已经存在的字符并上屏","Button7","Check","")
ControlClick("搜狗拼音输入法设置","","Button89")
MouseClick ( "left",$pos[0]+80,$pos[1]+148,1,0)
ControlCommand("搜狗拼音输入法设置","开启皮肤推荐","[CLASS:Button;TEXT:开启皮肤推荐]","UnCheck","")
ControlClick("搜狗拼音输入法设置","","Button89")
MouseClick ( "left",$pos[0]+80,$pos[1]+236,1,0)
ControlCommand("搜狗拼音输入法设置","不自动升级","Button12","Check","")
ControlCommand("搜狗拼音输入法设置","P2P升级加速:使用P2P方法,使您的升级速度更稳定更快速","Button17","UnCheck","")
ControlClick("搜狗拼音输入法设置","","Button87")
MouseMove($x,$y)
EndIf
exit
这段代码里面
ControlCommand("搜狗拼音输入法设置","不自动升级","Button12","Check","")
ControlCommand("搜狗拼音输入法设置","P2P升级加速:使用P2P方法,使您的升级速度更稳定更快速","Button17","UnCheck","")
他这里的BUTTON12何BUTTON17确实是BUTTON空间里面的2个按钮空间,我已经测试过,能准确的对BUTTON立面的2个BUTTON控件进行操作,主要的问题是button12和button17他是怎么得到的,用串口信息工具是绝对看不到的,、他的代码里面也没有P版主说的用XX函数来找句柄的代码
真的很想知道他是怎样得到这些按钮的具体CLASS ID的 |
|