Author |
|
smarty Super User
Joined: May 21 2006 Location: United States
Online Status: Offline Posts: 728
|
Posted: October 29 2006 at 18:30 | IP Logged
|
|
|
Does anyone recall what the "ph_sendkeys() coding is for the "Windows" key ? I need to send a keystroke combination of {ctrl+win+uparrow}, but the +win+ part is not correct.
I checked the Sendkeys documentation, but not see anything mentioned for how to send the Windows key.
__________________ Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
|
Back to Top |
|
|
cmhardwick Senior Member
Joined: July 08 2006 Location: United States
Online Status: Offline Posts: 290
|
Posted: October 30 2006 at 09:23 | IP Logged
|
|
|
CTRL+ESC works to pull up the Windows Start Menu. Is that the one you are wanting?
__________________ Cicero, Enjoying automation!
|
Back to Top |
|
|
smarty Super User
Joined: May 21 2006 Location: United States
Online Status: Offline Posts: 728
|
Posted: October 30 2006 at 13:57 | IP Logged
|
|
|
The "Win" key I am referring to is located between the Crtl and Alt keys on most key boards. Just to pull us the Windows Start Menu may not be what I'm looking for (but thanks just the same).
Please take a look at:
http://openpandora.googlepages.com/release_notes.txt
And see the keystrokes required for OpenPandora control. I am presently looking at the options I have to control OpenPandora Vs. regular Pandora (the main difference being that regular Pandora can run in the PH Web Center window, while OpenPandora runs all by itself).
__________________ Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: October 30 2006 at 17:10 | IP Logged
|
|
|
Smarty,
Did some quick poking around and cant be done currently . You can bring up the "Start" menu like Cicero points out by sending ctrl+esc but you cant simulate the actual WIN key.
However, Ive done the research and make the necessary changes and it'll be ready in the next version. The key will act just like the other Control type keys (ctrl, shift, alt) and will be referenced by "win". So to send a WIN-m to minimize all open windows, the command will be:
ph_sendkeys("{win+m}")
HTH,
Dave.
|
Back to Top |
|
|
smarty Super User
Joined: May 21 2006 Location: United States
Online Status: Offline Posts: 728
|
Posted: October 31 2006 at 09:09 | IP Logged
|
|
|
Thanks for this clarification and inclusion on the next release.
Steve
__________________ Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: October 31 2006 at 10:41 | IP Logged
|
|
|
Steve,
There is a current work-around! I just realized that I had included a function ph_keybd_event in PowerHome so this can be done (terrible when you cant remember all the things you've added .
Anyways, the ph_keybd_event function is the raw equivalent of what the sendkeys is using. To simulate the press and release of the left "WIN" key, use the following:
Code:
ph_keybd_event(91,0,0,0) + ph_keybd_event(91,0,2,0) |
|
|
If you want to simulate this with the pressing of another button, you would need to do something like this (this simulates the WIN-M combination):
Code:
ph_keybd_event(91,0,0,0) + ph_sendkeys("m") + ph_keybd_event(91,0,2,0) |
|
|
HTH,
Dave.
|
Back to Top |
|
|