i copied PlayWav>c:\windows\media\chimes.wav in speed to solve problem with WaitKeyDown>q (or TAB) ...sometimes dont pick keypress
and sound is there?????
Problem is that i do not have c:\windows\ directory, as i always change default win dir...
How is it possible?
bug or secret?
Moderators: Dorian (MJT support), JRL
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
PlayWav>%WIN_DIR%\media\chimes.wav
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
-
- Junior Coder
- Posts: 21
- Joined: Thu Mar 10, 2011 6:49 pm
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
WIN_DIR is a Macro Scheduler system variable that holds the path to Windows. So, yes, it will resolve to the correct windows folder on any PC.
For the System folder you can use SYS_DIR which always resolves to the system32 folder wherever that may be.
For the System folder you can use SYS_DIR which always resolves to the system32 folder wherever that may be.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
-
- Junior Coder
- Posts: 21
- Joined: Thu Mar 10, 2011 6:49 pm
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Like I said:katalonija2 wrote:Lets try on this way...
%windir%=C:\workload
(C:\workload\system32...C:\workload\system......)
C:\windows...does not exist....
What will do PlayWav>c:\windows\media\chimes.wav
PlayWav>%WIN_DIR%\media\chimes.wav
WIN_DIR is automatically set to whatever the windows directory happens to be. It is set by the system.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?