Copy link to clipboard
Copied
This script executes first entry from a Scripts with name starting with "f".
RWin::Send, !frf
How to press second entry (script) which name starts with f?
Example, Scriprs menu commans (scripts):
... exportDocs fitAndCenter fitSelection fitAndScale ...
Currently that script executes firAndCenter, but I need fitSelection.
it might not be possible. As an alternative, after pressing Alt+F, R, press the down arrow as many times as needed to highlight your menu item, then press Enter
Copy link to clipboard
Copied
it might not be possible. As an alternative, after pressing Alt+F, R, press the down arrow as many times as needed to highlight your menu item, then press Enter
Copy link to clipboard
Copied
CarlosCanto's way of doing things made it possible. However, it could not be executed with the Windows key alone in my environment, so the following code is triggered with the Windows key + A.
; Syntax of AutoHotkey 2.0
#HotIf WinActive("ahk_exe Illustrator.exe")
#A::{
send("{Alt}frf{Down}{Enter}")
return
}
Copy link to clipboard
Copied
@sttk3 it seems that
frf{Down}{Enter}
still executes the first script on f, at least for the first version of AutoHotkey
Copy link to clipboard
Copied
It is written in AutoHotkey 2.0 syntax, so it should be run in 2.0.
And the fact that you chose CarlosCanto's method as the correct answer probably means that you have successfully rewritten it to AutoHotkey 1 syntax to make it work. Kindly leave a record of your results here. It will help us all.
Copy link to clipboard
Copied
in my case accesing second script in the whole list was done by !fr{Down}{Enter} that's why it's strange that your option works, even despite the difference in syntax, the basic commands are the same