Author |
|
jeffw_00 Super User
Joined: June 30 2007
Online Status: Offline Posts: 929
|
Posted: January 11 2009 at 16:13 | IP Logged
|
|
|
Something i could do back in the CP-290 days.
Is there any way to make the act of clicking on a desktop Icon into a PH trigger? I know i could write something that involved polling, but I'm looking for a direct trigger.
Thanks
/j
|
Back to Top |
|
|
jeffw_00 Super User
Joined: June 30 2007
Online Status: Offline Posts: 929
|
Posted: January 18 2009 at 11:39 | IP Logged
|
|
|
bump?
|
Back to Top |
|
|
jbbtex Senior Member
Joined: February 15 2007 Location: United States
Online Status: Offline Posts: 181
|
Posted: January 18 2009 at 14:36 | IP Logged
|
|
|
There may be other ways, but you could probably get the results you want by using the Socket Server Command Line Controller.
From the readmefile:
Code:
PowerHome Socket Server Command Line Controller.
This utility will allow you or other programs running on the PowerHome machine or a remote networked machine to execute PowerHome formulas from the Command Line.
The syntax for this utility is:
phwssmd.exe <Valid PowerHome Formula>
This utility uses the Socket Server interface of PowerHome and therefore requires that the Socket Server interface be enabled within PowerHome. This can be done from the PowerHome Explorer under Setup->Socket Server. You must also edit the phsscmd.ini file to match the settings you've configured within PowerHome. This utility will use the standard "FORMULA" command of the socket server so that the command line formula will be queued for execution. It will
not fire a trigger directly (the formula may however do so).
Example: phsscmd.exe ph_usermessage("This is a test.") |
|
|
It's available on the downloads page.
__________________ Brady
"Never tell people how to do things. Tell them what to do and they will surprise you with their ingenuity." - Gen. George S. Patton
|
Back to Top |
|
|
jeffw_00 Super User
Joined: June 30 2007
Online Status: Offline Posts: 929
|
Posted: January 18 2009 at 15:55 | IP Logged
|
|
|
yup - that'll do it
thanks!
/j
|
Back to Top |
|
|
jeffw_00 Super User
Joined: June 30 2007
Online Status: Offline Posts: 929
|
Posted: February 08 2009 at 13:48 | IP Logged
|
|
|
Ok - i finally got to downloading and messing with this. Seems simple enough. In the settings, the remotehost is 127.0.0.1, and remoteport (8500), userid, and password match what I programming into PH (and enabled the socket server). However, it doesn't work. (even with windows firewall off).
I type the command
c:\progra~1\phsscmd\phsscmd.exe ph_usermessage("test")
and look for activity in Powerhome Status, and nada.
Is there any way to debug this? I'd really like to get it to work.
Thanks!!!
/j
Edited by jeffw_00 - February 08 2009 at 14:01
|
Back to Top |
|
|
jbbtex Senior Member
Joined: February 15 2007 Location: United States
Online Status: Offline Posts: 181
|
Posted: February 08 2009 at 14:33 | IP Logged
|
|
|
I cannot make it execute correctly from the command line unless I change to the PHSSCMD directory and just run it like: phsscmd.exe ph_usermessage("test")
But you can make a desktop shortcut like this:
Code:
Target: "C:\Program Files\PHSSCMD\phsscmd.exe" ph_usermessage("test")
Start in: "C:\Program Files\PHSSCMD" |
|
|
__________________ Brady
"Never tell people how to do things. Tell them what to do and they will surprise you with their ingenuity." - Gen. George S. Patton
|
Back to Top |
|
|
jeffw_00 Super User
Joined: June 30 2007
Online Status: Offline Posts: 929
|
Posted: February 08 2009 at 15:55 | IP Logged
|
|
|
yup - that works.
thanks
/j
|
Back to Top |
|
|