![]() |
[APP] Right-clicking function like in VNCViewer [clickhack1_F6]
1 Attachment(s)
This simple app enable you to use Right-clicking function like VNCViewer's in anywhere
Right-clicking has been achieved by a long tap.(libgtkstylus.so) It works well ,but I wanted the function like VNCViewer(in Maemo)'s. so , I made this app. While you hold down the FullScreenKey(F6) , your taps become Right-clicks.(you can even drag) I attached a SCShot of using this app in easy-debian(qvwm). also, it will work in maemo(ie:KDE.or Ooo). It may work in mer. 6 steps for testing : 1.download <clickhack1b_F6.tar.gz> 2.open the terminal you like(ie: osso-Xterm) 3.install <xmodmap> from appmanager or "apt-get install xmodmap" as root. 4.unpack "tar xvzf /your/download/dir/clickhack1b_F6.tar.gz" (ie:tar xvzf /user/home/MyDocs/clickhack1b_F6.tar.gz) 5.run it "/your/download/dir/clickhack1b_F6/clickhack_F6" (ie:/user/home/MyDocs/clickhack1b_F6/clickhack_F6) 6.if you want to stop using it, just press [Ctrl+C] or run "killall clickhack_F6" in another terminal >if you want to run it automatically 1.run "mv clickhack1b_F6/clickhack_F6 /yourdebianroot/usr/local/bin/" 2.add "/usr/local/bin/clickhack_F6 &" to startup script (ie : .xinitrc). 3.to be free from longtap function , run "export $GTK_MODULES=''" Do you think I reinvented the wheel ? clickhack1b_F6.tar.gz includes : clickhack1b_F6/ clickhack1b_F6/clickhack1b.c #dirty source code clickhack1b_F6/clickhack_F6 #main program Update : Update1: (10-04-09) clickhack1b: some bugs were fixed(?). |
Re: [APP] Right-clicking function like in VNCViewer [clickhack1_F6]
Unfortunately doesn't work on my tablet, maybe because I run a previous OS (Chinook)?.
|
Re: [APP] Right-clicking function like in VNCViewer [clickhack1_F6]
You need xmodmap installed and it also has to be ran as root.
|
Re: [APP] Right-clicking function like in VNCViewer [clickhack1_F6]
Quote:
Code:
#!/bin/sh The important thing is the export of the DISPLAY-Variable, because otherwise, the program is running in background but it has no effect actually... :mad: |
Re: [APP] Right-clicking function like in VNCViewer [clickhack1_F6]
Maybe I'm missing something, but this didn't work for me. I downloaded xmodmap from the Lancode.de repository, then followed the instructions in this thread, and while it changed something, it definitely didn't enable right-click. Some widgets wouldn't respond (which they would to a normal left-click), but widgets that had, say, a context menu, behaved like I'd just left-clicked them normally, rather than displaying the menu. (e.g. links in Tear)
Is there something I'm missing? I exported DISPLAY properly, and ran it as root. Also, is this supposed to disable F6's fullscreen functionality? I didn't see anything explicit in the source to do that, but I've never played around with this sort of stuff. If not, is there a way to do that? |
Re: [APP] Right-clicking function like in VNCViewer [clickhack1_F6]
Quote:
If it still doesn't work please try this: Open a terminal and enter: Code:
xmodmap -pp Code:
talakara:~# xmodmap -pp Code:
talakara:~# xmodmap -pp If this doesn't work you can try it with this command: Code:
xmodmap -e "pointer = 3 2 1" To undo this just turn it around: Code:
xmodmap -e "pointer = 1 2 3" Quote:
I must admit that sometimes the right-click stays and I see the behavior you described above. To solve this I just press and release the button one time and everything works again. HTH & Good luck! CU Doc |
Re: [APP] Right-clicking function like in VNCViewer [clickhack1_F6]
Thanks, but I'd already tried that, and everything checks out. To clarify, does this only work in non-hildonized GTK or Qt apps? On further investigation, it works correctly in the GConf editor app, but not in any other program I have installed, that I've tried so far. Maybe I'm just misunderstanding something.
|
Re: [APP] Right-clicking function like in VNCViewer [clickhack1_F6]
Quote:
For me I am using pidgin (not the maemo but the debian-package) and kdepimpi and in both apps the right-click works. CU Doc |
Re: [APP] Right-clicking function like in VNCViewer [clickhack1_F6]
Off the top of my head, Tear, Maemo RSS Reader, microB (I think)... I tried a whole bunch of apps, but not systematically.
|
Re: [APP] Right-clicking function like in VNCViewer [clickhack1_F6]
Quote:
For the latter take a look at this: http://tech.arantius.com/maemo-brows...ec-midori-tear There you can see that the right-click is relized by holding down the stylus- I think that is the default behavoir with hildon-apps. Propably there is really a misunderstanding: you search for a right-click-function supported by click_hack where there is none ;) CU Doc |
Re: [APP] Right-clicking function like in VNCViewer [clickhack1_F6]
Quote:
|
Re: [APP] Right-clicking function like in VNCViewer [clickhack1_F6]
I just got around to testing this out. And when I hit the Full-screen key. It's like a toggle. I'm not sure if it's related to the default toggle fullscreen behavior or not. But if it's toggled on, certain parts of the touchscreen don't work correctly and buttons are only highlighted not pressed. Which was weird at first, as afraid the touchscreen was dying. But then x11forwarded into my desktop and taps in gedit were right-clicks, it was then that I realized it might be toggled on. Pressed full-screen key. Left clicks work in OS2008 and elsewhere, w00t. Thanks a lot for this.
|
Re: [APP] Right-clicking function like in VNCViewer [clickhack1_F6]
Quote:
The normal way to use it should be to hold down the button (which has no effect in non-hildonized apps) and the trigger a right-click when touching the screen. When released it should be a left click again. Workarround is to kill the clickhack-process, sometimes I managed to reset it with numberous press and releases of the fullscreen button. Sorry that I can't be more precise, but I use this function not that often. Maybe the author can give some hints for further investigations? |
Re: [APP] Right-clicking function like in VNCViewer [clickhack1_F6]
Quote:
|
Re: [APP] Right-clicking function like in VNCViewer [clickhack1_F6]
Quote:
I didn't write it for the Hildon environment but for KDE or other WindowManagers(in deblet ,easy debian/ubuntu etc.). I should have made this point clear at the first post... <fixed>BTW, I found some bugs that might provoke reported errors. I'll upload the new version of this app in 2-3 days.</fixed> Thanks testers. |
Re: [APP] Right-clicking function like in VNCViewer [clickhack1_F6]
Quote:
UPDATE: Just installed your new binary, I will test ist and report in here... Thanks again! CU Michael |
All times are GMT. The time now is 07:09. |
vBulletin® Version 3.8.8