Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: ph_sendkeys for win key Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: October 29 2006 at 18:30 | IP Logged Quote smarty

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 View smarty's Profile Search for other posts by smarty
 
cmhardwick
Senior Member
Senior Member
Avatar

Joined: July 08 2006
Location: United States
Online Status: Offline
Posts: 290
Posted: October 30 2006 at 09:23 | IP Logged Quote cmhardwick

CTRL+ESC works to pull up the Windows Start Menu. Is that the one you are wanting?

__________________
Cicero, Enjoying automation!
Back to Top View cmhardwick's Profile Search for other posts by cmhardwick Visit cmhardwick's Homepage
 
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: October 30 2006 at 13:57 | IP Logged Quote smarty

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 View smarty's Profile Search for other posts by smarty
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: October 30 2006 at 17:10 | IP Logged Quote dhoward

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 View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: October 31 2006 at 09:09 | IP Logged Quote smarty

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 View smarty's Profile Search for other posts by smarty
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: October 31 2006 at 10:41 | IP Logged Quote dhoward

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 View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum