Quote:
this is neat daveC...but was just wondering, what would someone need to do to change it from the 'CTRL' key to an F-Key? Like F9?


/help $mouse
1 left mouse, 2 ctrl, 4 shift, 8 alt, 16 right mouse

For F keys its a little harder, if it was a custom window there would be little problem as u can detect keys down and up, but for other windows i think that might be tougher, F9 is deteted down, but I dont think theres a resource to check to see if its down.

could try this
Code:
on ^*:hotlink:*:*:{
  if ($calc($ticks - %f9@ticks) < 50) {
    ;F9 pressed less 1/20th of a second ago!
    if ($mouse.key & 1) {
      ;left mouse click
      echo -st You have clicked on this word $+(',$1,') with F9 down
    }
    return
  }
  halt
}
alias f9 { set %f9@ticks $ticks }

* the idea is F9 being held down causes the F9 alias to be called over and over, on my system its always under 50ms, it was always 31,32,47 ms between occrances, (I have my repeat rate at the max).
So I simple set what time it goes off at, then see if its under 1/20th of a second since it was last tripped, and judge that as down.

Now if it was just a F9 press and release, I would argue that no one can be accurate enough to say if the F9 was down or not at the time the mouse was clicked, if its within 1/20th of a second. AKA Close enough to correct for a human operator.