Jump to content

Recommended Posts

Posted

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 ?

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

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
×
×
  • Create New...