Howto write (part of) GUI that can paste strings from OS?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
cattail
Citizen
Posts: 56
Joined: Mon Feb 13, 2012 4:11 pm

Howto write (part of) GUI that can paste strings from OS?

Post by cattail »

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.
User avatar
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

Post by bartbes »

Correct, this is impossible at the moment.
User avatar
cattail
Citizen
Posts: 56
Joined: Mon Feb 13, 2012 4:11 pm

Re: Howto write (part of) GUI that can paste strings from OS

Post by cattail »

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:

Code: Select all

atk.so  cairo.so  common.so  gdk.so  gobject.so  gtk.so  _loader.so  pangocairo.so  pango.so
But when I try to use example like ./Clock.lua , it says :

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'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 .)
User avatar
cattail
Citizen
Posts: 56
Joined: Mon Feb 13, 2012 4:11 pm

Re: Howto write (part of) GUI that can paste strings from OS

Post by cattail »

I search a lot, guess cauze this:

Code: Select all

Overview of Changes from GTK+ 2.21.2 to 2.21.3
========================================
* Misc new API:
 ...
 gtk_window_group_get_current_grab
...
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...
User avatar
cattail
Citizen
Posts: 56
Joined: Mon Feb 13, 2012 4:11 pm

Re: Howto write (part of) GUI that can paste strings from OS

Post by cattail »

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 ...)
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 7 guests