Hi.
I just found the brilliant EventGhost.
I created a very simple script, that moves the mouse pointer to the far-right of the screen when my video screensaver loads.
When the sceensaver is closed then the mouse pointer returns to the centre of the screen.
And here is my problem.
When the screensaver loads, the first part of the script that moves the pointer doesn't work. However when I press the ESC key to close the screensaver, the script that moves the pointer to the centre of the screen works.
And lastly, and this is the most annoying.If I load the screensaver manually the first script works.
Anyway, here is the XML.
What you may notice too is the name of the screensaver.
Last night it showed on the log as "Metro Screen"
Today it shows on the log as "METROC~1"
Makes no sense.
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1600" Guid="{457A66D2-8890-4401-8837-B36D493B5B90}" Time="1358171623.76">
<Autostart Name="Autostart" Expanded="True">
<Plugin Identifier="Keyboard" Guid="{59CBD10F-C1D8-4ADB-999B-9B76BA360F1F}" File="Keyboard">
gAIpLg==
</Plugin>
<Plugin Identifier="Process" Guid="{82BADF9F-D809-4EBC-A540-CCBF7563F8DF}" File="ProcessWatcher">
gAIpLg==
</Plugin>
</Autostart>
<Macro Name="Move mousepointer to right edge" Expanded="True">
<Event Name="Process.Created.METROC~1" />
<Action>
EventGhost.Wait(1.0)
</Action>
<Action>
Mouse.MoveAbsolute(1280, 300, None, False)
</Action>
</Macro>
<Macro Name="Return mousepointer to screen centre" Expanded="True">
<Event Name="Process.Destroyed.METROC~1" />
<Action>
Mouse.MoveAbsolute(None, None, None, True)
</Action>
</Macro>
</EventGhost>
I am running Windows 8 Professional x64.
Thanks for your time.
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.
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.
Am I doing something wrong?
-
blueeagle69
- Posts: 2
- Joined: Mon Jan 14, 2013 10:06 pm
Re: Am I doing something wrong?
Scratch that.
I found the problem.
I noticed that when the screensaver was activated by Windows, EventGhost didn't pick up on the fact that the process had been created.
However it did pickup on the fact that the process had been destroyed.
Which is why the mouse center script worked.
So I downloaded NirCmd which has a myriad of command-line options. One of them being able to launch the default screensaver.
I then use the Launch application action to load NirCmd with a commnand-line of "screensaver" when idle.
I left the process destroyed mouse action in because that worked fine.
I found the problem.
I noticed that when the screensaver was activated by Windows, EventGhost didn't pick up on the fact that the process had been created.
However it did pickup on the fact that the process had been destroyed.
Which is why the mouse center script worked.
So I downloaded NirCmd which has a myriad of command-line options. One of them being able to launch the default screensaver.
I then use the Launch application action to load NirCmd with a commnand-line of "screensaver" when idle.
I left the process destroyed mouse action in because that worked fine.