win-vind icon indicating copy to clipboard operation
win-vind copied to clipboard

[Bug] Easyclick labels do not disappear

Open mangost opened this issue 7 months ago • 3 comments

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

  1. I noticed that the labels disappear after terminating another win-vind process
  2. 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)
}

mangost avatar Jan 16 '24 05:01 mangost

Update: The problem remains with admin

mangost avatar Jan 16 '24 06:01 mangost

@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.

pit-ray avatar Jan 17 '24 12:01 pit-ray

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>}

mangost avatar Jan 17 '24 15:01 mangost