I want to write a small apps use LOVE , with a input textbox and some buttons .
And I want paste strings into textbox from other apps , say firefox , click button , do something...
Maybe use LUBE send strings out in LAN in the future (to learn LUBE)
I have dig the forum (projects and demos , almost all 36 pages ), try to find out paste function in demos.
And I try to checkout all the GUI libs in forum and wiki , maybe I miss something?
Most demos I seen that use string= key..string , can't paste string from OS.
Howto write (part of) GUI that can paste strings from OS?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: Howto write (part of) GUI that can paste strings from OS
Correct, this is impossible at the moment.
Re: Howto write (part of) GUI that can paste strings from OS
Thanks bartbes .
And I had try to use lgob 11.04 ( the last version for GTK+ 2.x), it's build.lua mess me, but I remove squeeze
lua5.0.x , use lua5.1.5 tar.gz , the build_all.lua is ok, make some so like:
But when I try to use example like ./Clock.lua , it says :
I'm newbie in Lua , and no idea in c , I'm stuck . Who can tell me a tip or a way to solve it?
( I want to try paste function in lua , I guess maybe minipad ( writen in lua) has something I need , it's use lgob .)
And I had try to use lgob 11.04 ( the last version for GTK+ 2.x), it's build.lua mess me, but I remove squeeze
lua5.0.x , use lua5.1.5 tar.gz , the build_all.lua is ok, make some so like:
Code: Select all
atk.so cairo.so common.so gdk.so gobject.so gtk.so _loader.so pangocairo.so pango.so
Code: Select all
lua: error loading module 'lgob.gtk' from file './lgob/gtk.so':
./lgob/gtk.so: undefined symbol: gtk_window_group_get_current_grab
( I want to try paste function in lua , I guess maybe minipad ( writen in lua) has something I need , it's use lgob .)
Re: Howto write (part of) GUI that can paste strings from OS
I search a lot, guess cauze this:
GTK+2.21.3 -- 2.21.8 is older than lgob 11.04 , but Squeeze need newer Glib-2.0 and gdk-pixbuf ...
Doesn't know is lucky working for it...
Code: Select all
Overview of Changes from GTK+ 2.21.2 to 2.21.3
========================================
* Misc new API:
...
gtk_window_group_get_current_grab
...
Doesn't know is lucky working for it...
Re: Howto write (part of) GUI that can paste strings from OS
New API issue had resolved ( gtk_window_group_get_current_grab is new GTK+ API from 2.21.3)
But 3 function is void , lgob 11.04 (last for GTK 2.X) want return value .
This is be fixed in GTK+-2.21.4\2.21.7\2.21.8 (2.21.5~2.21.6 haven't tested)
Than I get lgob/example/Clock.lua worked. ;-)
Next step is test Minipad.lua , I guess it can use gtk paste by Lua.
Also stuck in gui.glade (Want run glade4lua ...)
But 3 function is void , lgob 11.04 (last for GTK 2.X) want return value .
This is be fixed in GTK+-2.21.4\2.21.7\2.21.8 (2.21.5~2.21.6 haven't tested)
Than I get lgob/example/Clock.lua worked. ;-)
Next step is test Minipad.lua , I guess it can use gtk paste by Lua.
Also stuck in gui.glade (Want run glade4lua ...)
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 7 guests