@Epialis Thanks for the reply! I think i havent explained the problem well, Ive actually made a few adjustments. If you have the time please Try to run it, Ill explain the problem below after the script.
@boiler Thank you! It made the error go away but it still doesnt work the way i want it. Ive also used the GUI, Add, Hotkey. Thanks! Please try to run the script and ill explain my problem below.
Note: I will read the structure of script after posting this!!! thanks
Code: Select all
Gui, New, Toolwindow, My GUI
Gui, -SysMenu
Gui, Font, s10, Verdana
Gui, add, text,x20 y20, Toggler
Gui, add, text,, Key
Gui, add, text,, Name
Gui, add, text,, Pass
Gui, Font, s10 wbold, Verdana
Gui, add, text,, Name
Gui, add, text,, Pass
Gui, Font, s10 w, Verdana
Gui, add, Hotkey, vtoggler w40 x100 y17
Gui, add, Hotkey, vkey wp
Gui, add, Edit, vname wp +Number
Gui, add, Edit, vpass wp +Number
Gui, add, button,gSubmit x210 y20,&Set
Gui, add, button,gClose x210 y60,&Close
Gui, show,W270 H210, My GUI
return ; need to end the auto-execute section with a return or it falls through to the code below (causing the error)
Submit:
if auto ; only execute next line if a key has already been assigned
Hotkey, %toggler%, Off ; turns off prior hotkey if one has been set
Gui, Submit, NoHide
Gosub, Set
Set:
Gui, Font, wbold s10 c000000, verdana
Gui, add, text,x160 y20, %toggler%
Gui, add, text,, %key%
Gui, Font, wbold s10 c008000, verdana
Gui, add, text,, %name%
Gui, Font, wbold s10 c0000FF, verdana
Gui, add, text,, %pass%
Hotkey, %toggler%, Auto
return
Close:
ExitApp
return
Auto:
Msgbox, right
return
rshift::reload
rctrl::exitapp
So when i run the script. The previous error that shows up is gone but there are few problems that i encounter.
First for example, I use the Hotkey F1 for the toggle and click set, "F1" will show on the third column like its supposed to, when i press F1 it also works the Msgbox appears. Then i change it to F2 then click set, "F2" will show on the third colum, when F2 is pressed the msgbox will appear but if i press F1, Msgbox still appears, It shouldnt happen
Second Problem is when F1 or F2 is shown on the 3rd column then i try to put single letter hotkeys like, 1 or 2,
the 3rd column shows "11" or "12" or "22",
THANKS FOR ANSWERING!