Hello Sue,

I'm really sorry that my suggested solution has cost you so much
time. I'm pretty sure that using PowerPro's hooks feature is the
only way to do what you were asking because you cannot set a hotkey
for Left click on the max button.

I tested it here and it worked - though I had to use different
numbers because I don't have two 20 inch monitors.

S> I figured it out!! In Alan's original script, I had to
S> change 1600 to 1595 in this line:
S> If(win.left(arg(2)) gt 1600)

Actually I think it should be "gt 1599" because the first pixel
on the Right monitor is 1600.

I got the 1600 from your earlier message:
S> Ok, here is what I came up with that allows a window to
S> still be un-maxxed:
S> If(win.left("under") gt 1600)do
[which should have been 1599.]

--------------------------------------------------------

s> Your instructions were very clear, so I don't think I did anything
s> wrong, except when you said: 
>>> First: Make a script in your powerpro\scripts folder called .HookMax<<

s> I figured (based on what I read in help) you meant for me to name it
s> HookMax.powerpro, which is what I did. Is that right?

Yes, I should have written "call it HookMax.powerpro".

-----------------------------------------------------

s> I don't understand this arg stuff AT ALL.
s> Can anyone point me to an explanation?

It is explained in Help Index "script *command" -- in the topic
called "Powerpro Scripts" and also the topic called "Script commands".
It's in the paragraphs about commands for running scripts.

Argument means the same as Parameter -- it's a way of sending some
extra information, which can be different each time you run the script.

When you write a script you don't know what parameters will be
sent to it -- they can be different each time you run it -- so you
need arg(1) as a shorthand for "the value of the first parameter".

Suppose you have a script called test1.powerpro which only does this:
win.debug(arg(1))
win.debug(arg(2))

If I run that script with this command: .test1("apple","banana")
then anywhere in the script which says arg(1) will become "apple"
[because "apple" is the first argument I supplied when I ran the script]
and anywhere in the script which says arg(2) will become "banana"
so the script tells debug to show "apple" then "banana".

Next time I could run the same script with different arguments:
.test1("mouse","elephant")
and the script would make debug show those words, on this occasion.

You can use an expression (not in quotes) instead of text in quotes:
myvar1 = "mouse"
.test1(myvar1,"elephant")
will have the same effect because PowerPro sends the result of the
expression myvar1 to the script as arg(1)



Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to