粉碎玉碎大喝彩 发表于 2011-5-28 21:59  
这编的程序复杂吗,我也是学编程的,求教下。。。 - #Persistent
 
 - SetWorkingDir, %A_ScriptDir%
 
 - If A_IsCompiled
 
 - Menu, Tray, Icon, %A_ScriptFullPath%
 
  
- Process, Exist, iDuelPanel.exe
 
 - IfEqual, ErrorLevel, 0
 
 - {
 
 - Run, iDuelPanel.exe
 
 - WinWait, iDuel - Enjoy Duel
 
 - WinActivate, iDuel - Enjoy Duel
 
 - }
 
  
- Menu, Tray, Add
 
 - Menu, Tray, Add, 隐藏iDuel, HideiDuel
 
 - Menu, Tray, Add, 显示iDuel, UnhideiDuel
 
  
- #i::
 
 - DetectHiddenWindows, Off
 
 - Process, Exist, iDuelPanel.exe
 
 - IfWinExist, iDuel Alpha ahk_pid %ErrorLevel%
 
 - Gosub, HideiDuel
 
 - Else
 
 - Gosub, UnhideiDuel
 
 - return
 
  
- HideiDuel:
 
 - Process, Exist, iDuelPanel.exe
 
 - WinHide, ahk_pid %ErrorLevel%
 
 - Process, Exist, iDuel.exe
 
 - WinHide, ahk_pid %ErrorLevel%
 
 - return
 
  
- UnhideiDuel:
 
 - Process, Exist, iDuelPanel.exe
 
 - WinShow, iDuel Alpha ahk_pid %ErrorLevel%
 
 - Process, Exist, iDuel.exe
 
 - WinShow, iDuel Alpha ahk_pid %ErrorLevel%
 
 - return
 
 
  复制代码 
AutoHotkey语言,很简单 |