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: IDEA: toggle Appskey [DONE] but how to ignore certain apps?  (Read 6,230 times)

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,970
    • Gathering Badge
    • Participated in NANY Challenge Once
IDEA: toggle Appskey [DONE] but how to ignore certain apps?
« on: February 07, 2009, 04:42 PM »
I'm not a typist and work a lot with mouse & Control key + various shortcuts.
I've always had trouble with the Apps Key (I'm left handed so working with right Ctrl) - if I hit it by mistake I have to go all the way to the other end of the keyboard and hit escape to get rid of the context menu. This gets annoying if you do it often ...

Lately I discovered that Shift+F10 also shows the context menu but it toggles it

So I present to you
my first AHK script  :D
Code
Appskey::+F10

which changes the apps key to Shift+F10 so it can toggle the menu on & off
My problem is Shift+F10 doesnt work in the programme where I really wanted this to work (Freehand, but I want to keep the script anyways for other programmes)
So, is there an easy way to exclude any particular programme from this script ?
Tom

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: IDEA: toggle Appskey [DONE] but how to ignore certain apps?
« Reply #1 on: February 08, 2009, 02:43 AM »
you can try one of the code and see if the problem goes away..

this:
Code
$Appskey::+F10

or this:
Code
Appskey::Send +F10

AndyM

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 616
Re: IDEA: toggle Appskey [DONE] but how to ignore certain apps?
« Reply #2 on: February 08, 2009, 02:49 AM »
is there an easy way to exclude any particular programme from this script ?
Check out the autohotkey commands:  #IfWinNotActive and #IfWinActive

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,970
    • Gathering Badge
    • Participated in NANY Challenge Once
Re: IDEA: toggle Appskey [DONE] but how to ignore certain apps?
« Reply #3 on: February 08, 2009, 11:26 AM »
you can try one of the code and see if the problem goes away..
...
thanks Lanux
but the problem was that the programme does not recognise the Shift+F10 in the first place

Check out the autohotkey commands:  #IfWinNotActive
thanks Andy, will do!
Tom

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