GoATrancE Posted January 18, 2007 Posted January 18, 2007 How to make any function to be repeated Example: HotKeySet ("{INS}", "func1") Func func1() Send ("cool") sleep (100) send ("123") EndFunc and i need to repeat this func1 for 3 times or more any ideas?
Vindicator209 Posted January 18, 2007 Posted January 18, 2007 well, you can use a loop.... HotKeySet ("{INS}", "func1") Func func1() While 10 ;<==Nakes this function run 10 time before stoppping? use 1 for infinite Send ("cool") sleep (100) send ("123") Wend EndFunc Im not even sure thats what you want but... XD [center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center]
GoATrancE Posted January 18, 2007 Author Posted January 18, 2007 well, you can use a loop....HotKeySet ("{INS}", "func1")Func func1()While 10 ;<==Nakes this function run 10 time before stoppping? use 1 for infiniteSend ("cool")sleep (100)send ("123")WendEndFuncIm not even sure thats what you want but... XDyes its repeatable but its infinite how to fix it to be just 10 times?
Developers Jos Posted January 18, 2007 Developers Posted January 18, 2007 yes its repeatable but its infinite how to fix it to be just 10 times?check out For...Next in the Helpfile. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
GoATrancE Posted January 18, 2007 Author Posted January 18, 2007 (edited) I am newbie and i cant do that can u make me an example with it Edited January 18, 2007 by GoATrancE
Developers Jos Posted January 18, 2007 Developers Posted January 18, 2007 I am newbie and i cant do that can u make me an example with it Can't do what ? Open the Helpfile?It contains an example ... read... learn ... try .... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Developers Jos Posted January 18, 2007 Developers Posted January 18, 2007 i need an example Yes ... and ? what is wrong with the Helpfile example ?You now better check it and come with a proper question if you want to be taken serious ... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
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