Jump to content

Recommended Posts

Posted

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?

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
Posted

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.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...