Sign in to follow this  
Followers 0
buzz44

Quotes Problem

7 posts in this topic

Can someone please fix this for me, I need to learn how lol

$Dir = RegRead("HKEY_USERS\.DEFAULT\Software\Microsoft\Keyboard\Native Media 
Players\WMP", "ExePath")

Run('$Dir "'@ScriptDir' & \test.wav"')

Thanks


[u]Old Projects:[/u]A3MORGB2Hex[u]Old Functions:[/u]_TimeAdd/_TimeSub_AddComma_BubbleSort _RippleSort "He who does not understand your silence will probably not understand your words." - Elbert Hubbard.

Share this post


Link to post
Share on other sites



Not the best way, but might work:

$Exe = RegRead("HKEY_USERS\.DEFAULT\Software\Microsoft\Keyboard\Native Media Players\WMP", "ExePath")

Run($Exe & ' "' & @ScriptDir & '\text.wav"', "", @SW_SHOW)

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites

Its a Window Media Player command line

wmplayer file eg.

wmplayer c:\test.wav

So I cant really use the "&". I got it working before but that was with no variables, oh well...


[u]Old Projects:[/u]A3MORGB2Hex[u]Old Functions:[/u]_TimeAdd/_TimeSub_AddComma_BubbleSort _RippleSort "He who does not understand your silence will probably not understand your words." - Elbert Hubbard.

Share this post


Link to post
Share on other sites

Its a Window Media Player command line

wmplayer file eg.

wmplayer c:\test.wav

So I cant really use the "&". I got it working before but that was with no variables, oh well...

<{POST_SNAPBACK}>

CyberSlugs example should work, are you sure the "exepath" contains the executable ?

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

yes, it opens WMP up and the file but it should play, that is what that command line does plays the specified file. It gives my some crappy error about how it cant play, even though it can, i just close WMP and open it again manually and its fine.

Edit: This works fine

Run('C:\Program Files\Windows Media Player\wmplayer.exe "C:\Documents and Settings\burrup.BURRUP2ND\Desktop\test.wav"')
Edited by Burrup

[u]Old Projects:[/u]A3MORGB2Hex[u]Old Functions:[/u]_TimeAdd/_TimeSub_AddComma_BubbleSort _RippleSort "He who does not understand your silence will probably not understand your words." - Elbert Hubbard.

Share this post


Link to post
Share on other sites

Make sure the filename is correct. I accidently put teXt instead of teSt

So I cant really use the "&"

That's incorrect. You can use & to join any two strings or variables (or one of each)....

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites

Ah yes, my mistake, I should have check to see that it didnt contain typos, all fixed :). Would you mind telling me how you figured it out lol, I always get stuck when i need to Run something and variables and included, especially _RunDos.


[u]Old Projects:[/u]A3MORGB2Hex[u]Old Functions:[/u]_TimeAdd/_TimeSub_AddComma_BubbleSort _RippleSort "He who does not understand your silence will probably not understand your words." - Elbert Hubbard.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0