Hello, I found this script within the forum to display a message while the script continues to run. To test it I added soundbeeps. I was expecting 2 quick sound beep’s, the message being displayed and then quickly 3 more soundbeeps. I’m getting 3 quick soundbeeps followed by the message appearing and then nothing happens until the message times out at 10 seconds and then I get 2 more quick soundbeeps. Apparently the first sound beep after the message is being run before the message can display but once the message appears the script stop for 10 seconds. What am I doing wrong? Thanks.
Code: Select all
=::
Soundbeep
Soundbeep
SetTimer, showmessage, -10
;program code continues execution
Soundbeep
Soundbeep
Soundbeep
return
showmessage:
msgbox, , , This is message, 5
return
[Mod edit: [code][/code] tags added.]