Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: senkeys "click" event? 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: December 26 2017 at 09:24 | IP Logged Quote smarty

See the image below. Note that my "cursor arrow" is on the "Cancel" button within this window The handle for this Cancel button appears to be 7211750.

I have found that I can always get the handle for this "cancel" button using the following formula:

ph_getwindow(ph_getwindow(ph_findwindow("Message from webpage",1),5),2)

Anyway... what I am trying to do is to "click" the cancel button.

I thought of using the sendkeys approach... specifically:

ph_sendkeysmq(ph_getwindow(ph_getwindow(ph_findwindow("Messa ge from webpage",1),5),2),"{enter}")

But that seems to cause the same action as when I click "OK" (even though it is not the handle of the "OK" button").

Anyone have other ideas?



Edited by smarty - December 26 2017 at 09:34


__________________
Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
Back to Top View smarty's Profile Search for other posts by smarty
 
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: December 26 2017 at 09:39 | IP Logged Quote smarty

Update:

I just found that:

ph_sendkeysmq(ph_getwindow(ph_getwindow(ph_findwindow("Messa ge from webpage",1),5),2),"{esc}")

Does the intended action.

__________________
Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
Back to Top View smarty's Profile Search for other posts by smarty
 

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