Mouse Emulation - cursor only moves correct when EG in focus

If you have a question or need help, this is the place to be.
User avatar
kfoster04
Posts: 11
Joined: Sun Nov 23, 2008 4:15 am
Location: Idaho
Contact:

Mouse Emulation - cursor only moves correct when EG in focus

Post by kfoster04 » Sun Nov 23, 2008 4:39 am

Hi, I have a mouse emulation macro working using my MX-500 remote. When firefox is opened, my config switches to enable the mouse exclusively but here is what happens...
I press a number key for navigation (ie: 2 up, 6 rt, 8 down, 4 lt etc) - the cursor moves correctly when i am checking it in EG, when EG is in focus. But when I test it in firefox, for example, the cursor takes off to the top left corner of the screen, and appears stuck there! Subsequent key presses appear to make the cursor try to move a proper direction, a little bit but then its sucked back into the top left corner lol. Like a black hole for mouse cursors! :lol:
It seems to happen for any program that is open. The cursor just takes off into the black hole in the top left corner.

Can someone help me? Im still learning and dont know why it works in EG only, even when ive tried putting other apps in focus first.

oh btw, im running version 0.3.6.1486 of EG. Vista SP1 32bit. I am programming a home theatre master MX-500 RC, by URC
Home Automation, Personal Security and Gadgets - Automating your World at http://www.HaWorldOnline.com

User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: Mouse Emulation - cursor only moves correct when EG in focus

Post by Bitmonster » Mon Nov 24, 2008 7:22 pm

What kind of receiver? Does the icon turn back to green if you release the button?
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!

User avatar
kfoster04
Posts: 11
Joined: Sun Nov 23, 2008 4:15 am
Location: Idaho
Contact:

Re: Mouse Emulation - cursor only moves correct when EG in focus

Post by kfoster04 » Mon Nov 24, 2008 8:36 pm

Thx for responding bitmonster! I want to tell you how much I appreciate EG and the work you do.

I use the USB-UIRT reciever, but i honestly did not pay attention to the red/green lights. I will check it out tonight after work and let u know.

Thks, Kelly
Home Automation, Personal Security and Gadgets - Automating your World at http://www.HaWorldOnline.com

User avatar
kfoster04
Posts: 11
Joined: Sun Nov 23, 2008 4:15 am
Location: Idaho
Contact:

Re: Mouse Emulation - cursor only moves correct when EG in focus

Post by kfoster04 » Tue Nov 25, 2008 2:07 am

bitmonster,

I am using a USB-UIRT reciever, my remote control is a MX-500 Home Theater Master. I checked the red/green lights, it works like it should, green when idle, red when recieving an IR command, turns back to green when i let up on the keys.
Home Automation, Personal Security and Gadgets - Automating your World at http://www.HaWorldOnline.com

User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: Mouse Emulation - cursor only moves correct when EG in focus

Post by Bitmonster » Tue Nov 25, 2008 11:32 am

Please copy&paste the macros that you are using here. I could imagine such problem, if two or more macros get triggered from the same event simultaneously.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!

User avatar
kfoster04
Posts: 11
Joined: Sun Nov 23, 2008 4:15 am
Location: Idaho
Contact:

Re: Mouse Emulation - cursor only moves correct when EG in focus

Post by kfoster04 » Wed Nov 26, 2008 4:04 am

Bitmonster, ive attached my config file, hope thats ok for u, all my macros was like hundreds of lines!

Thx Kelly
MyHTPCConfig.zip
(4.43 KiB) Downloaded 247 times
Home Automation, Personal Security and Gadgets - Automating your World at http://www.HaWorldOnline.com

telemole
Posts: 3
Joined: Fri Nov 28, 2008 3:37 am

Re: Mouse Emulation - cursor only moves correct when EG in focus

Post by telemole » Fri Nov 28, 2008 3:39 am

I am having the exact same problem - oddly enough the config worked - then hours later it stopped....

I am using a snapstream firefly remote - hope there is a simple solution for this :)

Cheers,
Telemole

User avatar
kfoster04
Posts: 11
Joined: Sun Nov 23, 2008 4:15 am
Location: Idaho
Contact:

Re: Mouse Emulation - cursor only moves correct when EG in focus

Post by kfoster04 » Fri Nov 28, 2008 4:33 am

telemole,

I'm glad you posted, at least im not alone lol, i was wondering if I had my config set up incorrectly making it do a loop somehow, but maybe its a bug. Hopefully bitmonster or someone else can help. I am at a loss.
Home Automation, Personal Security and Gadgets - Automating your World at http://www.HaWorldOnline.com

telemole
Posts: 3
Joined: Fri Nov 28, 2008 3:37 am

Re: Mouse Emulation - cursor only moves correct when EG in focus

Post by telemole » Mon Dec 01, 2008 8:10 pm

yeah same here - I was trying different combos - but realized the mouse behaviour is not something we can configure much - the repeats etc, like we can with key presses. I am running Vista ultimate and a firefly remote - not sure if I included it last time.

The software otherwise is flawless and MAKES my home theatre setup so impressive. Really hoping there is an explanation for this - mouse control would be handy at times. VERY impressed with the software otherwise.

tele

CollinR
Experienced User
Posts: 265
Joined: Tue Sep 05, 2006 7:16 am
Location: Oklahoma
Contact:

Re: Mouse Emulation - cursor only moves correct when EG in focus

Post by CollinR » Mon Dec 01, 2008 8:35 pm

Firefly as mouse.

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="908">
    <Folder Name="Mouse" id="593">
        <Macro Name="Mouse Move Up" Expanded="True">
            <Event Name="NVRemote.MouseUp">
            </Event>
            <Event Name="X10.Up">
            </Event>
            <Action>
                Mouse.GoDirection(0)
            </Action>
        </Macro>
        <Macro Name="Mouse Move RightUp">
            <Event Name="NVRemote.MouseRightUp">
            </Event>
            <Action>
                Mouse.GoDirection(45)
            </Action>
        </Macro>
        <Macro Name="Mouse Move Right" Expanded="True">
            <Event Name="X10.Right">
            </Event>
            <Event Name="NVRemote.MouseRight">
            </Event>
            <Action>
                Mouse.GoDirection(90)
            </Action>
        </Macro>
        <Macro Name="Mouse Move RightDown">
            <Event Name="NVRemote.MouseRightDown">
            </Event>
            <Action>
                Mouse.GoDirection(u'135')
            </Action>
        </Macro>
        <Macro Name="Mouse Move Down" Expanded="True">
            <Event Name="X10.Down">
            </Event>
            <Event Name="NVRemote.MouseDown">
            </Event>
            <Action>
                Mouse.GoDirection(u'180')
            </Action>
        </Macro>
        <Macro Name="Mouse Move LeftDown">
            <Event Name="NVRemote.MouseLeftDown">
            </Event>
            <Action>
                Mouse.GoDirection(225)
            </Action>
        </Macro>
        <Macro Name="Mouse Move Left" Expanded="True">
            <Event Name="X10.Left">
            </Event>
            <Event Name="NVRemote.MouseLeft">
            </Event>
            <Action>
                Mouse.GoDirection(270)
            </Action>
        </Macro>
        <Macro Name="Mouse Move LeftUp">
            <Event Name="NVRemote.MouseLeftUp">
            </Event>
            <Action>
                Mouse.GoDirection(315)
            </Action>
        </Macro>
        <Macro Name="Left Mouse Button" Expanded="True">
            <Event Name="X10.Menu">
            </Event>
            <Event Name="NVRemote.LButtonUp">
            </Event>
            <Action>
                Mouse.LeftButton()
            </Action>
        </Macro>
        <Macro Name="OS Keyboard">
            <Event Name="X10.Firefly">
            </Event>
            <Action>
                Window.SendKeys(u'{Ctrl+Alt+K}', False)
            </Action>
        </Macro>
        <Macro Name="Right Mouse Button" Expanded="True">
            <Event Name="X10.Exit">
            </Event>
            <Event Name="NVRemote.RButtonUp">
            </Event>
            <Action>
                Mouse.RightButton()
            </Action>
        </Macro>
        <Macro Name="Enter">
            <Event Name="X10.Ok">
            </Event>
            <Action>
                Window.SendKeys(u'{Enter}', False)
            </Action>
        </Macro>
        <Macro Name="Scroll UP">
            <Event Name="X10.ChannelUp">
            </Event>
            <Action>
                Window.SendKeys(u'{Up}', False)
            </Action>
        </Macro>
        <Macro Name="Scroll Down">
            <Event Name="X10.ChannelDown">
            </Event>
            <Action>
                Window.SendKeys(u'{Down}', False)
            </Action>
            <Action>
                EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)
            </Action>
        </Macro>
        <Folder Name="Keyboard Emulation">
            <Macro Name="Forward">
                <Event Name="X10.Forward">
                </Event>
                <Action>
                    Window.SendKeys(u'.')
                </Action>
            </Macro>
            <Macro Name="Play">
                <Event Name="X10.Play">
                </Event>
                <Action>
                    Window.SendKeys(u'{P}')
                </Action>
            </Macro>
            <Macro Name="Pause">
                <Event Name="X10.Pause">
                </Event>
                <Action>
                    Window.SendKeys(u'{Space}')
                </Action>
            </Macro>
            <Macro Name="1">
                <Event Name="X10.Num1">
                </Event>
                <Action>
                    Window.SendKeys(u'1')
                </Action>
            </Macro>
            <Macro Name="2">
                <Event Name="X10.Num2">
                </Event>
                <Action>
                    Window.SendKeys(u'2')
                </Action>
            </Macro>
            <Macro Name="3">
                <Event Name="X10.Num3">
                </Event>
                <Action>
                    Window.SendKeys(u'3')
                </Action>
            </Macro>
            <Macro Name="4">
                <Event Name="X10.Num4">
                </Event>
                <Action>
                    Window.SendKeys(u'4')
                </Action>
            </Macro>
            <Macro Name="5">
                <Event Name="X10.Num5">
                </Event>
                <Action>
                    Window.SendKeys(u'5')
                </Action>
            </Macro>
            <Macro Name="6">
                <Event Name="X10.Num6">
                </Event>
                <Action>
                    Window.SendKeys(u'6')
                </Action>
            </Macro>
            <Macro Name="7">
                <Event Name="X10.Num7">
                </Event>
                <Action>
                    Window.SendKeys(u'7')
                </Action>
            </Macro>
            <Macro Name="8">
                <Event Name="X10.Num8">
                </Event>
                <Action>
                    Window.SendKeys(u'8')
                </Action>
            </Macro>
            <Macro Name="9">
                <Event Name="X10.Num9">
                </Event>
                <Action>
                    Window.SendKeys(u'9')
                </Action>
            </Macro>
            <Macro Name="0">
                <Event Name="X10.Num0">
                </Event>
                <Action>
                    Window.SendKeys(u'0', False)
                </Action>
            </Macro>
        </Folder>
    </Folder>
</EventGhost>

EDIT: Well uh after pasting that I noticed it supports both Firefly and Personal Cinema remotes at the same time.

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="908">
    <Folder Name="Mouse" id="593">
        <Macro Name="Mouse Move Up" Expanded="True">
            <Event Name="X10.Up">
            </Event>
            <Action>
                Mouse.GoDirection(0)
            </Action>
        </Macro>
        <Macro Name="Mouse Move Right" Expanded="True">
            <Event Name="X10.Right">
            </Event>
            <Action>
                Mouse.GoDirection(90)
            </Action>
        </Macro>
        <Macro Name="Mouse Move Down" Expanded="True">
            <Event Name="X10.Down">
            </Event>
            <Action>
                Mouse.GoDirection(u'180')
            </Action>
        </Macro>
        <Macro Name="Mouse Move Left" Expanded="True">
            <Event Name="X10.Left">
            </Event>
            <Action>
                Mouse.GoDirection(270)
            </Action>
        </Macro>
        <Macro Name="Left Mouse Button" Expanded="True">
            <Event Name="X10.Menu">
            </Event>
            <Action>
                Mouse.LeftButton()
            </Action>
        </Macro>
        <Macro Name="OS Keyboard">
            <Event Name="X10.Firefly">
            </Event>
            <Action>
                Window.SendKeys(u'{Ctrl+Alt+K}', False)
            </Action>
        </Macro>
        <Macro Name="Right Mouse Button" Expanded="True">
            <Event Name="X10.Exit">
            </Event>
            <Action>
                Mouse.RightButton()
            </Action>
        </Macro>
        <Macro Name="Enter">
            <Event Name="X10.Ok">
            </Event>
            <Action>
                Window.SendKeys(u'{Enter}', False)
            </Action>
        </Macro>
        <Macro Name="Scroll UP">
            <Event Name="X10.ChannelUp">
            </Event>
            <Action>
                Window.SendKeys(u'{Up}', False)
            </Action>
        </Macro>
        <Macro Name="Scroll Down">
            <Event Name="X10.ChannelDown">
            </Event>
            <Action>
                Window.SendKeys(u'{Down}', False)
            </Action>
            <Action>
                EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)
            </Action>
        </Macro>
        <Folder Name="Keyboard Emulation">
            <Macro Name="Forward">
                <Event Name="X10.Forward">
                </Event>
                <Action>
                    Window.SendKeys(u'.')
                </Action>
            </Macro>
            <Macro Name="Play">
                <Event Name="X10.Play">
                </Event>
                <Action>
                    Window.SendKeys(u'{P}')
                </Action>
            </Macro>
            <Macro Name="Pause">
                <Event Name="X10.Pause">
                </Event>
                <Action>
                    Window.SendKeys(u'{Space}')
                </Action>
            </Macro>
            <Macro Name="1">
                <Event Name="X10.Num1">
                </Event>
                <Action>
                    Window.SendKeys(u'1')
                </Action>
            </Macro>
            <Macro Name="2">
                <Event Name="X10.Num2">
                </Event>
                <Action>
                    Window.SendKeys(u'2')
                </Action>
            </Macro>
            <Macro Name="3">
                <Event Name="X10.Num3">
                </Event>
                <Action>
                    Window.SendKeys(u'3')
                </Action>
            </Macro>
            <Macro Name="4">
                <Event Name="X10.Num4">
                </Event>
                <Action>
                    Window.SendKeys(u'4')
                </Action>
            </Macro>
            <Macro Name="5">
                <Event Name="X10.Num5">
                </Event>
                <Action>
                    Window.SendKeys(u'5')
                </Action>
            </Macro>
            <Macro Name="6">
                <Event Name="X10.Num6">
                </Event>
                <Action>
                    Window.SendKeys(u'6')
                </Action>
            </Macro>
            <Macro Name="7">
                <Event Name="X10.Num7">
                </Event>
                <Action>
                    Window.SendKeys(u'7')
                </Action>
            </Macro>
            <Macro Name="8">
                <Event Name="X10.Num8">
                </Event>
                <Action>
                    Window.SendKeys(u'8')
                </Action>
            </Macro>
            <Macro Name="9">
                <Event Name="X10.Num9">
                </Event>
                <Action>
                    Window.SendKeys(u'9')
                </Action>
            </Macro>
            <Macro Name="0">
                <Event Name="X10.Num0">
                </Event>
                <Action>
                    Window.SendKeys(u'0', False)
                </Action>
            </Macro>
        </Folder>
    </Folder>
</EventGhost>
You would add a hotkey to the on screen keyboard in Windows for the Firefly button to work.
Windows XP Pro sp3 - Several Machines usually latest beta but who knows.
Inputs: TCP / IR (USBUIRT) / RF(X10 Remote) / CLI-Batch / CCTV Motion / Ocelot
Outputs: TCP / IR (USBUIRT) / SageTV / SageTV Clients / YAC CallerID / HAL v3.7.3 / Ocelot

User avatar
kfoster04
Posts: 11
Joined: Sun Nov 23, 2008 4:15 am
Location: Idaho
Contact:

Re: Mouse Emulation - cursor only moves correct when EG in focus

Post by kfoster04 » Tue Dec 02, 2008 2:36 am

Thanks to all who responded, but I am still stuck with a mouse emulation that only works when eventghost app is in focus. The moment I switch to any other program, the mouse cursor takes off to the top left of my screen and stays there!

Does anyone have any ideas what is wrong?
Home Automation, Personal Security and Gadgets - Automating your World at http://www.HaWorldOnline.com

User avatar
kfoster04
Posts: 11
Joined: Sun Nov 23, 2008 4:15 am
Location: Idaho
Contact:

Re: Mouse Emulation - cursor only moves correct when EG in focus

Post by kfoster04 » Tue Dec 02, 2008 2:39 am

Telemole, when you check out collinr's xml file for your firefly remote, could you let me know if that solves the mouse cursor "black hole' problem you and I are having?
Home Automation, Personal Security and Gadgets - Automating your World at http://www.HaWorldOnline.com

telemole
Posts: 3
Joined: Fri Nov 28, 2008 3:37 am

Re: Mouse Emulation - cursor only moves correct when EG in focus

Post by telemole » Thu Dec 11, 2008 7:51 pm

going to try that tonight and see where i get - hope it works!

tele.

User avatar
kfoster04
Posts: 11
Joined: Sun Nov 23, 2008 4:15 am
Location: Idaho
Contact:

Re: Mouse Emulation - cursor only moves correct when EG in focus

Post by kfoster04 » Thu Dec 11, 2008 8:15 pm

Great! Please let me know, thks

kfoster04
Home Automation, Personal Security and Gadgets - Automating your World at http://www.HaWorldOnline.com

sstarcher
Posts: 6
Joined: Mon Apr 06, 2009 10:15 pm

Re: Mouse Emulation - cursor only moves correct when EG in focus

Post by sstarcher » Sun May 17, 2009 2:07 pm

I am seeing the same problem that those 2 were seeing. Using 3.7.r990

Post Reply