AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Stop sound within timer?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Autex675



Joined: 10 May 2008
Posts: 15

PostPosted: Sat May 10, 2008 11:55 pm    Post subject: Stop sound within timer? Reply with quote

In one of my scripts, a sound file is launched using the "Soundplay" command within a timer. How can I immediately stop the timer thread and the sound file without having to wait for the sound file to finish playing?
Rolling Eyes Evil or Very Mad Surprised


Last edited by Autex675 on Sun May 11, 2008 7:27 pm; edited 1 time in total
Back to top
View user's profile Send private message
Superfraggle



Joined: 02 Nov 2004
Posts: 970
Location: London, UK

PostPosted: Sat May 10, 2008 11:56 pm    Post subject: Reply with quote

Quote:
To stop a file that is currently playing, use SoundPlay on a nonexistent filename as in this example: SoundPlay, Nonexistent.avi



I.E
Code:
Esc::SoundPlay, Nonexistent.avi

_________________
Steve F AKA Superfraggle

http://r.yuwie.com/superfraggle
Back to top
View user's profile Send private message MSN Messenger
se4e
Guest





PostPosted: Sun May 11, 2008 12:06 am    Post subject: Reply with quote

Its weird how new users post in this forum. Shocked
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group