Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome General
 PowerHome Messageboard : PowerHome General
Subject Topic: PowerHome 1.01.1 Released Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: August 10 2002 at 01:24 | IP Logged Quote dhoward

Well just a little overdue
Hope you all enjoy it. Let me know of any problems which might pop up.

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: August 10 2002 at 19:52 | IP Logged Quote TonyNo

Whoo hoo!

Uh, your link says 1011 but is actuallly 1001!

Tony
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: August 10 2002 at 20:45 | IP Logged Quote dhoward

Yikes!! Nice catch Tony. Its fixed now. My apologies to anyone who wasted their time. It was awfully late last night.

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: August 10 2002 at 23:29 | IP Logged Quote TonyNo

Is there any way to duplicate the command center interface for the web? I think someone mentioned this before?

Thanks for the update! Nice to see window positions maintained after minimizing, wav playback support, and all the other stuff! I hope I'll be able to figure out the psp's (the samples are all greek to me now).

What's all the tildes for that popped up in my macros?

Thanks,
Tony
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: August 13 2002 at 14:01 | IP Logged Quote dhoward

Tony,

I'll be working on the Control Center to the web. It most likely wont be perfect especially if you have a background graphic. Also, once I get the other objects on the Control Center (pictures, hotspots, lines, groups, rectangles, etc), Im not sure how I'll be able to duplicate that for the web...but Im sure I'll come up with something

Yeah, the PSP's will take a little figuring out. Once you get the hang of it however, it's not that bad.

Tildes in the macros?? Im not really sure. The tilde is an escape character and would generally be used to have embedded single or double quotes within a single or double quoted string. Such as 'Mike~~'s new computer is fast'. The double tilde followed by the single quote lets the formula evaluator know that the quote before the 's' is embedded and does not mark the end of the quoted string. During the database conversion process, all variable substitution fields were changed to formula fields. Since a variable substitution field was just a string that supported GV and SV substitution, the easy way to translate to a formula was just to enclose the string in single or double quotes. This might be what you're talking about. Can you post for me a macro or two demonstrating the tildes and I'll research and try to tell you exactly what happened.

Any other problems with the update so far?

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: August 13 2002 at 21:04 | IP Logged Quote TonyNo

Dave,

No problems found with the upgrade so far.

Any suggestions on where to start for rolling our own PSP's? I thought I could get started, but, once I got my page with image and hotspots, I could only think of linking to a page with the code, then, jumping back to the first page.

My false-start: http://members.telocity.com/~tonyno/ph-holly.htm

The tildes are all when I launch external programs...

insert into macroheader values ('MUSIC PLAY TONY','PLAY TONYS MUSIC',580,612,252,96,0,0,0,12632256,0,0,1,'MACROS');
insert into macrodetail values ('MUSIC PLAY TONY',1,16,'',NULL,'if({QCD FLAG}=0,1,2)');
insert into macrodetail values ('MUSIC PLAY TONY',2,10,'QCD FLAG',NULL,'1');
insert into macrodetail values ('MUSIC PLAY TONY',3,17,'',NULL,'"~"C:\Program Files\QCD 3\QCDPlayer.exe~" /play e:\my documents\tony.m3u"');
insert into macrodetail values ('MUSIC PLAY TONY',4,9,'',NULL,'"Player loaded"');

Thanks,
Tony

Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: August 13 2002 at 21:43 | IP Logged Quote dhoward

Tony,

Yep, the tildes are there because that field is now considered a formula. The whole field is basically a string so it's delimited by double quotes (strings can also be delimited by single quotes...in which case you would not need the tildes since you can have embedded double quotes within strings delimited by single quotes and vice versa). Since your string already had double quotes within it, the database upgrade utility was smart enough to add the tilde escape character in front of your double quotes so the formula evaluator would know that the double quote was embedded and not signifying the end of the string.

Hmmm...I wasnt really sure what you were asking concerning the PSP at first. I took a look at your code however and I think I can guess what you're trying to accomplish. It looks like you want to have a floorplan layout with hotspots that you would click on and then PowerHome perform some action. If this is the case, then I probably wouldn't use PSP at all. PSP is useful if the page needs to dynamically change based upon the current state of PowerHome. If you just are going to have static HTML with hotspots and have it control PowerHome then you would probably just use the SendKeys action previously built into the webserver.

Now if you want to load different graphics with possibly different hotspots etc, based upon PowerHome's current state, then definately you would have to use PSP.

If you are initially trying to accomplish the former to get started, code the execsendkeys function as your action. It would look something like: action="/ph-cgi/execsendkeys?nexturl=ph-holly.htm&sendkeys='your send keys formula here. Remember that it's now a formula'"

The nexturl would be the url of the page that you would like to load after you execute the sendkeys formula. The formula can be a whole combination of the new formula functions which include X-10 control such as the ph_x10 function.

Now if you did'nt want the page to reload each time and you wanted the same page to stay active, you could play a game with javascript and still execute the send keys command but make the target another window that opens in the background and then automatically closes. This would look like you never changed the main page. Without getting into true Java, web pages don't really lend themselves to this type of control but it can be done.

Let me know if you would like me to post some code pertaining to the opening in the background and autoclosing of the window.

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: August 13 2002 at 23:01 | IP Logged Quote TonyNo

Dave,

I was shooting for anything that worked! I'll try that.

An active page is the ideal; guess that means diving into Java for me! Any pointers on where to start? I figure I can drop some buttons and such into a blank page in FrontPage and mess with the code.

Thanks,
Tony
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 

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