I found this function in the Internet
It is to play audio files from the compiled script
I did not understand just one thing on this function
func play($name, $wait = 0) local Const $SND_RESOURCE = 0x00040004 local Const $SND_ASYNC = 1 ; Play the file - the script will pause as it sounds if $wait = 0 then DllCall("winmm.dll", "int", "PlaySound", "str", $name, "hwnd", 0, "int", BitOR($SND_RESOURCE, $SND_ASYNC)) else DllCall("winmm.dll", "int", "PlaySound", "str", $name, "hwnd", 0, "int", $SND_RESOURCE) endIf return 1 endFunc What I did not understand was this variable
local Const $SND_RESOURCE = 0x00040004 I know that this variable is contains the resource name
But what if I want to change the name of the resource what i'll do?
can i do that?
Thanks in advance
I am wondering if is there any autoit function that make the program ignore errors and move on and resume correct lines?
Hello forum users!
At some point I had a need to restart my script. Is it possible to do this with autoit or do I need to connect additional scripts like .cmd or .bat?
For example: i have only script.au3 and it's running. Wich code shoud i use to exit from the script and start it again?
How can I automatically download a list of zip files, like the ones in the quote, using a AutoIt script?By tintin92
How can I automatically download a list of zip files, like the ones in the quote, using a AutoIt script?
Is it possible with AutoIt script?
I have a question please
Can we customize error messages in autoit script?
I mean internal error messages
Line 4 (File "D:\my projects\NVDA Manager\New AutoIt v3
$script = 1
Error: Subscript used on non-accessible variable.
For example, I want to customize this message
Is this possible?
am waiting for your answers