I want such a script to use as "cheatsheet hotkeys helper" when working, so my file has this structure (just an example):
vscode open file Ctrl + O
vscode save file Ctrl + S
Spyder compile program Ctrl + Alt + C
Chrome vimium open bookmark O
My script:
Code: Select all
^k::
InputBox, SearchString, Search in C:\Users\jomaweb\hotkeys.txt, Entering the String to search
Lines =
Loop, Read, C:\Users\jomaweb\hotkeys.txt
If InStr(A_LoopReadLine, SearchString)
Lines .= SubStr(A_LoopReadLine, 1+InStr(A_LoopReadLine,"/",,0)) "`r`n"
MsgBox, % Lines
So when I write "vs" only vscode lines will be shown and if I continue writing "vscode op" just the first line will be shown (no need to press enter and show results in same window not a new msgbox)
is that possible?