Jump to content
Sign in to follow this  
GoATrancE

Autoit3 BuG or what?

Recommended Posts

GoATrancE

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
someone

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.