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.
Eventghost emulate keystroke doesnt work on locked windows
Eventghost emulate keystroke doesnt work on locked windows
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
Last edited by keyserbr on Fri Jun 19, 2015 11:29 am, edited 1 time in total.
Re: Eventghost emulate keystroke dont work on locked windows
Updating...
There are two behaviors:
1. When I execute the script above manually on windows thought EG, everything works fine but the message error above is logged.
2. When I lock windows, wait the task scheduler execute the EG with my autostart script and log in windows again, the EG just open the log in box of the program I want to execute, it doesnt type USER, ACCOUNT TYPE and PASSWORD.
Thanks.
There are two behaviors:
1. When I execute the script above manually on windows thought EG, everything works fine but the message error above is logged.
2. When I lock windows, wait the task scheduler execute the EG with my autostart script and log in windows again, the EG just open the log in box of the program I want to execute, it doesnt type USER, ACCOUNT TYPE and PASSWORD.
Thanks.
Re: Eventghost emulate keystroke dont work on locked windows
I don't know if it works, but you should use the "Find Window" action to select the input boxes instead of using wait and tabs.
Re: Eventghost emulate keystroke dont work on locked windows
But why everything work fine if I'm logged in windows and run the script and when the windows is locked it doesn't work?
Thanks!
Thanks!
Re: Eventghost emulate keystroke dont work on locked windows
Window.SendKeys uses the front-most window if you don't do a "find window", which may not be exist or be something else when the screen is locked.
As I said, I don't know if it works, but it's worth a try.
As I said, I don't know if it works, but it's worth a try.
Re: Eventghost emulate keystroke dont work on locked windows
It didn't work...
And in my tests I saw that the app logon window was active after I unlocked my Windows.
It was show a continuous "Failed to get data from the clipboard", and I had to finalize the EG process.
I don't know what to do.
Thanks.
And in my tests I saw that the app logon window was active after I unlocked my Windows.
It was show a continuous "Failed to get data from the clipboard", and I had to finalize the EG process.
I don't know what to do.
Thanks.
Re: Eventghost emulate keystroke dont work on locked windows
What is the message "System.ClipboardChanged"?
It is appearing constantly and I can close the EG just finalizing the task.
This occurs when I connect to the computer by SSH with Ubuntu.
Using the computer directly this problem doesn't occurs.
It is appearing constantly and I can close the EG just finalizing the task.
This occurs when I connect to the computer by SSH with Ubuntu.
Using the computer directly this problem doesn't occurs.
Re: Eventghost emulate keystroke dont work on locked windows
I still can't make work my script when the computer is locked/logged off.
When I'm logged everything works fine.
Today I connected to the computer to see if the EG had executed, but again the EG just executed my software, it didn't write my user and password and enter the application.
Someone know what I can do?
When I'm logged everything works fine.
Today I connected to the computer to see if the EG had executed, but again the EG just executed my software, it didn't write my user and password and enter the application.
Someone know what I can do?
Re: Eventghost emulate keystroke doesnt work on locked windo
No one knows how to automatic run EG without login on windows?
I had configured on scheduled tasks to run EG in defined hour and this always work fine.
But if I'm not logged on windows, the EG run and stop in first step.
How to fix this?
Thanks!
I had configured on scheduled tasks to run EG in defined hour and this always work fine.
But if I'm not logged on windows, the EG run and stop in first step.
How to fix this?
Thanks!
-
krambriw
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: Eventghost emulate keystroke doesnt work on locked windo
There has been a discussion somewhere on this forum how to run EventGhost as a service but I do not remember where it was discussed (you have to try search feature of the board). Besides, I do not know if those solutions will still work with the latest versions of Windows. I did a test myself a couple of years ago and it worked then fine with Windows XP.
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
Re: Eventghost emulate keystroke doesnt work on locked windo
Thank you krambriw!
