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.

alt + enter - key lock problem

Found a bug in EventGhost? Report it here.
Post Reply
xisque`
Posts: 5
Joined: Sun Jun 01, 2008 6:16 am

alt + enter - key lock problem

Post by xisque` »

Hi,

Im using EG 0.3.6.1430 and mediaportal rc1.
They run fine in my desktop, no problem at all. So I bought a notebook to put into my living room acting as a mediacenter contected to my big screen tv.

Everytime the computer come back from standy I can't use it anymore, so I investigted the problem and realized that the ALT and ENTER key hangs in a ON position, that means every key that I press, like UP/Down, become ALT+KEY+RETURN, like ALT+UP+RETURN/ALT+DOWN+RETURN.

I could recreate the problem in an other way: launch EG, lauch MP (configured to run in fullscreen), then I press ALT+ENTER do quit from fullscreen mode, after that the ALT +RETURN key locks in ON, then I switch to EG (using my mouse) and press ALT+ENTER, then the key ALT +ENTER backs to normal, or, close and reopen EG. The same problem occurs when MP is in fullscreen I press CTRL+ALT+DELETE+RETURN, but the key sequence locks in EG, which means that every key that I press becomes CTRL+ALT+DELTE+KEY+RETURN.

Check the log:

Task.Created.MediaPortal
Task.Deactivated.Desktop
Task.Activated.MediaPortal
Keyboard.LAlt
Keyboard.LAlt+Return
Keyboard.LAlt+Up+Return
Keyboard.LAlt+Return
Task.Deactivated.MediaPortal
Task.Activated.EventGhost
Keyboard.LAlt
Task.Deactivated.EventGhost
Task.Activated.MediaPortal
Keyboard.Up
Task.Deactivated.MediaPortal
Task.Destroyed.MediaPortal


Check when I pressed the Alt+Return for the second time, but in EG, it logs as Keyboard.Alt

I noticed that in a normal ALT+ENTER operation EG logs as:

Keyboard.LAlt
Keyboard.LAlt+Return
Keyboard.LAlt

And when the problem occurs:

Keyboard.LAlt
Keyboard.LAlt+Return

There is no Keyboard.LAlt at the end, like closing the operation, like and return was pressed and still pressed.



The problem occurs in a windows xp professional SP3 AND a windows media center edition SP2 AND windows xp professional SP2. I Tried so switch the usb ports with no luck, the problem persists in every usb port.

The notebook is a core2duo T5300 with 1 gb ram 120gb hd, motherboard l114, keyboard layout abnt2 (even if I switch to english the problem still there).
http://www.cceinfo.com.br/pagina.php?Id ... to-detalhe

The remote is a leadership (gotec) code 3801 - no drivers needed (hid)
http://www.leadership.com.br/produto_de ... amilia=tlg

BTW, EG is one of the bests program that a used my entire life!! It is amazing and works like a charm (in my desktop :wink: )
Attachments
ZERO.xml
(50.88 KiB) Downloaded 245 times
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: alt + enter - key lock problem

Post by Bitmonster »

=> 0.3.6.1431

It has some code to reset the keyboard state after suspend.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: alt + enter - key lock problem

Post by Bitmonster »

Oh, BTW:

Don't you have problems with this remote, because it will also generate keystrokes? Or do you have applied the registry tweak to disable this HID feature?
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
le_ikari
Posts: 1
Joined: Sun Jun 01, 2008 5:11 pm

Re: alt + enter - key lock problem

Post by le_ikari »

Hi, I have one of these remote aswell.

Some keys are recognized as buttons, but some are keystrokes.

In case of htpc that doesn't use any keyboard, it just need to configure the keyboard plugin to get those keycombos to work only on the MediaPortal window.


But in my case, I use the PC for work and for mediaportal on the secondary display... so we have a problem, because with the configuration of the keyboard plugin, all the 'alt+f4' would close the MP window and not the actual active window on my primary display, and without any configuration, if during the playback on MediaPortal any window get activated on the first display, these button/keystroke on the remote would be applied to that window instead the MediaPortal one.

The best find I could think, is if the keyboard plugin could be configured to accept only for selected device, like, EG should listen and execute the keystrokes from the remote control but ignore and let it pass the keystrokes from the actual keyboard, but I don't know if it's possible. :(

Here's a pic with of the remote buttons:
Image

The orange ones are recognized as HID.Button.* on EG and the red ones are the keystrokes.

I have completely deactived the eHome from Vista and the only HID.Buttons "executed twice" is the volume+, volume- and mute, cause they also controls the Windows Vista volume (I didn't tried on XP yet).
I tried removing the CodeSetNum0~3 from the registry, but it didn't changed anything.


So, to finish, I would like to thanks for this awesome software and say sorry for my english :lol:
xisque`
Posts: 5
Joined: Sun Jun 01, 2008 6:16 am

Re: alt + enter - key lock problem

Post by xisque` »

Bitmonster wrote:Oh, BTW:

Don't you have problems with this remote, because it will also generate keystrokes? Or do you have applied the registry tweak to disable this HID feature?
Thanks for the help!! I ll try the new version and post the results.
Actually I dont have any problems with the remote, but you are right, it generats hid codes and the keystrokes, the solution was to map basead only on hid codes.

[le_ikari]

I dont know how to solve your problem, but this remote creates 4 hid input devices, maybe there is a way to map only the selected device as input for the keyboard plugin. This feature is something very interesting b/c you could have 2 keyboards, one for the computer and one for the media center working together but mapping different actions. So you guess right :lol:

I my case, I mapped the alt+f4 to mp then in the mp I mapped as stanby (using the events plugin), no matter which program is active, when I press alt+f4 the computer goes to standby.

Ill try to map to exit media portal instead standby and post to you the results, but I think, if you press the alt+f4 in your keyboard it will closes mp anyway, so you should close the current application window using the "x" with the mouse. You cant map alt+f4 to work with windows only when mp is closed b/c mp somtimes generates a event called Task.Destroyed.MediaPortal when it is launching.

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

Re: alt + enter - key lock problem

Post by Bartman »

xisque` wrote:I dont know how to solve your problem, but this remote creates 4 hid input devices, maybe there is a way to map only the selected device as input for the keyboard plugin. This feature is something very interesting b/c you could have 2 keyboards, one for the computer and one for the media center working together but mapping different actions. So you guess right :lol:
This is possible with DirectInput. If have some free time you know what to do :)
xisque`
Posts: 5
Joined: Sun Jun 01, 2008 6:16 am

Re: alt + enter - key lock problem

Post by xisque` »

well, I tested many times standby/resume, and everything works perfectly!! Outstanding job!!
I consider my problem was solved!

BUT, the alt lock problem when I press ALT+ENTER in MP, still there:

Keyboard.LAlt
Keyboard.LAlt+Return
Keyboard.LAlt
Task.Deactivated.MediaPortal
Task.Activated.EventGhost
Keyboard.LAlt+Down
Keyboard.LAlt
Keyboard.LAlt+Down
Keyboard.LAlt
Keyboard.LShift+LAlt
Keyboard.LAlt

I noticed that this time it locks only the ALT key and not the ALT+RETURN.

[Bartman]

It ll be a very good challemge! I must confess that im in love with python :D


I can provide any information to help to solve the problem, I can send logs, hijaaks, test versions, everything :wink:
xisque`
Posts: 5
Joined: Sun Jun 01, 2008 6:16 am

Re: alt + enter - key lock problem

Post by xisque` »

I found another problem, when I press "my music" and then hit enter after that, the return key locks in "on mode":

MyMusic
MediaPortal: MyMusic
Keyboard.Down
Cursor Down
MediaPortal: Cursor Down
Keyboard.Return
Ok
MediaPortal: Ok
Enter
MediaPortal: Enter
Keyboard.Down+Return
Keyboard.Return
Ok
MediaPortal: Ok
Enter
MediaPortal: Enter
Keyboard.Down+Return
Keyboard.Return
Ok
MediaPortal: Ok
Enter
MediaPortal: Enter
HID.Button.234
Keyboard.VolumeDown+Return
Keyboard.Return
Ok
MediaPortal: Ok
Enter
MediaPortal: Enter
Keyboard.LAlt+Return
Task.Deactivated.MediaPortal
Task.Activated.EventGhost
System.PowerStatusChange

I noticed if a change the focus to EG, hit alt to unloack alt and enter to unloack the enter, then back to MP and hit backspace, it locks the backspace

Keyboard.Down+Return
Keyboard.Return
Task.Deactivated.MediaPortal
Task.Activated.EventGhost

Keyboard.LAlt+Return
Keyboard.LAlt
Task.Deactivated.EventGhost
Task.Activated.MediaPortal
Keyboard.Down
Keyboard.Down
Keyboard.Up
Keyboard.Up
Keyboard.Up
Keyboard.Left
Keyboard.Left
Keyboard.Right
Keyboard.Right
Keyboard.Right
Keyboard.Backspace
Back
MediaPortal: Back
Keyboard.Backspace+Down
Keyboard.Backspace
Back
MediaPortal: Back
Keyboard.Backspace+Down
Keyboard.Backspace
Back
MediaPortal: Back
Keyboard.Backspace+Down
Keyboard.Backspace
Back

Can be a plugin problem ?
xisque`
Posts: 5
Joined: Sun Jun 01, 2008 6:16 am

Re: alt + enter - key lock problem

Post by xisque` »

I figured the problem only occurs when MP is in fullscreen.
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: alt + enter - key lock problem

Post by Bitmonster »

I guess a complete other approach for the Keyboard plugin is needed. But such rewrite will not come before 0.3.7.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: alt + enter - key lock problem

Post by Bitmonster »

0.3.6.1487 should fix this.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
Post Reply