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.

Autoscript press Function Keys with pause between

If you have a question or need help, this is the place to be.
Post Reply
kirmusic
Posts: 3
Joined: Thu Dec 11, 2014 1:44 pm

Autoscript press Function Keys with pause between

Post by kirmusic »

hello to all,


i┬┤m a newbie and need your help
we run a program where we can switch the internal windows- screens within this SW with CTRL 1-9
in other words if i press CTRL 2 the window change to screen 2 if i press CTRL 3 it change to screen 3 aso.
i need a script where this working automatically with PAUSE between for example:

Press CTRL 1 -->PAUSE 60 sec --> Press CTRL 2 --> PAUSE 50 sec --> Press CTRL 7 ---> PAUSE 40 sec
and after going back to the beginning

Anybody there who can help me to get this done ?

will be really great !

Ewald

thanks a lot in advance
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Autoscript press Function Keys with pause between

Post by Pako »

Maybe this is the easiest solution:
Cycle.png
Cycle.png (14.74 KiB) Viewed 2367 times
Pako
kirmusic
Posts: 3
Joined: Thu Dec 11, 2014 1:44 pm

Re: Autoscript press Function Keys with pause between

Post by kirmusic »

hello pako
great and many thanks for this fast reaction
can you send me this script file you made to use it as a dummy for a first test ?
will be nice :-)

thanks in advance

Ewald
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Autoscript press Function Keys with pause between

Post by Pako »

kirmusic wrote:can you send me this script file you made to use it as a dummy for a first test ?
I do not know what script you have in mind.
I used no script.
But maybe you have in mind a copy of the example.
It is here:

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1669">
    <Folder Name="Cycle" Expanded="True">
        <Macro Name="Emulate Keystrokes: {Ctrl+Numpad1}" Expanded="True">
            <Event Name="Main.RunCycle" />
            <Event Name="Main.Ctrl-1" />
            <Action>
                Window.SendKeys(u'{Ctrl+Numpad1}', False)
            </Action>
            <Action>
                EventGhost.TriggerEvent(u'Ctrl-2', 60.0)
            </Action>
        </Macro>
        <Macro Name="Emulate Keystrokes: {Ctrl+Numpad2}" Expanded="True">
            <Event Name="Main.Ctrl-2" />
            <Action>
                Window.SendKeys(u'{Ctrl+Numpad2}', False)
            </Action>
            <Action>
                EventGhost.TriggerEvent(u'Ctrl-7', 50.0)
            </Action>
        </Macro>
        <Macro Name="Emulate Keystrokes: {Ctrl+Numpad7}" Expanded="True">
            <Event Name="Main.Ctrl-7" />
            <Action>
                Window.SendKeys(u'{Ctrl+Numpad7}', False)
            </Action>
            <Action>
                EventGhost.TriggerEvent(u'Ctrl-1', 40.0)
            </Action>
        </Macro>
    </Folder>
</EventGhost>
Pako
kirmusic
Posts: 3
Joined: Thu Dec 11, 2014 1:44 pm

Re: Autoscript press Function Keys with pause between

Post by kirmusic »

hi pako

that works great !

many thanks !!!

one more question, lets say 2 :-)

1. can i isolate this configuration to only a independent software, i mean that this keystroke swaps getting only activated within a single program and not within all software where i move over with my mouse
2. how i can stop this configuration without to shutdown the eventghost SW ?

will be great to hear you soon

thanks in advance

Ewald
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Autoscript press Function Keys with pause between

Post by Pako »

kirmusic wrote:1. can i isolate this configuration to only a independent software, i mean that this keystroke swaps getting only activated within a single program and not within all software where i move over with my mouse
If the action "Find a window" precedes action "Emulate keystrokes",
then emulated keystrokes should only be directed to the window, which had previously been found.
kirmusic wrote:2. how i can stop this configuration without to shutdown the eventghost SW ?
There are more possibilities.
For example, you can disable an entire folder or some macro.

Pako
Post Reply