Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome General
 PowerHome Messageboard : PowerHome General
Subject Topic: Windows Controls Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
RWCS
Senior Member
Senior Member
Avatar

Joined: October 28 2002
Location: United States
Online Status: Offline
Posts: 102
Posted: November 23 2002 at 13:16 | IP Logged Quote RWCS

Dave

Can you give me a Macro line that would maximize PH, or minimize PH.

Bob



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

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: November 23 2002 at 16:08 | IP Logged Quote dhoward

No problem,

To maximize PowerHome, use this formula: ph_sendmsg(ph_handle(),274,61488,0)

To minimize PowerHome, use this formula: ph_sendmsg(ph_handle(),274,61472,0)

Dave.

 

Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
RWCS
Senior Member
Senior Member
Avatar

Joined: October 28 2002
Location: United States
Online Status: Offline
Posts: 102
Posted: November 24 2002 at 14:51 | IP Logged Quote RWCS

Dave

Cute trick. . . wish I understood how it works. . . Now, can you make PH the active window?

Bob



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

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: November 24 2002 at 22:28 | IP Logged Quote dhoward

Bob,

It's not too complicated, I just sent a Windows Message to the PowerHome frame window.  The type of message was a SYS_COMMAND message which equates to the number 274.  The ph_handle function returns the handle of the frame window and is the target of the windows message.  The other numbers 61488 and 61472 are the message values for maximize and minimize.  I didn't know exactly how to do it until I did a little research on the web.  You can do quite a bit with windows messages.

Back to your question though...to bring PowerHome to the front, use the Macro command "Switch To App" with a value of "Window Name" and a Send Keys of " PowerHome  ".  Thats PowerHome with a single space in front and two spaces after.

Have fun,

Dave.

 

Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward'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