Author |
|
patrickm Senior Member
Joined: February 22 2007 Location: United States
Online Status: Offline Posts: 188
|
Posted: July 24 2009 at 12:34 | IP Logged
|
|
|
I am wondering if anyone has done anything with Windows UPS/Power management and Powerhome?
Is anyone using the WM_POWERBROADCAST message with Powerhome?
I am curious what other people are doing with UPS and Powerhome.
|
Back to Top |
|
|
jeffw_00 Super User
Joined: June 30 2007
Online Status: Offline Posts: 929
|
Posted: August 02 2009 at 12:35 | IP Logged
|
|
|
i can't even find this one in the online docs...
?
|
Back to Top |
|
|
patrickm Senior Member
Joined: February 22 2007 Location: United States
Online Status: Offline Posts: 188
|
Posted: August 03 2009 at 11:00 | IP Logged
|
|
|
WM_POWERBROADCAST is a windows API broadcast message. I see stuff in the Powerhome documentation about sending windows messages to other apps (ph_sendmsg) but I didn't see anything about receiving them.
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: August 03 2009 at 19:35 | IP Logged
|
|
|
For things that use WM_COPYDATA, you could create a new trigger and set the Trigger-Type to WM_COPYDATA to receive those messages. There is also a WM_USER trigger.
WM_COPYDATA / Data Trigger
The passed-in data is available within the [TEMP5] system variable
|
Back to Top |
|
|
patrickm Senior Member
Joined: February 22 2007 Location: United States
Online Status: Offline Posts: 188
|
Posted: August 10 2009 at 15:34 | IP Logged
|
|
|
Those commands appear to be for sending messages not receiving them. I want to be able to trigger events based apon listening to the WM_POWERBROADCAST messages.
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: August 10 2009 at 19:37 | IP Logged
|
|
|
For the record, WM_COPYDATA is for receiving copydata messages.
I think Dave needs to chime in as to if this can be done. Seems like a helper-app would be needed to listen for that message and then send to PH via a WM_COPYDATA message.
|
Back to Top |
|
|