DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Double Right Click Start Menu  (Read 8,379 times)

icekin

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 264
Double Right Click Start Menu
« on: July 23, 2007, 10:33 PM »
I was trying to implement a start menu that will fly out anywhere on the screen upon a double right click. I also removed all the icons for speed. That part is similar to eaticons (http://www.regxplor.com/other.html)

Problem : Upon execution, the program seems to lack the ability to distinguish between single and double right clicks properly.

I get erratic behaviour : sometimes it pops up the start menu of a single right click, other times it gives a regular right click menu even on the double.

How can I implement this properly? Either on Powerpro or some other scripting program?

Upon searching many forums, I found a similar product called LaunchOnFly (http://arturdev.com/index.php?section=prod&product=launchonfly), but it doesn't do the same thing.

jgpaiva

  • Artificial Idiocy
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • Cody Award
    • Participated in NANY Challenge Once
    • Coding Snacks
    • Portugal Inhabitant
    • Linux User
Re: Double Right Click Start Menu
« Reply #1 on: July 23, 2007, 10:50 PM »
Here's a "proof of concept" of how it can be done in autohotkey:
code inside
Code
flag := false

RButton::
  if flag
  {
    send,{lwin down}{lwin up}
    settimer, click, off
    flag := false
  }
  else
  {
    flag := true
    settimer, click, 200
  }
  return

click:
  send,{rbutton}
  flag := false
  settimer,click, off
  return

It isn't perfect, and it will break any kind of mouse gestures you have on your OS or webbrowser, but it does work. (adding it the part about moving the StartMenu to the mouse is quite simple)

icekin

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 264
Re: Double Right Click Start Menu
« Reply #2 on: July 24, 2007, 12:41 AM »
Thanks. I will try this out on AHK.

I forgot to mention that I use Strokeit, and the gestures got messed up when I tried the Powerpro method. After some searching, I also located Panekiller (http://www.maddogsw.com/panekiller/) and it has the right idea of what I want, even with the no icons start menu, but cannot be activated on double right click.

icekin

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 264
Re: Double Right Click Start Menu
« Reply #3 on: August 18, 2007, 12:52 AM »
After some research, I have realized that any double right click, whether AutoHotKey or AutoIT messes up the gestures because I use right click as the gesture activating button as well.

I have now set the start menu to pop up when I use CTRL + Right Click using PaneKiller (http://www.maddogsw.com/panekiller). My mouse (http://www.microsoft.com/hardware/mouseandkeyboard/productdetails.aspx?pid=045) happens to have an extra button, which I have assigned to act as CTRL, so the whole thing can be mouse activated.

The end result has been good for improving efficiency a bit.  :up: While there is always Launchy and FARR to replace the start menu, sometimes we tend to forget the name of the program we are looking for and still have to click the start menu. Now, the start menu can be launched anywhere on the screen in an instant without having to even move the fingers away from the mouse. 

[attach]

ak_

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 223
Re: Double Right Click Start Menu
« Reply #4 on: August 18, 2007, 01:40 AM »
You could even make a simple ahk script that would send Ctrl Click whenever you press the 3rd button of the mouse. It's even simpler if the mouse driver allows combination of keys directly.

Original address: https://www.donationcoder.com/forum/index.php?topic=9318.0