Sign in to follow this  
Followers 0
enigmafyv

Windows System Properties Starts Windows Media Player?

7 posts in this topic

I'm trying to run this code:

run("rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl")

WinWaitActive("System Properties","")
If Not WinActive("System Properties","") Then WinActivate("System Properties","")
WinWaitActive("System Properties","")

Send("{CTRLDOWN}{TAB}{TAB}{TAB}{CTRLUP}")
Send("!S")
Send("!P")

And for some reason Windows Media Player keeps popping up. I'm simply trying to have it run a script that will set the 'Performance Properties' to a desired result, but I don't get why it keeps making WMP show up?

Any ideas?

Share this post


Link to post
Share on other sites



I think it has something to do with how you wrote the stuff within the Send() command

try putting spaces

Could you be a little more vague?

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Could you be a little more vague?

Ya do that one thing to the code and it should fix it :P

What I suggest doing is:

run("rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl")

WinWaitActive("System Properties","")
If Not WinActive("System Properties","") Then WinActivate("System Properties","")
WinWaitActive("System Properties","")

Send("{CTRLDOWN} {TAB} {TAB} {TAB} {CTRLUP}") ; notice the spaces
Send("!S")
Send("!P")

EDIT: Just use spaces

Edited by BALA

[font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com

Share this post


Link to post
Share on other sites

Mr. Funny over here! :P

No I tried that and the tab spots are ok, in fact I changed it to be:

Send("^{Tab 3}")

Which works the same, but I'm not quite sure why media player keeps coming up?

BTW: Spaces act as actual spaces so if I were to put a space in there, it might activate something, which is not my intention. (i.e. You can substitute {SPACE} for {ENTER} if the [OK] button is highlighted / selected.) So this is not a good idea.

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Yeah know, I had the answer when I first came here, but now it's completely gone, why am I so off today? :P

Edited by BALA

[font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com

Share this post


Link to post
Share on other sites

try this

Send("^{TAB 3}")

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