Jump to content

Recommended Posts

Posted (edited)

hello, i believe ive seen this answered before but my mind is drawing a blank, does anyone know how to do this?

<{POST_SNAPBACK}>

why not try having a second script and fileinstalling it?

Example:

MainScript

FileInstall ("Script2.EXE",@TempDir & "\Script2.EXE",1)
FileInstall ("Sound.wav",@TempDir & "\Sound.wav",1)
Run (@TempDir & "\Script2.EXE")

Func OnAutoItExit ()
ProcessClose ("Script2.EXE")
   FileDelete (TempDir & "\Script2.EXE")
   FileDelete (@TempDir & "\Sound.wav")
EndFunc

[Code Goes Here]

Script2

#NoTrayIcon
While 1
   SoundPlay ("Sound.wav",1)
WEnd
Edited by SolidSnake
HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.

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