The Gui and such works fine, but when I use my Key to enter the information into my game, it doesn't work. It just sends loads of tabs. Please help!
Code: Select all
Gui, +AlwaysOnTop
Gui, Font, cRed
Gui, Add, CheckBox, vAcc1 gAccs, Account 1
Gui, Add, CheckBox, vAcc2 gAccs, Account 2
Gui, Show, AutoSize x0 y0 NA, Accounts
return
;login (I removed the names and passwords due to security.)
name1 =
pass1 =
name2 =
pass2 =
return
Accs:
If (A_GuiControl="Acc1"){ ;if the control that launched this is the first one
GuiControl,,Acc2,0 ;uncheck the second
Account = 1
}
Else{ ;if not
GuiControl,,Acc1,0 ;uncheck the first
Account = 2
}
Return
Numpad0::
if Account = 1
Send, %name1%
Sleep, 50
Send, {TAB}
Sleep, 50
Send, %pass1%
return
if Account = 2
Send, %name2%
Sleep, 50
Send, {TAB}
Sleep, 50
Send, %pass2%
return
if Account = 0
Send, No account selected.
GuiClose:
ExitApp