albedoa
Joined: 18 May 2008 Posts: 18
|
Posted: Thu Jul 03, 2008 4:28 pm Post subject: Cannot recreate GUI after closing it |
|
|
This is driving me nuts. This script brings up a tooltip menu when ctrl+` is hit. From there, you can hit 1 to begin another process I haven't implemented yet. Then you can press ctrl+` again to close that process and bring the menu back up. This goes fine until you just want to close the menu, so you hit escape. The escape key closes the Main window as it is supposed to, but the WinWait command does not realize it for some reason.
The strange part to me is that the escape key is seemingly attempting to close the Main window the same way that hitting 1 would. Any ideas?
| Code: | Hotkey IfWinExist, Main
Hotkey 1, CIVREntry
Hotkey IfWinExist, Main
Hotkey esc, End
LCtrl & `::
Gui 6:Destroy
Gui Show,, Main
ToolTip 1: CIVR Entry`n2: Book Entry`n3: Reset Entry`n4: Time Entry, 0, 0
SetTitleMatchMode 2
WinWait Macro
ToolTip
WinClose Main
return
CIVREntry:
Gui 6:Show,, CIVR Entry Macro
return
End:
ToolTip
Gui 6:Show,, End Macro
Gui 6:Destroy
return |
|
|