| 
    
     | 
       
        | Author |  |  
        | smarty Super User
 
  
  
 Joined: May 21 2006
 Location: United States
 Online Status: Offline
 Posts: 729
 | 
          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.
           | Posted: December 26 2017 at 09:24 | IP Logged |   |  
           | 
 |  
 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 |     |  
        |  |  
        | smarty Super User
 
  
  
 Joined: May 21 2006
 Location: United States
 Online Status: Offline
 Posts: 729
 | 
          Update:
           | Posted: December 26 2017 at 09:39 | IP Logged |   |  
           | 
 |  
 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 |     |  
        |  |  |  |