Jump to content

Recommended Posts

Posted

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?

Posted

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]

Posted

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?

  • Developers
Posted

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

:)

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...