I determined the VK and SC codes of the keys in question by opening a running AHK script and opening the "Key history and script info". Below is a test script that I created that would show that I could indeed RUN some desired programs instead of using the MsgBox. When I pressed the keys in question it would indeed run the desired MsgBox. However could not determine how to exit the script after runinng one of the desired. The VK of each of the keys in question was "FF", the scan codes (SC) is shown below. I thought maybe the test VK for not being "FF" that it woul exit. Any help would be appreciated. Jess U. Mail: (jesseund @ gmail.com).
Code: Select all
if vk<>FF return if SC=11F ;1 SC11F:: MsgBox, MidiHost key was pressed. if SC=116 ;2 SC116:: MsgBox,Cakewalk key was pressed. if SC=139 ;3 SC139:: MsgBox,Soundfont key was pressed. if SC=114 ;4 SC114:: MsgBox,Virtual Synth key was pressed. if SC=126 ;6 SC126:: MsgBox,VLC key was pressed. if SC=11E ;8 SC11E:: MsgBox,Audacity key was pressed. return