View Full Version : Can't send comand to Control Panel Display tab
kkirk
September 28th, 2005, 08:41 AM
Hi,
I'm trying to program a simple sequence to bring up control panel / Display applet, switch to Settings, clieck Advanced and then reset Overlay mode on my FX5200. This is necessary since there is a bug in either the FX5200 or my PVR software such that when playing a video the thing goes into overlay mode but when video stops it does not come back. I gave up on tring to fix the root cause so I want to automate the remedy...
I can invoke the Display applet using a call to its shortcut in the control panel folder. I simply can't program a command to switch to Settings though. For some reason, the learn function will only see Themes on that window and not the headers for the tabbed part.
Any ideas? Thanks a lot. Regards
JohnHind
September 28th, 2005, 08:55 AM
By "learn function" do you mean the Window Target or the Command Capture? If you've not tried Command Capture, I'd give that a go - if you can find the internal message used for the function then you can spoof that.
kkirk
September 28th, 2005, 07:16 PM
Sorry for not being clearer. Yes, by "learn function" I mean the Window Target or the Command Capture.
With the window target the Themes button and all buttons on the Themes tab are visible as potential targets. The other tab headers do not show up.
With command capture I see that a command is captured when I click Settings but when I test this nothign happens (ie Settings tab is not selected.).
I think this is somethign peculiar to do with how the MS Windows tabbed page control behaves. Any thoughts?
JohnHind
September 29th, 2005, 02:22 AM
Hm.. See what you mean. I was able to bring up the advanced tab as follows:
Create a Macro with:
File Execute (the Display Control Panel Shortcut)
Wait (2000)
Keyboard(^<TAB>)
Keyboard(<RIGHT>) <-Duplicate this 5 times
Keyboard(@v)
Window Targets for all the Keyboard Actions set to Match Foreground Task. The details may vary according to your hardware, but hopefully this approach will work!
It is rather "in your face" though - you may be able to move the settings window off-screen to avoid this.
kkirk
September 29th, 2005, 02:44 AM
John,
Thanks. I see how this will do what I need. Shift Tab to move focus on the tab control and then right key and then enter right? The only thing I don't know is what exactly I need to enter in the Keyboard event action. I tried copy paste from what you gace me below but could not make it work. Apologies for the newbie state of mind...
Regards
JohnHind
September 29th, 2005, 03:23 AM
John,
Thanks. I see how this will do what I need. Shift Tab to move focus on the tab control and then right key and then enter right? The only thing I don't know is what exactly I need to enter in the Keyboard event action. I tried copy paste from what you gace me below but could not make it work. Apologies for the newbie state of mind...
Regards
Check the help file Action Reference for the Keyboard Action for details. You are right about what is going on except that the last Keyboard Action is sending Alt+v which is the keyboard shortcut for the Advanced button. Check the keystrokes manually first - I'm not sure how much of this dialog changes with different display hardware.
Enter the text I've enclosed in brackets (without the brackets) in the "Text to send" box. Just realised I made it unnecessarily complicated - the whole lot can go in one Keyboard action:
^<TAB><RIGHT><RIGHT><RIGHT><RIGHT><RIGHT>@v
kkirk
September 29th, 2005, 03:27 AM
Wow! This is great! I figured out the syntax thanks to your help and it still was not working. Turns out I needed another wait(1000) after the focus action... oh well. all that ends well... Thanks a lot for all your help.
Powered by vBulletin® Version 4.1.8 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.