win-vind
win-vind copied to clipboard
[Bug] Easyclick labels do not disappear
About Bug
Easyclick labels do not disappear, even after pressing esc, switching to other modes, exit (from the menu), or F8+F9 The problem occurs randomly
Steps to reproduce
Unknown
Environments
Environments | |
---|---|
Windows Edition | [10 Home (from the log. Actually I use 11 Home)] |
Windows Version | [22H2] |
Windows Build | [10.0.22621] |
Architecture | [e.g. 64bit] |
win-vind Version | [5.9.0.0] |
win-vind Install Type | [scoop] |
Possible causes
- I noticed that the labels disappear after terminating another win-vind process
- I use win-vind without admin privilege. I now grant it the admin, and I will report whether the problem disappear
My current solution (in case someone meet the same problem)
#Requires AutoHotkey v2.0
ProcessCloseAll(PIDOrName)
{
While ProcessExist(PIDOrName)
ProcessClose PIDOrName
}
F7 & F9::{
Path := ProcessGetPath("win-vind.exe")
ProcessCloseAll("win-vind.exe")
Run('*Runas ' Path)
}
Update: The problem remains with admin
@mangost
If it disappears when other win-vind processes are terminated, does that mean you are calling it from AHK or something like win-vind.exe -c "<easyclick>"
?
Since EasyClick uses a low-level API to draw directly to the pixels of the screen, it may not disappear until there is an update to the pixels, even if win-vind terminates. To fix this, we need to display a pseudo-transparent window over the entire screen, like Win+G.
I do not use ahk to call win-vind.exe
But I use this vindrc, in which I renomap some keys to easyclick.
version huge
set shell = cmd
set cmd_fontsize = 24
set cmd_fontname = Consolas
set easyclick_bgcolor=E67E22
set easyclick_fontcolor=34495E
set easyclick_fontsize=18
set gridmove_bgcolor=E67E22
set gridmove_fontcolor=34495E
set gridmove_fontsize=18
set gridmove_size=25x25
set hscroll_pageratio = 0.3
set vscroll_pageratio = 0.3
set autotrack_popup = true
" Define useful shortcuts
noremap <ctrl-space> <easyclick_all><click_left>
inoremap <ctrl-space> <easyclick_all><click_left>
noremap <ctrl-shift-m> <gridmove><to_gui_normal><click_left>
noremap <ctrl-shift-m> <gridmove><to_gui_normal><click_left>
inoremap <ctrl-shift-m> <gridmove><to_gui_normal><click_left>
noremap <ctrl-shift-b> <switch_window><easyclick><click_left>
inoremap <ctrl-shift-b> <switch_window><easyclick><click_left>
gnoremap <alt-tab> <switch_window><easyclick><click_left>
ennoremap <alt-tab> <switch_window><easyclick><click_left>
" snipaste
map <f1> {<f1>}
map <f8> {<f8>}