本帖最后由 nickwu 于 2010-7-17 22:35 编辑
代码我摸索了好久终于成功了,感谢"lynfr8"大牛的提示:找图点击,呵呵
附上源码,供其他网友参考,再次谢谢这里的热心网友,谢谢你的解答
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
|