Eventghost emulate keystroke doesnt work on locked windows
Posted: Wed May 27, 2015 5:19 pm
Hello,
1. I'm using 0.4.1.r1700 version of Eventghost.
2. Windows XP Professional 2002 version, SP3.
3. Error messages:
Stack trace (most recent call last) (1700):
File "threading.pyc", line 504, in __bootstrap
File "threading.pyc", line 532, in __bootstrap_inner
File "threading.pyc", line 484, in run
File "C:\Arquivos de programas\EventGhost\eg\Classes\ThreadWorker.py", line 354, in __MainLoop
self.__DoOneEvent()
File "C:\Arquivos de programas\EventGhost\eg\Classes\ThreadWorker.py", line 326, in __DoOneEvent
self.HandleAction(action)
File "C:\Arquivos de programas\EventGhost\eg\Classes\ThreadWorker.py", line 289, in HandleAction
action()
File "C:\Arquivos de programas\EventGhost\eg\Classes\ThreadWorker.py", line 62, in __call__
self.returnValue = self.func(*self.args, **self.kwargs)
File "C:\Arquivos de programas\EventGhost\eg\Classes\EventThread.py", line 142, in StartSession
actionThread.Func(actionThread.StartSession, 120)(filename)
File "C:\Arquivos de programas\EventGhost\eg\Classes\ThreadWorker.py", line 213, in Wrapper
eg.PrintStack()
Unhandled exception in WorkerThread <EventThread>:
Callers stack:
File "wx\_core.pyc", line 8010, in MainLoop
File "wx\_core.pyc", line 7306, in MainLoop
File "wx\_core.pyc", line 14669, in <lambda>
Traceback (most recent call last) (1700):
File "C:\Arquivos de programas\EventGhost\eg\Classes\ThreadWorker.py", line 326, in __DoOneEvent
self.HandleAction(action)
File "C:\Arquivos de programas\EventGhost\eg\Classes\ThreadWorker.py", line 289, in HandleAction
action()
File "C:\Arquivos de programas\EventGhost\eg\Classes\ThreadWorker.py", line 62, in __call__
self.returnValue = self.func(*self.args, **self.kwargs)
File "C:\Arquivos de programas\EventGhost\eg\Classes\EventThread.py", line 142, in StartSession
actionThread.Func(actionThread.StartSession, 120)(filename)
File "C:\Arquivos de programas\EventGhost\eg\Classes\ThreadWorker.py", line 214, in Wrapper
raise Exception("Timeout while calling %s" % func.__name__)
Exception: Timeout while calling StartSession
When I execute my script it works fine, but if I blocked windows session, the script execute in the time but dont fill the text fields.
My script:
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1700" Guid="{5B5D2B33-1146-4FC1-9885-61E6D193233B}" Time="1432735597.8">
<Autostart Name="Autostart" Expanded="True">
<Plugin Identifier="Keyboard" Guid="{59CBD10F-C1D8-4ADB-999B-9B76BA360F1F}" File="Keyboard">
gAKIhXEALg==
</Plugin>
</Autostart>
<Macro Name="Macro" Expanded="True">
<Action>
System.Execute(u'C:\\Prog\\prog.exe', u'', 0, False, 2, u'', False, False, u'', False, False, False)
</Action>
<Action>
EventGhost.Wait(2.0)
</Action>
<Action>
Window.SendKeys(u'MYUSER', True)
</Action>
<Action>
Window.SendKeys(u'{Tabulator}', True)
</Action>
<Action>
Window.SendKeys(u'ACCOUNTTYPE', True)
</Action>
<Action>
Window.SendKeys(u'{Tabulator}', True)
</Action>
<Action>
Window.SendKeys(u'PASSWORD', True)
</Action>
<Action>
EventGhost.Wait(1.0)
</Action>
<Action>
Window.SendKeys(u'{Enter}', True)
</Action>
</Macro>
</EventGhost>
Thank you very much!
Regards
1. I'm using 0.4.1.r1700 version of Eventghost.
2. Windows XP Professional 2002 version, SP3.
3. Error messages:
Stack trace (most recent call last) (1700):
File "threading.pyc", line 504, in __bootstrap
File "threading.pyc", line 532, in __bootstrap_inner
File "threading.pyc", line 484, in run
File "C:\Arquivos de programas\EventGhost\eg\Classes\ThreadWorker.py", line 354, in __MainLoop
self.__DoOneEvent()
File "C:\Arquivos de programas\EventGhost\eg\Classes\ThreadWorker.py", line 326, in __DoOneEvent
self.HandleAction(action)
File "C:\Arquivos de programas\EventGhost\eg\Classes\ThreadWorker.py", line 289, in HandleAction
action()
File "C:\Arquivos de programas\EventGhost\eg\Classes\ThreadWorker.py", line 62, in __call__
self.returnValue = self.func(*self.args, **self.kwargs)
File "C:\Arquivos de programas\EventGhost\eg\Classes\EventThread.py", line 142, in StartSession
actionThread.Func(actionThread.StartSession, 120)(filename)
File "C:\Arquivos de programas\EventGhost\eg\Classes\ThreadWorker.py", line 213, in Wrapper
eg.PrintStack()
Unhandled exception in WorkerThread <EventThread>:
Callers stack:
File "wx\_core.pyc", line 8010, in MainLoop
File "wx\_core.pyc", line 7306, in MainLoop
File "wx\_core.pyc", line 14669, in <lambda>
Traceback (most recent call last) (1700):
File "C:\Arquivos de programas\EventGhost\eg\Classes\ThreadWorker.py", line 326, in __DoOneEvent
self.HandleAction(action)
File "C:\Arquivos de programas\EventGhost\eg\Classes\ThreadWorker.py", line 289, in HandleAction
action()
File "C:\Arquivos de programas\EventGhost\eg\Classes\ThreadWorker.py", line 62, in __call__
self.returnValue = self.func(*self.args, **self.kwargs)
File "C:\Arquivos de programas\EventGhost\eg\Classes\EventThread.py", line 142, in StartSession
actionThread.Func(actionThread.StartSession, 120)(filename)
File "C:\Arquivos de programas\EventGhost\eg\Classes\ThreadWorker.py", line 214, in Wrapper
raise Exception("Timeout while calling %s" % func.__name__)
Exception: Timeout while calling StartSession
When I execute my script it works fine, but if I blocked windows session, the script execute in the time but dont fill the text fields.
My script:
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1700" Guid="{5B5D2B33-1146-4FC1-9885-61E6D193233B}" Time="1432735597.8">
<Autostart Name="Autostart" Expanded="True">
<Plugin Identifier="Keyboard" Guid="{59CBD10F-C1D8-4ADB-999B-9B76BA360F1F}" File="Keyboard">
gAKIhXEALg==
</Plugin>
</Autostart>
<Macro Name="Macro" Expanded="True">
<Action>
System.Execute(u'C:\\Prog\\prog.exe', u'', 0, False, 2, u'', False, False, u'', False, False, False)
</Action>
<Action>
EventGhost.Wait(2.0)
</Action>
<Action>
Window.SendKeys(u'MYUSER', True)
</Action>
<Action>
Window.SendKeys(u'{Tabulator}', True)
</Action>
<Action>
Window.SendKeys(u'ACCOUNTTYPE', True)
</Action>
<Action>
Window.SendKeys(u'{Tabulator}', True)
</Action>
<Action>
Window.SendKeys(u'PASSWORD', True)
</Action>
<Action>
EventGhost.Wait(1.0)
</Action>
<Action>
Window.SendKeys(u'{Enter}', True)
</Action>
</Macro>
</EventGhost>
Thank you very much!
Regards