October 13th, 2002, 03:55 PM
For my HTPC, I need to change between audio configurations by starting a configuration app, and changing some settings. I have successfully automated this through Girder by simulating the button clicks. Because I'm simulating button clicks, I have to be careful and make sure the windows are actually there before I click!
While doing the capture of the button click, I noticed there were actually *2* events for each button click - of type "Left Click" and type "Command". I would guess that in general it's better to simulate the "Command", as maybe you don't have to wait for the window? I know nothing about Windows programming, so I'm just guessing. Also, whenever I do the capture of a specific button click, most things are the same, like the WParam (1035), but the LParam changes (197844 once and once 66732). When I do 'apply' from the capture screen, once I was able to 'test' the command and it worked correctly, but when I exited and restarted the config app, it no longer worked, and recapturing it still didn't work.
First of all, should I even be bothering? *Is* it better to key off the "Command"? And if so, am I missing something? Any suggestions?