Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Clearing events

If you have a question or need help, this is the place to be.
Post Reply
MKTL
Posts: 3
Joined: Mon Oct 20, 2008 3:35 pm

Clearing events

Post by MKTL »

System: WinXP SP2, EventGhost 0.3.6.1480 (and the current stable build does the same)

Pressing Ctrl-Alt-Del and then Esc (to get back to Windows from the logout screen) gives the following in the log:
Keyboard.LCtrl
Keyboard.LCtrl+LAlt
Keyboard.LCtrl+LAlt+Delete
Keyboard.LCtrl+LAlt+Delete
And the last line somehow remains in the cache as if the buttons are stuck.
So if I, say, press Space after that, I get:
Keyboard.LCtrl+LAlt+Space+Delete
I tried "Clear Pending Events" on Ctrl-Alt-Del - no result.

What works is:

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1480">
    <Folder Name="Autostart Macros" id="15" Expanded="True">
        <Macro Name="Ctrl-Alt-Delete reset" Expanded="True">
            <Event Name="Keyboard.LCtrl+LAlt+Delete" />
            <Action>
                Window.SendKeys(u'{Delete}{Alt}{Ctrl}', False)
            </Action>
        </Macro>
    </Folder>
</EventGhost>
The problem is that it sends the Keys to whatever window is on top, so for example if it happens to be an editor, the "Delete" key deletes something, "Alt" calls the menu etc.etc.

Is there a better way to clear the remains of a Ctrl-Alt-Del from the cache?

Thanks!
Bartman
Plugin Developer
Posts: 881
Joined: Sun Feb 12, 2006 9:03 am

Re: Clearing events

Post by Bartman »

This is a long known bug in the keyboard plugin which would require a lot of rewriting.
The reason is that EG does not get the keystrokes from the OS anymore, when it switches to a secure desktop and therefore does not get any notice of the releasing of the keys.
MKTL
Posts: 3
Joined: Mon Oct 20, 2008 3:35 pm

Re: Clearing events

Post by MKTL »

Thanks, I get it. Hoped there was a trick. Somehow my script above does the job of clearing it, I would just prefer to have those keys be sent to EG engine only, and not to whatever is on top.

Say, if the "Clear pending events" were clearing unreleased buttons that would've been swell.
MKTL
Posts: 3
Joined: Mon Oct 20, 2008 3:35 pm

Re: Clearing events

Post by MKTL »

Just curious, any positive development concerning the above?

Thanks!
jsonnabend
Experienced User
Posts: 127
Joined: Wed Apr 23, 2008 7:35 pm

Re: Clearing events

Post by jsonnabend »

As far as I can tell, this problem persists. See, for example, this thread.

- Jeff
Post Reply