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: right click file - jump right to context menu without pressing "M"  (Read 9,190 times)

dwilbank

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 86
Hi Mr. Mouser.

98% of of the time, when I search for a file, I right click it, and immediately press "M" to get to the standard windows context menu.

Is there a way to skip or automate that step, and make FARR immediately route me to the windows context menu?

I'll probably think of a way as soon as I press "Post".

Thanks.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: right click file - jump right to context menu without pressing "M"
« Reply #1 on: January 07, 2011, 06:14 PM »
try selecting the result and hitting ctrl+P, or if its the first result in the list just hit ctrl+P from the search field.

dwilbank

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 86
Re: right click file - jump right to context menu without pressing "M"
« Reply #2 on: January 07, 2011, 10:42 PM »
Thanks sir.
That cuts out half the work!
Now I'll just make an AHK script to send "ctrl-p" any time I right click within a FARR results window.
We'll see how far I get.

Oh great. Now I've lost all right click functionality.
This will take a while.

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: right click file - jump right to context menu without pressing "M"
« Reply #3 on: January 08, 2011, 03:44 AM »
dwilbank: try this script sample to do what you want.

Code: (autohotkey)
; The right-click button brings up the context-menu on Farr search result items.

#Persistent
#SingleInstance, Force
#NoEnv
SetTitleMatchMode 2	; partial title match 
SetWorkingDir %A_ScriptDir%

Menu, Tray, Tip, The right-click button brings up the context-menu on Farr search result items.`nWin+x to quit.

#IfWinActive Find and Run Robot ahk_class TMainForm
~RButton::
  Send, ^p     ; Ctrl + p brings up the windows context menu
Return
#IfWinActive

; win+x quits
#x::ExitApp

note: to retain right click functionality, use ~RButton.

dwilbank

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 86
Re: right click file - jump right to context menu without pressing "M"
« Reply #4 on: January 08, 2011, 01:18 PM »
Thanks sir!
I'll be able to try it out Monday.

I was trying to use #
RButton:: CLICK Send, ^p

in order to make sure that the proper file in the list was selected first before the ^p went into effect.

but looks like your ~ before the RButton might take care of selecting the proper file?

Thanks again.

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: right click file - jump right to context menu without pressing "M"
« Reply #5 on: January 08, 2011, 02:04 PM »
I was trying to use #
RButton:: CLICK Send, ^p

in order to make sure that the proper file in the list was selected first before the ^p went into effect.

but looks like your ~ before the RButton might take care of selecting the proper file?

i haven't tested the script much but in theory, it's quite sound. in this script the tilde mark sends the right-click onto Farr's search results list item and then calls the context-menu (with Ctrl+p) before Farr invokes its standard context-menu. so i guess the files selection won't be affected. :)

dwilbank

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 86
Re: right click file - jump right to context menu without pressing "M"
« Reply #6 on: January 08, 2011, 03:16 PM »
And l was using line 11 with some moderate success...
But now I see how line 15 is necessary to isolate all the commands between line 11 and 15.
That opens up many possibilities in some other scripts I've written!
Thanks!

skajfes

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 267
Re: right click file - jump right to context menu without pressing "M"
« Reply #7 on: January 09, 2011, 04:43 PM »
I always forget about AHK...
I've posted a similar question a while ago, but I've accepted that ctrl+p is the only way to go. This is much cooler guys. Thanks.
It is impossible to make anything foolproof because fools are so ingenious.

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