IfWinExist MapleStory { WinRestore } else { Run c:\program files\wizet\maplestory\maplestory.exe WinWait MapleStory WinRestore } { Sleep 40000 Click 551, 249 Send {BS}{BS}{BS}{BS}{BS}{BS}{BS}{BS}{BS}{BS}{BS} Send username Click 551, 271 Send password }
i'm trying to make a maplestory login script, the first map sees if its open if not opens it..then because of the game taking time to loadup before the login screen appears i put the Sleep 40000. for some reason that doesn't work and it either goes right to clicking 551, 249 or it doesnt do it at all.
help? would they be a better way to go about doing this? i am very new to AHK
edit:problem fixed