You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I read the document here and command line help, and learned that win-vind functions could be called from command line, by win-vind -c "<FUNCTION>" or win-vind -f "FUNCTION". But the calling is not blocking, which means it will return immediately.
Question
Is there a way to call win-vind functions from command line, and wait for the function to finish?
More details
I use autohotkey for most of my keybindings, which conflict s with many win-vind keybindings. So I only need the awesome <easy_click> and <gridmove> function of win-vind. I just keep win-vind in Resident mode, and create keybingdings by calling win-vind with cmdline flags in autohotkey scripts.
My .vindrc:
version tiny
set initmode=r" resident modeset novcmdline
set uiacachebuild
set uiacachebuild_lifetime=5000set uiacachebuild_staybegin=500set uiacachebuild_stayend=2000
autohotkey v2 script:
; My Keymap class and Map methodclass Keymap {
Map(hotkeyName, handler, keymapToLock := false, winTitle := "", conditionType := 0, options := "") {
}
}
; bind win-vind gridmove to "<!<_s"(saying <lalt_lshift_s>), ; and wait until it finishs, before locking/activating my own mouse keybindings
globalKeyMap.Map("<!<+s", _ => (Runwait("win-vind -f gridmove")), slowMouseKeymap)
I want to activate my own mouse keymap right after calling gridmove, so I used RunWait(wait until finish) as handler.
However, the cmdline calling is not blocking, so my mouse keybindings are activated before gridmove finishes. It means that autohotkey will swallow key inputs, and will not sent to gridmove.
If I could blocking call gridmove, it will be solved.
The text was updated successfully, but these errors were encountered:
Background
I read the document here and command line help, and learned that win-vind functions could be called from command line, by
win-vind -c "<FUNCTION>"
orwin-vind -f "FUNCTION"
. But the calling is not blocking, which means it will return immediately.Question
More details
I use autohotkey for most of my keybindings, which conflict s with many win-vind keybindings. So I only need the awesome
<easy_click>
and<gridmove>
function of win-vind. I just keep win-vind in Resident mode, and create keybingdings by calling win-vind with cmdline flags in autohotkey scripts.My .vindrc:
autohotkey v2 script:
I want to activate my own mouse keymap right after calling gridmove, so I used
RunWait
(wait until finish) as handler.However, the cmdline calling is not blocking, so my mouse keybindings are activated before gridmove finishes. It means that autohotkey will swallow key inputs, and will not sent to gridmove.
If I could blocking call gridmove, it will be solved.
The text was updated successfully, but these errors were encountered: