topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Monday December 16, 2024, 12:29 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: right click file - jump right to context menu without pressing "M"  (Read 6666 times)

dwilbank

  • Supporting Member
  • Joined in 2009
  • **
  • default avatar
  • Posts: 86
    • View Profile
    • Donate to Member
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,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: right click file - jump right to context menu without pressing "M"
« Reply #1 on: January 07, 2011, 12: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
  • **
  • default avatar
  • Posts: 86
    • View Profile
    • Donate to Member
Re: right click file - jump right to context menu without pressing "M"
« Reply #2 on: January 07, 2011, 04: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
    • View Profile
    • Donate to Member
Re: right click file - jump right to context menu without pressing "M"
« Reply #3 on: January 07, 2011, 09:44 PM »
dwilbank: try this script sample to do what you want.

Code: Autohotkey [Select]
  1. ; The right-click button brings up the context-menu on Farr search result items.
  2.  
  3. SetTitleMatchMode 2     ; partial title match
  4. SetWorkingDir %A_ScriptDir%
  5.  
  6. Menu, Tray, Tip, The right-click button brings up the context-menu on Farr search result items.`nWin+x to quit.
  7.  
  8. #IfWinActive Find and Run Robot ahk_class TMainForm
  9. ~RButton::
  10.   Send, ^p     ; Ctrl + p brings up the windows context menu
  11. Return
  12.  
  13. ; win+x quits

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

dwilbank

  • Supporting Member
  • Joined in 2009
  • **
  • default avatar
  • Posts: 86
    • View Profile
    • Donate to Member
Re: right click file - jump right to context menu without pressing "M"
« Reply #4 on: January 08, 2011, 07:18 AM »
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
    • View Profile
    • Donate to Member
Re: right click file - jump right to context menu without pressing "M"
« Reply #5 on: January 08, 2011, 08:04 AM »
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
  • **
  • default avatar
  • Posts: 86
    • View Profile
    • Donate to Member
Re: right click file - jump right to context menu without pressing "M"
« Reply #6 on: January 08, 2011, 09:16 AM »
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
    • View Profile
    • Donate to Member
Re: right click file - jump right to context menu without pressing "M"
« Reply #7 on: January 09, 2011, 10:43 AM »
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.