Posted: July 14 2004 at 10:28 | IP Logged
|
|
|
Chris,
It may just be a typo in your post but the proper format for sending an alt-s is: {alt+s}
Sometimes the sendkeys can be tricky to setup. When setting these up, I usually take it one step at a time. I'll have PowerHome simply switch to the application. I'll then use the keyboard to test the next keystroke combination to verify that it's what I want. I'll code that into PowerHome and then start from the beginning and let PowerHome switch to the app and send the sequence of keystrokes that I have so far. Sometimes, I find that I need to place a small delay within the keystrokes or I might need to send an 'escape' or a 'tab'. Basically, whatever you can type on the keyboard should be able to replicated using sendkeys.
I use Webcam32 software with my ATI All-in-Wonder video cards tuner as the source (I have different video cameras modulated onto a single coax) and I have to change the channel in order to view different cameras. The following is a sample of the sendkeys code that I have to send to do this:
"{alt+f}p{downarrow}{downarrow}{downarrow}{downarrow}{rightarrow}s{tab}{enter}{tab}{tab}{tab}{tab}{tab}{tab}{tab}{tab}{tab}{tab}{tab}{tab}{tab}{tab}{tab}{tab}{uparrow}{alt+a}48{enter}{tab}{tab}{enter}{tab}{enter}"
Hope this helps,
Dave.
|