Hi ehathgepiurhe

Maybe by now you have experimented with and without
the Logitech driver and software installed.

My guess (not sure) is you will have discovered
(when you are not using the Logitech software)
most of the multimedia/internet keys, such as "Mail"
send keycodes which Powerpro can use as hotkeys
but the G1 to G18 keys do not send keycodes.

If so you have to use the logitech software.

Here's what I think is the easiest way to make all the G1-18 keys
programmable by Powerpro when iTouch is installed...

This way, after it is set up, you can change the action
for any of your G1-18 keys by editing one script file,
-- no need to use the Logitech iTouch interface
when you change what your hotkeys do.


In the iTouch program, give every G key a similar command,
only change the last number to match the particular key:

"c:\pathto\powerpro.exe" [EMAIL PROTECTED]
"c:\pathto\powerpro.exe" [EMAIL PROTECTED]
"c:\pathto\powerpro.exe" [EMAIL PROTECTED]
etc

Now make the following script named: Gkeys.powerpro
in your \powerpro\scripts folder.

;;--------- Gkeys.powerpro ----------

message You can only run this script with: [EMAIL PROTECTED]
quit

@G1
  [EMAIL PROTECTED]
  clip.setpaste("[EMAIL PROTECTED]")
quit

@G2
  [EMAIL PROTECTED]
  ;; [maybe your Keys command to make text red and bold]
quit

@G3
  [EMAIL PROTECTED]
  ;; [your commands for key G3]
quit

;; [and more sections like that up to @G18]

quit

@SharedCode
  static lasttime
  if((timesec - lasttime) < 2))do
    quit all
  endif
  lasttime = timesec
quit

;;-------- end of script -------------------

How it works:
You only need to make each @G section call the @SharedCode 
subroutine if you cannot fix your problem of unwanted
key repeats happening sometimes.

So, if you can fix the double action problem, delete 
every line which says "@SharedCode" in every @Gn section.

Using a subroutine, called @Shared Code, saves you from
repeating the same stuff for every @Gn section.

Also, if you want to change how you check for
accidental double actions, you only need to change
the @SharedCode part, instead of changing every
one of the 18 @Gn sections.

The quit at the end of @sharedCode makes it jump back
to the @Gn section being used on this occasion,
but that only happens if the time now (timesec)
is at least one second after the last time this key
was triggered (lasttime).

If the last time this key was triggered is less than
one second ago, the "quit all" line will stop the script
completely, so it will not jump back to the current
@G section and do the commands there.

The quit at the end of each @G section quits the script finally.

You can adjust the number "2" in the line:
  if((timesec - lasttime) < 2))do
For example if the bad double action sometimes occurs 
after one and a half seconds, make it 3 (which catches 
a double action of 2 seconds or less).
If you make it too big, you will have to pause for that time
before you can use the same key again on purpose.

Maybe I got it wrong about how Powerpro works to the
nearest second, so where I wrote 2 you may need 1,
and where I wrote you 3 you may need 2. Experiment :)


I hope you will find that method easy to use

Alan M




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Protect your PC from spy ware with award winning anti spy technology. It's free.
http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~-> 

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