enigmafyv Posted January 5, 2007 Posted January 5, 2007 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?
BALA Posted January 5, 2007 Posted January 5, 2007 I think it has something to do with how you wrote the stuff within the Send() command try putting spaces [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
enigmafyv Posted January 5, 2007 Author Posted January 5, 2007 I think it has something to do with how you wrote the stuff within the Send() commandtry putting spacesCould you be a little more vague?
BALA Posted January 5, 2007 Posted January 5, 2007 (edited) Could you be a little more vague? Ya do that one thing to the code and it should fix it 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 January 5, 2007 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
enigmafyv Posted January 5, 2007 Author Posted January 5, 2007 Mr. Funny over here! 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.
BALA Posted January 5, 2007 Posted January 5, 2007 (edited) Yeah know, I had the answer when I first came here, but now it's completely gone, why am I so off today? Edited January 5, 2007 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now