Sign in to follow this  
Followers 0
GoATrancE

Autoit3 BuG or what?

3 posts in this topic

Hi everyone

when i compile this script :

HotKeySet ("{INS}", "func1")

Func func1()

Send ("cool")

sleep (100)

send ("123")

EndFunc

and Start compiled .exe file and i see for 1 sec the script and its automaticly turns off :S

What's that ?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

No bug... you need to include a While/Wend statement...

HotKeySet ("{INS}", "func1")
While 1
    Sleep(1000)
WEnd

Func func1()
Send ("cool")
sleep (100)
send ("123")
EndFunc

Basically the While 1 statement will keep the script alive until you exit.

Edited by someone

While ProcessExists('Andrews bad day.exe')
	BlockInput(1)
	SoundPlay('Music.wav')
	SoundSetWaveVolume('Louder')
WEnd

Share this post


Link to post
Share on other sites

No bug... you need to include a While/Wend statement...

HotKeySet ("{INS}", "func1")
While 1
    Sleep(1000)
WEnd

Func func1()
Send ("cool")
sleep (100)
send ("123")
EndFunc

Basically the While 1 statement will keep the script alive until you exit.

Okay Thanks YOu.. Its Work !! :)

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