Reply
Thread Tools
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#11
Problem - there is already some xdotool in repository. Although I'm not sure it's optified or whatsnot. So, with Mentalist maintaining it, we would be probably much more happier penguins.
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
 

The Following 2 Users Say Thank You to Estel For This Useful Post:
helex's Avatar
Posts: 543 | Thanked: 802 times | Joined on Apr 2010 @ Germany
#12
Originally Posted by Estel View Post
Problem - there is already some xdotool in repository. Although I'm not sure it's optified or whatsnot. So, with Mentalist maintaining it, we would be probably much more happier penguins.
Ouh ****. Thanks! Just uploaded my first package to autobuilder. Will try to create a dependency and do it this way. I hate this part of development...

EDIT: checked, xdotool from repos seems optified - sadly its only at extra-devel. But I'm far away from a stable release, too...
__________________
I was a Qt Ambassador!

Please DONATE if you like my work!
It's the best way to motivate me to create more stuff for your Device.

Last edited by helex; 2011-07-29 at 22:06.
 
helex's Avatar
Posts: 543 | Thanked: 802 times | Joined on Apr 2010 @ Germany
#13
So, the packaging is done and I created a thread about my small project.

Here is what I'm currently developing:

TcpIpKeyboard is a Application to share the Keyboard from a Windows or Linux Desktop PC, Netbook or Laptop with the N9 handset thru a simple TCP/IP connection.


But the 2-do-List is still overwhelming... so it's a Alpha preview teaser to introduce the concept.
__________________
I was a Qt Ambassador!

Please DONATE if you like my work!
It's the best way to motivate me to create more stuff for your Device.
 

The Following 2 Users Say Thank You to helex For This Useful Post:
Posts: 2,225 | Thanked: 3,822 times | Joined on Jun 2010 @ Florida
#14
Originally Posted by Estel View Post
Problem - there is already some xdotool in repository. Although I'm not sure it's optified or whatsnot. So, with Mentalist maintaining it, we would be probably much more happier penguins.
I just checked the dates - when I packaged xdotool, it wasn't in the repos at the time - the other guy packaged it 2 months after I made that thread. I'm not going to jump on maintaining it just yet given that - xdotool is in the libs section, and all the non-user section packages get auto-promoted when the things that depend on them get rpomoted. So whenever you push your package to extras-testing and extras, xdotool will auto-promote with it.
 

The Following User Says Thank You to Mentalist Traceur For This Useful Post:
helex's Avatar
Posts: 543 | Thanked: 802 times | Joined on Apr 2010 @ Germany
#15
Eureka!


I got the XTestFakeKeyEvent working at Qt:

First, this works only at the Maemo target, not the Simulator. So:

Code:
#ifdef Q_WS_MAEMO_5
#include <X11/Xlib.h>
#include <X11/keysym.h>
#include <X11/extensions/XTest.h>
#endif
Now you are able to send a keycode:

Code:
unsigned int ukeycode = XKeysymToKeycode(QX11Info::display(), KeySym);
bool ret = XTestFakeKeyEvent(QX11Info::display(), ukeycode, state, 0);
state is the press state: true = pressed / false = released

And finally this was the reason I lost some hairs - Include this into your *.pro file:
Code:
LIBS = -lX11 -lXtst
It works a lot faster and less recource hungry than calling the external binary xdotool.

Sadly I got a lot of problems to translate keycodes from a windows desktop pc to a linux maemo 5 device. And sometimes it suddenly stops working. I still have to figure out why.

If someone has some tipps, I would be glad to read it.

Ah, and by the way. How to disable the keyboard repeat rate at Qt QML? Any Ideas?
__________________
I was a Qt Ambassador!

Please DONATE if you like my work!
It's the best way to motivate me to create more stuff for your Device.
 
Reply


 
Forum Jump


All times are GMT. The time now is 02:38.