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.

Emulating keystroke question

If you have a question or need help, this is the place to be.
Post Reply
bastik
Posts: 4
Joined: Thu Jan 01, 2009 8:10 pm
Location: Germany
Contact:

Emulating keystroke question

Post by bastik »

I installed EventGhost today. Stable first, but then I had to switch to the latest beta because a plugin couldn't be loaded correctly.

EventGhost Version: 0.3.6.1487
SVN Revision: 626
Python Version: 2.5.2 final 0
wxPython Version: 2.8.9.1
PIL Version: 1.1.6
Platform: Windows-XP-5.1.2600-SP3

First of all I need to say that I don't have a remote control. Currently it's for testing only.

I wanted to control an application with Shift+Right (and Shift+Left). It didn't work, so I did a simple test. I opened the editor (notepad). Created a macro to find that window and simulate keystrokes buy typing 123. (works) Simulating keystrokes with {Shift+Left} after 123 does the cursor move one step left but does not mark the 3 like it does if I do it manually.

{Shift+Home} does also not work as expected. The cursor is at the beginning but nothing is highlighted. The question now is how do I simulate a keystroke like Shift (still holding Shift) and pressing arrow left correctly? Where is my mistake?

Also sending {Ctrl+Alt+Delete} to explorer or any other application doesn't has any effect. Normally the task-manager should appear regardless of the application this combination of keys is sent to.

Thank you in advance for your help. (Happy New Year!)
Bartman
Plugin Developer
Posts: 881
Joined: Sun Feb 12, 2006 9:03 am

Re: Emulating keystroke question

Post by Bartman »

Sending keystrokes isn't a preferably way to control applications.
I get the same problems with notepad but can control Ultraedit just fine.
The Ctrl+Alt+Delete Shortcut is probably not processed by an application but gets caught by windows before.
bastik
Posts: 4
Joined: Thu Jan 01, 2009 8:10 pm
Location: Germany
Contact:

Re: Emulating keystroke question

Post by bastik »

Bartman wrote:The Ctrl+Alt+Delete Shortcut is probably not processed by an application but gets caught by windows before.
Thank you for your reply.

If windows would get or caught this key the task manager should open, but nothing happens.

The win key does also not work correctly in my opinion. Pressing the Win key (manually) once makes the start menu appear, pressing it again makes it disappear. Sending (simulating) it once makes it appear. Sending (simulating) it again doesn't make it disappear.

EDIT: something that reacts on keystrokes normally should be controllable with simulated ones. (I don't want to mark or highlight text with eventghost, just a test) Any other way to control an application that reacts on key strokes?
Last edited by bastik on Thu Jan 01, 2009 9:41 pm, edited 1 time in total.
Bartman
Plugin Developer
Posts: 881
Joined: Sun Feb 12, 2006 9:03 am

Re: Emulating keystroke question

Post by Bartman »

bastik wrote:If windows would get or caught this key the task manager should open, but nothing happens.
The emulating keystrokes directly sends the combination to the application. So there is no possibility for windows to intercept this.
bastik
Posts: 4
Joined: Thu Jan 01, 2009 8:10 pm
Location: Germany
Contact:

Re: Emulating keystroke question

Post by bastik »

The emulating keystrokes directly sends the combination to the application. So there is no possibility for windows to intercept this.
We forget the Ctrl+Alt+Del thing. I thought it would be a good test, but I was wrong. It was just a test. I don't need this combination.

EDIT: What I need are SHIFT+LEFT, SHIFT+RIGHT, CTRL+SHIFT+SPACE and some other combinations. If those things don't work I don't need a remote control. I wanted to try it before I buy one. If I do something wrong OK, but if it does not work... a remote control is useless.
User avatar
jitterjames
Experienced User
Posts: 677
Joined: Thu Aug 13, 2009 4:36 pm
Location: Quebec, Canada
Contact:

Re: Emulating keystroke question

Post by jitterjames »

those combinations should work just fine. you may need to "find" the window first if it's on in focus so that eventghost can send the key combo to the correct application.
Post Reply