Sign in to follow this  
Followers 0
GoATrancE

Repea Function

8 posts in this topic

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?

Share this post


Link to post
Share on other sites



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]

Share this post


Link to post
Share on other sites

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

yes its repeatable but its infinite how to fix it to be just 10 times?

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

I am newbie and i cant do that :) can u make me an example with it :D

Edited by GoATrancE

Share this post


Link to post
Share on other sites

I am newbie and i cant do that :) can u make me an example with it :D

Can't do what ? Open the Helpfile?

It contains an example ... read... learn ... try .... :D


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

i need an example :)

Share this post


Link to post
Share on other sites

i need an example :D

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 ...

:)


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0