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.

Multitap

Questions and comments specific to a particular plugin should go here.
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: Multitap

Post by Bitmonster »

The driver should be right. It simply also installs the required drivers for the other X10 stuff. And it worked for every X10 receiver I have seen.

You should get a "X10 USB Wireless Transceiver V2.36" in the device manager. Not the "ACPI" one. Try to install the driver when the device is plugged in. Your 'USB Human Interface Device' is most likely another device like a keyboard, mouse, joystick or similar. Try to remove every other peripheral to make sure.

But we are getting off topic. If it doesn't work, open another thread.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
michelch
Posts: 7
Joined: Tue Jan 13, 2009 7:39 am

Re: Multitap

Post by michelch »

I uninstalled and reinstalled the driver, and now I see the correct driver installed.
Now I have a "X10 USB Wireless Transceiver V2.36" in the device manager. Not the "ACPI" one.
But still no events are coming in anymore with this driver.

I know it is off-topic. I wanted to start another thread, but I didn't see a way to do that easily.
Loll
Posts: 3
Joined: Wed Mar 11, 2009 12:55 am

Re: Multitap & Extraction of Suffixes

Post by Loll »

Hi

I have installed the Multitap plugin for writing some text in itunes.
I have set the Multitap mode to "SMS like String" and the eventname to "SMSEvent"
So after pressing "2 - 2 2 - 2 2 - 2 - OK" (abba) I get a new event called Multitap.SMS.Event.abba.

Is there a method to extract the text from the event-key in order to do enter the text in some search field in itunes?

I have already tried with "{eg.Multitap.SMSEvent.suffix.split('.')[1]}" in the "emulate keystrokes"-command, but this does not work:

Code: Select all

      Multitap: Enter
      Emulate Keystrokes: {eg.Multitap.SMSEvent.suffix.split('.')[1]}
      Error in Action: "Emulate Keystrokes: {eg.Multitap.SMSEvent.suffix.split('.')[1]}"
      Traceback (most recent call last) (851):
      File "C:\Programme\system\EventGhost\eg\Classes\ActionBase.py", line 166, in CallWrapper
      File "C:\Programme\system\EventGhost\plugins\Window\SendKeys.py", line 129, in __call__
      File "C:\Programme\system\EventGhost\eg\WinApi\SendKeys.py", line 436, in __call__
      File "C:\Programme\system\EventGhost\eg\WinApi\SendKeys.py", line 373, in ParseText
      File "<string>", line 1, in <module>
      File "C:\Programme\system\EventGhost\eg\__init__.py", line 50, in __getattr__
      ImportError: No module named Multitap
      Multitap.SMSEvent.abba

I think this error is due to the fact that "Multitap.SMSEvent.abba" event is created after the "emulate keystrokes" although this is not the case in my script.

Is there a possibility to extract the text or is there another trick to do this?

Thanks for any suggestions
Loll

EventGhost Version: 0.3.7r851
SendKeys.py replaced with the new one found on the site.
System: Win XP SP3
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Multitap

Post by Pako »

You can not use the expression {eg.Multitap.SMSEvent.suffix.split('.')[1]}.
You must use only {eg.event.suffix.split('.')[1]}.
You do not need to change the file SendKeys.py.
Version 0.3.7.r851 has already fixed the bug.
Pako
Loll
Posts: 3
Joined: Wed Mar 11, 2009 12:55 am

Re: Multitap

Post by Loll »

Thanks for your quick answer.
I have correct the "emulate keystrokes"-command to {eg.event.suffix.split('.')[1]} but now always the Everghost emulate keystrokes command windows pop up when I press "Ok" on my remote.
To simplyfy and illustrate the problem, I post a picture of the error as well as the corresponding script-file.
forum-pic.jpg
It seems strange to me that the keystroke command is applied before the Multitap-Event is created althouugh the order of this two commands is correct in the script.
forum.xml
(12.91 KiB) Downloaded 248 times
I have no idea at all where the fault could be.
User avatar
jinxdone
Plugin Developer
Posts: 443
Joined: Tue Jan 02, 2007 4:08 pm

Re: Multitap

Post by jinxdone »

If you examine your config the event that tiggers the "Multitap Enter" macro is 'X10.Ok', that is not the right place to put that {eg.event.suffix.split('.')[1]} bit.

So, move the emulate keystroke action in a separate macro, which you trigger with the Multitap.SMSEvent.* event. Like this.. (copy&paste into EG)

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="851">
    <Macro Name="Emulate Keystrokes" Expanded="True">
        <Event Name="Multitap.SMSEvent.*" />
        <Action>
            Window.SendKeys(u"{eg.event.suffix.split('.')[1]}", False)
        </Action>
    </Macro>
</EventGhost>
Loll
Posts: 3
Joined: Wed Mar 11, 2009 12:55 am

Re: Multitap

Post by Loll »

Thanks a lot for the answer. This works very fine.

Now only an iTunes plugin, which do not generate any errors and with some additional functions would be nice.
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Multitap

Post by Pako »

I finished the first part of the instructions for use plugin Multitap. You can read the Wiki. Because my English is very weak,
all corrections of spelling errors and poorly formulated phrases are very welcome!
Pako
Jostein
Experienced User
Posts: 108
Joined: Sun Feb 15, 2009 12:59 pm

Re: Multitap

Post by Jostein »

Hi.

First of i just want to say that i love this plugin.

I am using this plugin with remote to enter text in to msn winamp and so on.

Why is it not possible to have the charakter "space" in the begining or the end? Would it be possible to have a comand just for space(So i could link 0 just to space)?



When typing into the OSD, would it be possible to go back in to the midle of the text to change something? like you can do on a cell phone or the computer with left and right?



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

Re: Multitap

Post by Pako »

Jostein wrote:Why is it not possible to have the charakter "space" in the begining or the end? Would it be possible to have a comand just for space(So i could link 0 just to space)?
No word does not start or does not end with the character "space". The problem is that if the character "space" is located at the beginning or end of the string, is not visible. Thus, as is done now, the user has a better overview of what he wrote.
If someone needs to insert a separate character "space", can easily use the Action "Emulate Keystrokes".
I will be waiting, whether it will be more requirements to eliminate this restriction. If so, I will make an innovation of plugin.
Jostein wrote:When typing into the OSD, would it be possible to go back in to the midle of the text to change something? like you can do on a cell phone or the computer with left and right?
Yes, on this possibility I have also previously considered. I will add it to the list of "ToDo".
Pako
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Multitap

Post by Pako »

New version (0.1.10) released.
The new version is the abolition of restrictions on the use of the character "Space" and added two actions: Left and Right (this is an option to edit your text or number).
I tested it quite a long time, but it is difficult to test all possible conditions. Therefore I please for leniency in the case of finding bugs. If you find any, report it here.
Pako
Jostein
Experienced User
Posts: 108
Joined: Sun Feb 15, 2009 12:59 pm

Re: Multitap

Post by Jostein »

Hi.

Thanks Pako for these new features.

I have been testing the new version of the plugin for quite a while now and cant find anything wrong with it. It works perfect:D
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Multitap

Post by Pako »

Thank you for the good message!
Pako
User avatar
Reboot
Posts: 3
Joined: Thu Nov 05, 2009 10:44 pm

Re: Multitap

Post by Reboot »

Okay this is my first mess. and i am using only my remote to write.

Only one question. I always get an error if I try to program any tilded char.

/me gets the keyboard again:
Like ├í├®├¡├│├║... EventGhost says:

Code: Select all

23:53:50            SendKeys: Can't translate character '├│' to key sequence!
23:53:50            Error en la accion: Emular pulsaciones de teclado: {eg.event.payload}"
23:53:50            Traceback (most recent call last) (1194):
23:53:50              File "C:\Archivos de programa\EventGhost\eg\Classes\ActionBase.py", line 168, in CallWrapper
23:53:50              File "C:\Archivos de programa\EventGhost\plugins\Window\SendKeys.py", line 128, in __call__
23:53:50              File "C:\Archivos de programa\EventGhost\eg\WinApi\SendKeys.py", line 438, in __call__
23:53:50              File "C:\Archivos de programa\EventGhost\eg\WinApi\SendKeys.py", line 472, in SendRawCodes1
23:53:50            TypeError: 'NoneType' object is not iterable
:(

More. Is there any way to automatically submit the word/phrase with a timeout?
And last. A smaller OSD?

BTW, spaces can be attached to a number, but editing the .py file manually.

Thanks for this plugin, it's f****g great!
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Multitap

Post by Pako »

Reboot wrote:Only one question. I always get an error if I try to program any tilded char.

/me gets the keyboard again:
Like ├í├®├¡├│├║... EventGhost says:

Code: Select all

23:53:50            SendKeys: Can't translate character '├│' to key sequence!
23:53:50            Error en la accion: Emular pulsaciones de teclado: {eg.event.payload}"
23:53:50            Traceback (most recent call last) (1194):
23:53:50              File "C:\Archivos de programa\EventGhost\eg\Classes\ActionBase.py", line 168, in CallWrapper
23:53:50              File "C:\Archivos de programa\EventGhost\plugins\Window\SendKeys.py", line 128, in __call__
23:53:50              File "C:\Archivos de programa\EventGhost\eg\WinApi\SendKeys.py", line 438, in __call__
23:53:50              File "C:\Archivos de programa\EventGhost\eg\WinApi\SendKeys.py", line 472, in SendRawCodes1
23:53:50            TypeError: 'NoneType' object is not iterable
Yes it is a problem. But it is not bug in plugin Multitap. It's the lack features of eg.SendKeys. Also in Czech windows to receive the same error message,
if the characters do not have their own key. Interim fix not it difficult, fortunately.
Action "Emulate keystrokes" should be replaced by actions "Python script":
EGtree.jpg
EGtree.jpg (5.54 KiB) Viewed 7172 times
ScriptInsteadEmulateKeystrokes.jpg
Dictionary "Conversion" course, you must adapt to your needs.
Reboot wrote:More. Is there any way to automatically submit the word/phrase with a timeout?
This issue I probably not understand. Timeout is not used to stop inserting the words/phrases.
Timeout is used in the event, that the consecutive characters are assigned to the same key.
Otherwise, the timeout is not used. You want to have a some additional timeout for the automatic termination input of words/phrases?
Reboot wrote:And last. A smaller OSD?
There are not thinking about giving to choose the size of OSD. No one else has had an interest. You can turn off the OSD.
Reboot wrote:BTW, spaces can be attached to a number, but editing the .py file manually.
Also I do not understand what you mean. What is the problem with spaces?
Pako
Post Reply