smarty Super User 
          
  
  Joined: May 21 2006 Location: United States
 Online Status: Offline Posts: 729
          | 
        
         
          
           | Posted: February 10 2012 at 15:30 | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
I am wanting set up a "watchdog" type, timed Powerhome event that sends a message to another windows application (Xlobby) on the same computer (to see if that application is still running/alive).
 
 The target application has triggers that can be set up that will allow it to respond in some manner.  From that response (or lack there of), I can deteremine if it is running/Ok.
 
 The target application can trigger off of either: WM_APPCOMMAND, WM_COMMAND, WM_USER or WM_INPUT for the trigger notification type.
 
 For the first three(WM_APPCOMMAND, WM_COMMAND, WM_USER), I need to specify the "WParam" and the "LParam".
 
 If I use the WM_INPUT, I need to specify "Raw Data", "Usage" and "Usage Page".
 
 HERE IS MY QUESTION: what Powerhome formula should I use to send a windows message to one of these Xlobby trigger types so that I can trip the Xlobby trigger?
 
 I would think something like:
 ph_postmsg(ph_findwindow("xlobby",1),XXX,YYY,ZZZ)
 
 But I have no idea what the X/Y/Z should be in the powerhome formula.  Also, what Xlobby (my target application) trigger notification type should be used (and what would be the right W & LParams be)?
 
 Thanks
 Steve
 
  __________________ Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
         |