PDA

View Full Version : Auto-launch SEARCH function when calling Menu Editor



jeric_synergy
10-05-2014, 01:05 AM
98% of the time when I call up the Menu Editor it is to SEARCH for a function. Tedious.

This AHK script hijacks the ALT+F10 key, and automagically launches the SEARCH dialog. I didn't want to memorize two hotkeys, so it's still the Menu Editor hotkey, it just assumes I'm going to Search.

On your systems you may have to fine tune the "Click" line for your window coordinates-- use WINDOWS SPY, included with AHK, to find out the correct coords for your system.

You may also be able to decrease the "Sleep, NNN" value below 200, which will make it faster. It's a delay to allow time for the window to draw.

Enjoy!


;change MENU EDITOR to SEARCH MENU EDITOR
#IfWinActive NewTek LightWave
$!F10::

;Open Menu Editor using usual LW hotkey, avoid infinite loop
Send !{F10}
Sleep, 200
;Find and click on the SEARCH BUTTON 640, 179
Click 640, 179
return