Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Avoid key binding conflict among scripts


  • Please log in to reply
2 replies to this topic
Azevedo
  • Members
  • 179 posts
  • Last active: Nov 04 2015 04:37 PM
  • Joined: 07 Mar 2012

Hey

 

I have 3 AHK scripts running. The last one to be loaded seems to  steal the keyboard hook because the keys binded in the scripts running earlier stop working until I close the "thief". (even though are different keys binded)

 

What is the story with these conflicts? Can I avoid them?



Exaskryz
  • Members
  • 3249 posts
  • Last active: Nov 20 2015 05:30 AM
  • Joined: 23 Aug 2012

Look at using the ~ modifier to activate multiple scripts if necessary. This will let it pass through the first AHK and be received by the second.

 

Or, combine your scripts if you want them running concurrently. #IfWinActive and other #If directives can help you manage duplicate hotkeys.



Azevedo
  • Members
  • 179 posts
  • Last active: Nov 04 2015 04:37 PM
  • Joined: 07 Mar 2012

Thanks mate!