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.

Very strange problem!

If you have a question or need help, this is the place to be.
Post Reply
farbox
Experienced User
Posts: 58
Joined: Fri Jul 18, 2008 1:44 am

Very strange problem!

Post by farbox »

Just came across something, which will try to explain the best i can below:

1- Have been running EG (3.7.r1462) to control zoomplayer, very happily on an XP pc for very long time.
2- Got a new WIN 7 laptop, installed latest EG release (4.1.r1610)
3- Copied my EG xml settings from old pc to new laptop
4- I have a "task activated" macro to enable the ZP macros folder as below

<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1462">
<Macro Name="Switch to mode: Zoom Player" Expanded="True">
<Event Name="Task.Activated.zplayer" />
<Action>
EventGhost.EnableExclusive(XmlIdLink(106))
</Action>
</Macro>
</EventGhost>

5- On old pc this works perfectly, as it should, eg when ZP has focus, the keyboard arrow keys control volume etc, and when I click back into EG i can scroll up and down the tree list using the keyboard arrow keys without any secondary effect.
6- PROBLEM: Now on the new pc, with ZP having focus, it works ok, and after i switch to another app, EG registers "ZP task deactivated", HOWEVER if I scroll up and down the tree list using arrow keys in EG (or use the arrow keys ANYWHERE), it also STILL sends the VOL up, VOL down command to ZP!!! The ZP macro folder is still showing as active in both cases (old and new(so I can kinda understand why its doing it in the new case, it still thinks it should send the up arrow command to ZP )), yet the behaviour is totally different between the old and new ( supposedly identical) setups.

example of log: If I switch to ZP, switch to EG, and press up arrow:

OLD PC log :

Task.Activated.zplayer
Switch to mode: Zoom Player
Enable exclusive: Zoom Player
Task.Deactivated.zplayer
Task.Activated.EventGhost
-----nothing---





NEW PC log:

Switch to mode: Zoom Player
Enable exclusive: Zoom Player
Task.Deactivated.zplayer
Task.Activated.EventGhost
Keyboard.Up
Cursor Up
Zoom Player: Navigational Control Up
Autorepeat current macro: 0.6
ZoomPlayer.OSD [u'Volume 4%']
ZoomPlayer.2300 [u'4']
ZoomPlayer.OSDClosed u"0"


If I disable my "keyboard plugin" on the new PC, its fixed (on the new setup every keystroke registers in the log, but not in the old), but I dont need to this on the old setup.
I know I can probably use a "task deactivated" macro to fix this but the question is: What is causing this change of behaviour, even when using the the SAME xml settings file?

XML attached below.
Attachments
FAR.xml
(53.74 KiB) Downloaded 109 times
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Very strange problem!

Post by Pako »

It is not strange.
This is just one unexpected consequence of the changes, that have been done
on the basis of this topic: Howto implement a macro handling any keystroke?
I was expecting something definitely (sooner or later) will appear.
I do not know how we'll deal with it.
One suggestion I have.
I can incorporate one new option in the (general) Options... dialog.
Something like Use wildcard for the Keyboard plugin too.
So the user could choose, which behavior is favorable for him.

Pako
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Very strange problem!

Post by Pako »

For now, try this workaround:
KeyboardPlugin.png
KeyboardPlugin.png (7.34 KiB) Viewed 1967 times
Pako
farbox
Experienced User
Posts: 58
Joined: Fri Jul 18, 2008 1:44 am

Re: Very strange problem!

Post by farbox »

Thank for your answer!
I thought i was going crazy! I even wondered if it could be a hardware issue with the way the new laptop handles keystrokes etc! :lol:
This seems that it could be kinda serious issue in general so I hope you can sort it out.

As per your kind suggestion for the workaround, I used switching from ZP to EG as an example, so your example wont work if I go from ZP into file explorer or any another program when I will be using keystrokes.

SO instead Ive just added another macro to the context folder, as below:

task deactivated ZP
DIsable ZP macro folder.


PS from which version was this behavior introduced?
I think I will install the last version before this happened from now on. This saves having to add a "disable" macro for every application's macro folder... I have only 4 programs, but imagine those with hundreds.... :shock:

PPS re how to fix. How about a tick box in the plugin properties which this behavior can be ticked on/off?
farbox
Experienced User
Posts: 58
Joined: Fri Jul 18, 2008 1:44 am

Re: Very strange problem!

Post by farbox »

Update!
I changed my macro to disable the keyboard plugin (as per your recommendation) rather than the ZPlayer folder.
If I disabled the whole folder, I lost the ability to pause/play ZP with my remote control, while ZP didnt have focus.
SO by just disabling the keyboard plugin I still have this ability.
Post Reply