本帖最后由 lixiaolong 于 2012-3-8 21:44 编辑
回复 1# shqf #include "SysTray_UDF.au3"
BlockInput(1)
$k_pos = MouseGetPos()
$posTray = WinGetPos(_FindTrayToolbarWindow())
$index = _SysTrayIconIndex("YodaoDict.exe")
If $index <> -1 Then
$pos = _SysTrayIconPos($index)
If $pos = -1 Then
$pos = _SysTrayIconPos($index)
If $pos = -1 Then Exit
EndIf
MouseMove($pos[0], $pos[1], 0)
Sleep(100)
MouseClick("right")
;Sleep(100) ;这里加sleep好
MouseMove($k_pos[0], $k_pos[1], 0)
Send("{down}")
Send("{enter}")
EndIf
BlockInput(0)
|