Guest Py7|-|[]/\/ Posted November 9, 2004 Share Posted November 9, 2004 ;Picks up items in MapleStory, activate with the hotkey: Ctrl+z... To terminate the script press: Ctrl+a... $active = WinActive("MapleStory") HotKeySet("^z", "Pickup") HotKeySet("^a", "Terminate") Func Pickup() If $active = 1 then While 1 Sleep(100) Send("{z down}") Sleep(100) Send("{z up}") If $active = 0 then Exit 0 EndIf EndFunc Func Terminate() Exit 0 EndFuncI haven't used AutoIt in a while. Can someone tell me what's wrong with this? I can't seem to find anything... Also... the error it gives is:C:\Documents and Settings\Randall Degges\My Documents\Scripts\AutoGrab.au3(47,1) : ERROR: syntax errorEndFunc Link to comment Share on other sites More sharing options...
Valik Posted November 9, 2004 Share Posted November 9, 2004 Inside the function, you have two If statements, but only one EndIf. I'm thinking the second If should be a single-line statement. Link to comment Share on other sites More sharing options...
Guest Py7|-|[]/\/ Posted November 9, 2004 Share Posted November 9, 2004 Oops... I never even realized I had 2 if statements. Thanks. Link to comment Share on other sites More sharing options...
Guest Py7|-|[]/\/ Posted November 9, 2004 Share Posted November 9, 2004 ;Picks up items in MapleStory, activate with the hotkey: Ctrl+z... To terminate the script press: Ctrl+a... $active = WinActive("MapleStory") HotKeySet("^z", "Pickup") HotKeySet("^a", "Terminate") Func Pickup() If $active = 1 then While 1 Sleep(100) Send("{z down}") Sleep(100) Send("{z up}") Else Exit 0 EndIf EndFunc Func Terminate() Exit 0 EndFuncWhat's wrong now C:\Documents and Settings\Randall Degges\My Documents\Scripts\AutoGrab.au3(40,4) : ERROR: syntax error Else~~~^ Link to comment Share on other sites More sharing options...
Guest Py7|-|[]/\/ Posted November 9, 2004 Share Posted November 9, 2004 Nevermind, figured it out. Forgot the Wend. Link to comment Share on other sites More sharing options...
Guest Py7|-|[]/\/ Posted November 9, 2004 Share Posted November 9, 2004 Just to let you know. Maple Story has "gayed" me again... The game auto exits if I have a 3rd party program running zZz. What horrible luck. Link to comment Share on other sites More sharing options...
layer Posted November 9, 2004 Share Posted November 9, 2004 whats Maple Story? FootbaG Link to comment Share on other sites More sharing options...
Guest Py7|-|[]/\/ Posted November 9, 2004 Share Posted November 9, 2004 www.mapleglobal.com Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now