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.

send letters directly to the window?

If you have a question or need help, this is the place to be.
tommylam
Posts: 16
Joined: Fri Aug 01, 2014 7:59 am

send letters directly to the window?

Post by tommylam »

Hello,
how to send letters directly to the "notepad" without through window Multitap

window Multitap
Image

Can anyone help us for this cause?
thank
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: send letters directly to the window?

Post by jonib »

Did you try "Emulate keystrokes" action? I'm possibly not understanding what your after.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
tommylam
Posts: 16
Joined: Fri Aug 01, 2014 7:59 am

Re: send letters directly to the window?

Post by tommylam »

current operations:
1. enter characters
2. opening the window Multitap
3. press Enter (lose window Multitap)
4. "EventGhost" send characters input "Notepad"

I want to skip 2 - 3
Last edited by tommylam on Wed Nov 19, 2014 5:08 pm, edited 1 time in total.
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: send letters directly to the window?

Post by jonib »

tommylam wrote:1. enter characters
How do you enter characters?
2. opening the window Multitap
3. press Enter (lose window Multitap)
Why do you need Multitap if you don't use it to enter the characters?
I want to skip 2 - 3
You really need to use more words to describe what you are trying to accomplish.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
tommylam
Posts: 16
Joined: Fri Aug 01, 2014 7:59 am

Re: send letters directly to the window?

Post by tommylam »

tommylam wrote:current operations:
1. enter characters
2. opening the window Multitap
3. press Enter (lose window Multitap)
4. "EventGhost" send characters input "Notepad"

I want to skip 2 - 3
I mean want "Multitap" send letters directly to the "notepad" not through the window "Multitap"
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: send letters directly to the window?

Post by Pako »

I still do not get it.
Or maybe you're thinking this ?
Multitap-noOSD.jpg
Multitap-noOSD.jpg (15.44 KiB) Viewed 5273 times
Pako
tommylam
Posts: 16
Joined: Fri Aug 01, 2014 7:59 am

Re: send letters directly to the window?

Post by tommylam »

Pako wrote:I still do not get it.
Or maybe you're thinking this ?
Multitap-noOSD.jpg
Pako
current operations:
1. enter characters
2. opening the window Multitap (hide)
3. press Enter (lose window Multitap)
4. "EventGhost" send characters input "Notepad"

I want to skip 3
Me would like to enter the same as keyboard

thank
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: send letters directly to the window?

Post by krambriw »

Try this in a python script

Code: Select all

eg.plugins.Window.FindWindow(u'notepad.exe', None, u'Notepad', u'', u'Edit', 1, False, 0.0, 0)
eg.plugins.Window.BringToFront()
eg.plugins.Window.SendKeys(u'Type this text in Notepad\n', False)
tommylam
Posts: 16
Joined: Fri Aug 01, 2014 7:59 am

Re: send letters directly to the window?

Post by tommylam »

http://youtu.be/LJMMt_Ocd1g
Me would like to enter the same as phone
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: send letters directly to the window?

Post by Pako »

tommylam wrote:Me would like to enter the same as phone
1) In EventGhost this can not be done without a plugin ( or a complicated script).
2 ) Exactly this is one of the modes Multitap plugin.
3) This plugin does not fit you.
4 ) I do not understand what you actually want.

Pako
tommylam
Posts: 16
Joined: Fri Aug 01, 2014 7:59 am

Re: send letters directly to the window?

Post by tommylam »

reason: "Enter" key Multitap coincide with the key "enter" the application
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: send letters directly to the window?

Post by Pako »

tommylam wrote:reason: "Enter" key Multitap coincide with the key "enter" the application
1 ) Why you are telling it until now ?
2 ) Can you explain it more (The action Multitap:Enter this does not mean the Enter key !) ?
tommylam
Posts: 16
Joined: Fri Aug 01, 2014 7:59 am

Re: send letters directly to the window?

Post by tommylam »

My file .xml
<Macro Name="Multitap: Enter" Expanded="True">
<Event Name="Event.Enter" />
<Action Name="Multitap: Enter">
Multitap.Enter()
</Action>
</Macro>

<Macro Name="Key: {Enter}" id="152" Expanded="True">
<Event Name="Event.Enter" />
<Action>
Window.SendKeys(u'{Enter}', False)
</Action>
</Macro>
two identical events
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: send letters directly to the window?

Post by Pako »

In this way, you can not do it ?
<Macro Name="Multitap: Enter" Expanded="True">
<Event Name="Event.SomeOtherEvent" />
<Action Name="Multitap: Enter">
Multitap.Enter()
</Action>
</Macro>

<Macro Name="Key: {Enter}" id="152" Expanded="True">
<Event Name="Event.Enter" />
<Action>
Window.SendKeys(u'{Enter}', False)
</Action>
</Macro>
Another option is to disable (and to enable) individual macros as needed.
tommylam
Posts: 16
Joined: Fri Aug 01, 2014 7:59 am

Re: send letters directly to the window?

Post by tommylam »

hi pako!
code example??

thank pako
Post Reply