Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome General
 PowerHome Messageboard : PowerHome General
Subject Topic: Windows ICON as Trigger? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
jeffw_00
Super User
Super User


Joined: June 30 2007
Online Status: Offline
Posts: 929
Posted: January 11 2009 at 16:13 | IP Logged Quote jeffw_00

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 View jeffw_00's Profile Search for other posts by jeffw_00
 
jeffw_00
Super User
Super User


Joined: June 30 2007
Online Status: Offline
Posts: 929
Posted: January 18 2009 at 11:39 | IP Logged Quote jeffw_00

bump?
Back to Top View jeffw_00's Profile Search for other posts by jeffw_00
 
jbbtex
Senior Member
Senior Member


Joined: February 15 2007
Location: United States
Online Status: Offline
Posts: 181
Posted: January 18 2009 at 14:36 | IP Logged Quote jbbtex

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 View jbbtex's Profile Search for other posts by jbbtex
 
jeffw_00
Super User
Super User


Joined: June 30 2007
Online Status: Offline
Posts: 929
Posted: January 18 2009 at 15:55 | IP Logged Quote jeffw_00

yup - that'll do it

thanks!
/j
Back to Top View jeffw_00's Profile Search for other posts by jeffw_00
 
jeffw_00
Super User
Super User


Joined: June 30 2007
Online Status: Offline
Posts: 929
Posted: February 08 2009 at 13:48 | IP Logged Quote jeffw_00

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 View jeffw_00's Profile Search for other posts by jeffw_00
 
jbbtex
Senior Member
Senior Member


Joined: February 15 2007
Location: United States
Online Status: Offline
Posts: 181
Posted: February 08 2009 at 14:33 | IP Logged Quote jbbtex

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 View jbbtex's Profile Search for other posts by jbbtex
 
jeffw_00
Super User
Super User


Joined: June 30 2007
Online Status: Offline
Posts: 929
Posted: February 08 2009 at 15:55 | IP Logged Quote jeffw_00

yup - that works.
thanks
/j
Back to Top View jeffw_00's Profile Search for other posts by jeffw_00
 

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