Can someone help me with a script to wait for en event:
Task.Activated.putty
And if it has vent 10 seconds without an event to end the macro.
The reason for this is that I use the same Eventghost profile on 3 computers, and all of the takes a different time to start programs.
And instead of waiting the longest time needed it would be nice to wait for the event "Task.Activated.putty" instead.
Any ideas?
This is my macro for login to my Linux server from Putty:
Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1462">
<Macro Name="Putty" id="133" Expanded="True">
<Event Name="DesktopRemote.Putty" />
<Action>
EventGhost.Wait(0.20000000000000001)
</Action>
<Action>
System.Execute(u'C:\\Users\\Woggy\\Desktop\\putty.exe', u'', 0, False, 2, u'')
</Action>
<Action>
EventGhost.Wait(0.59999999999999998)
</Action>
<Action>
Window.SendKeys(u'{Tabulator}', False)
</Action>
<Action>
Window.SendKeys(u'{Tabulator}', False)
</Action>
<Action>
Window.SendKeys(u'{Tabulator}', False)
</Action>
<Action>
Window.SendKeys(u'{Tabulator}', False)
</Action>
<Action>
Window.SendKeys(u'{Down}', False)
</Action>
<Action>
Window.SendKeys(u'{Down}', False)
</Action>
<Action>
Window.SendKeys(u'{Return}', False)
</Action>
<Action>
EventGhost.Wait(0.59999999999999998)
</Action>
<Action>
Window.SendKeys(u'Password', False)
</Action>
<Action>
Window.SendKeys(u'{Return}', False)
</Action>
</Macro>
</EventGhost>