Swoonkify Posted October 2, 2010 Share Posted October 2, 2010 I made a program, but it says you cannot have a func/endfunc inside of a if statement It's like this so far if _IsPressed ("{f1}") then Func _Start xxx xxx xxx EndFunc Endif Any help on how to call it without saying Func and Endfunc that would be great! Thanks -- Swoonkify Link to comment Share on other sites More sharing options...
JohnOne Posted October 3, 2010 Share Posted October 3, 2010 Remove the func and endfunc AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
dwerf Posted October 3, 2010 Share Posted October 3, 2010 (edited) If _IsPressed ('{f1}') Then ;xxx ;xxx ;xxx EndIf If _IsPressed ('{f1}') Then _Start() EndIf Func _Start() ;xxx ;xxx ;xxx EndFunc Edited October 3, 2010 by dwerf Link to comment Share on other sites More sharing options...
coles Posted April 11, 2016 Share Posted April 11, 2016 can i update this zombie post with my query? Link to comment Share on other sites More sharing options...
alien4u Posted April 11, 2016 Share Posted April 11, 2016 @coles Make a new Topic for your query do not post on Topics almost 6 years old. Regards Alien. 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