-
Notifications
You must be signed in to change notification settings - Fork 55
Description
Hi there
The 'ListenersCurrentVirtualDesktopChanged' listener seems to fire 3 times for any single change of a virtual desktop.
I only discovered this by putting logs into my autohotkey script as simple testing passed, but real world usage became erratic.
I didn't understand the purposes of either your v1 branch - class_VD or your v2 branch v2_port, so I have been using the code downloaded direct from the Alpha branch.
I followed the example and so have been using:
#Include %A_LineFile%\..\VD.ahk
VD.ListenersCurrentVirtualDesktopChanged[(desktopNum_old, currentDesktopNum) {
...
}
For the moment, I've implemented a workaround by tracking the current desktop in my own script and then only reacting when the currentDesktopNum variable actually changes. This is working for me, however:
- This put extra workload / maintenance in consuming scripts
- The listener really ought not to raise multiple events for the same operation
Is this because I'm using the Alpha branch? Is there something else I ought to be doing?
Thanks.