This is written wrong it should be like this:Code:If (GetAsyncKeyState(Key.F10)) Then "Code here" //Connect End if If (GetAsyncKeyState(Key.F11)) Then "Code here" //Disconnect End if
I also don't recommand F10 and F11 as hotkeys.F9 and F10 would be better.Code:If (GetAsyncKeyState(Key.F10)) Then "Code here" 'Connect End if If (GetAsyncKeyState(Key.F11)) Then "Code here" 'Disconnect End if
and the full code got different hotkeys.People might just copy and paste everything they see and it will get you an error.