Hi im very very new to this trying to get my head around it all
i have a code to login in to my game however once you start the complied scrip it goes through the process very quickly.
what i need to do is before it goes to login i need it to check if "ctrl" key has been pressed and then it needs to go to "main" in the script which is an alternative login position in the script (further on in the script,)
if if "ctrl" key not presses continue with script
ok this is what i wrote so far but i get error message
If GetKeyState "ctrl" Goto, MAIN
please can you tell me correct way to write this so it understands thanks
Noob Requires corrected on script lol
Re: Noob Requires corrected on script lol
Code: Select all
GetKeyState, state, Control
if state = D ; if Control pressed down
Gosub, Main ; u should use gosub instead of goto, makes script easier to read
Re: Noob Requires corrected on script lol
thx great help
Who is online
Users browsing this forum: No registered users and 338 guests