AutoHotkey Community

It is currently May 27th, 2012, 6:02 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Sound not working
PostPosted: November 22nd, 2005, 5:58 pm 
Offline

Joined: October 8th, 2005, 9:22 am
Posts: 29
Location: Sri Lanka
Hai

I want to give sound in my script, But following .wav not working in my PC

Code:
SoundPlay, %SystemRoot%\Media\ding.wav


OS - windows2000 professional
AHK Version v1.0.38.00

(C:\WINNT\Media\ding.wav is exist and I can play it directly. )


pls reply :oops:

Nuwan


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 22nd, 2005, 8:58 pm 
Have a try with
Code:
SoundPlay, %SystemRoot%\Media\ding.wav, WAIT


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 22nd, 2005, 10:32 pm 
Offline

Joined: November 7th, 2005, 8:32 pm
Posts: 10
Location: Germany
I think, you meant:

[code]SoundPlay, %A_WinDir%\Media\ding.wav [/code]


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 23rd, 2005, 12:13 pm 
Offline

Joined: March 24th, 2005, 11:50 am
Posts: 398
Location: germany
A_windir is the AHK Variable
Systemroot is the Windows_Variable, all ahk variables begin with "a_"
most System-variables are listed here:
http://www.wilsonmar.com/1envvars.htm
http://kennethhunt.com/archives/000933.html
Imho is A_Windir = Systemroot

Links are from Jon :)


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: 0x150||ISO, batto, dra, HotkeyStick, migz99, mKnight, sjc1000, Wicked, XstatyK and 59 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group