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.

Search found 2 matches

by newscientist101
Wed Jul 12, 2017 9:44 pm
Forum: General Support
Topic: Sending keystrokes to frontmost window
Replies: 4
Views: 1458

Re: Sending keystrokes to frontmost window

Yes your macro works but your example is not at all what I am going for.

I can not use ctrl+v in all cases so the clipboard must be entered via Send Keystrokes or similar.
I don't know ahead of time what program I want the clipboard entered into so I have the frontmost window targeted (no ...
by newscientist101
Wed Jul 12, 2017 6:00 pm
Forum: General Support
Topic: Sending keystrokes to frontmost window
Replies: 4
Views: 1458

Sending keystrokes to frontmost window

I have a (mostly) working macro that types the clipboard to the frontmost window. I am looking to improve it so that it works in all cases and perhaps without the click.
Here it is:

EventGhost.PythonScript(u'import win32clipboard
win32clipboard.OpenClipboard()
eg.globals.clipboard = win32clipboard ...