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.

Emulate Keystrokes - Not Working in 0.3.5c.908

If you have a question or need help, this is the place to be.
Post Reply
therealjoeblow
Posts: 6
Joined: Mon Mar 10, 2008 8:11 pm

Emulate Keystrokes - Not Working in 0.3.5c.908

Post by therealjoeblow »

Keystroke emulation does not seem to work.

Even with a simple .XML file as follows:

1) Create NEW Config File (Alt...File...New)

1) Under Autostart, add the following:

a) Start Program: notepad.exe
b) Find Window: notepad.exe
c) Bring to front
d) Emulate Keystrokes: test

RESULTS:

-Notepad loads
-Notepad comes to top

That's it, the text "test" never gets typed in

I tried adding "Wait: 3.0sec" between :"Bring to front" and "Emulate keystrokes", it makes no difference.

Am I doing something (very basic???) wrong or is it broken?

Thanks
The REAL Joe
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: Emulate Keystrokes - Not Working in 0.3.5c.908

Post by Bitmonster »

You have to target the "Edit" pane of notepad in FindWindow.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
therealjoeblow
Posts: 6
Joined: Mon Mar 10, 2008 8:11 pm

Re: Emulate Keystrokes - Not Working in 0.3.5c.908

Post by therealjoeblow »

OK, thanks, it works now. Is there documentation on these window classes?

Also, EventGhost doesn't see 'itself' in the FindWindow - I want to send {ALT+F4} to EG after my macro runs to close event ghost - do you know how I would do that? (Basically, I just want to use it as a macro runner - load up, run the macro, close).

Thanks,
The REAL Joe
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: Emulate Keystrokes - Not Working in 0.3.5c.908

Post by Bitmonster »

This is not the purpose of EventGhost. Try AutoHotkey or similiar.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
Post Reply