Misha Posted April 7, 2006 Share Posted April 7, 2006 (edited) darn it Func AutoPick () TrayTip( "AutoPicker", "AutoPicker Activated.", 4, 4) GuiCreate( "AutoPicker" ,300,100) $EditCreate=GUICtrlCreateEdit( "Delay" , 200, 50) GUISetState() while 1 $Edit=GuiCtrlRead( $editCreate ) if $editCreate > 0 then $AutoPicker = 1 while 1 Sleep($edit) Send( " ", 1) WEnd Wend EndFunc for a game..and it doesnt work says I am missing a while :S or a wend Edited April 7, 2006 by Misha Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted April 7, 2006 Moderators Share Posted April 7, 2006 (edited) Func AutoPick () TrayTip( "AutoPicker", "AutoPicker Activated.", 4, 4) GuiCreate( "AutoPicker" ,300,100) $EditCreate=GUICtrlCreateEdit( "Delay" , 200, 50) GUISetState() while 1 $Edit=GuiCtrlRead( $editCreate ) if $editCreate > 0 then $AutoPicker = 1 while 1 Sleep($edit) Send( " ", 1) WEnd Wend EndFuncShould be:Func AutoPick () TrayTip( "AutoPicker", "AutoPicker Activated.", 4, 4) GuiCreate( "AutoPicker" ,300,100) $EditCreate=GUICtrlCreateEdit( "Delay" , 200, 50) GUISetState() while 1 $Edit=GuiCtrlRead( $editCreate ) if $editCreate > 0 then $AutoPicker = 1 while 1 Sleep($edit) Send( " ", 1) WEnd EndIf Wend EndFuncI don't know where you want the EndIf, but I put it after the first WEnd Edited April 7, 2006 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. 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