flat assembler
Message board for the users of flat assembler.

Index > Linux > How to get selected text in other window?

Author
Thread Post new topic Reply to topic
hihelp



Joined: 15 Dec 2011
Posts: 17
hihelp
Hello everyone!
Now , I had one window on the desktop.

So how can get the window text? and how to get the window selected text in my program?

In windows version,could hook Textout function,and get the text.
But in linux,but I don't know how to do that.

Which friend can help me?
Thank you so much!

_________________
This guy is clever, what also did not leave.
Post 02 Jan 2012, 18:26
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3502
Location: Bulgaria
JohnFound
Hm, I am not very sure what you actually want to do.
Maybe Copy/Paste function?
Post 03 Jan 2012, 08:14
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
hihelp



Joined: 15 Dec 2011
Posts: 17
hihelp
JohnFound wrote:
Hm, I am not very sure what you actually want to do.
Maybe Copy/Paste function?


No,thanks for you reply.
I only want use my program to get the other window selected text(cursor selected text).

Can you understand that?
Thanks^_^

_________________
This guy is clever, what also did not leave.
Post 03 Jan 2012, 12:25
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3502
Location: Bulgaria
JohnFound
hihelp wrote:
I only want use my program to get the other window selected text(cursor selected text).


So, isn't it Copy(from this other window) and Paste (to your application)?
Post 03 Jan 2012, 14:26
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
hihelp



Joined: 15 Dec 2011
Posts: 17
hihelp
JohnFound wrote:
hihelp wrote:
I only want use my program to get the other window selected text(cursor selected text).


So, isn't it Copy(from this other window) and Paste (to your application)?


Yea,I want to make a translator,so I need to get the mouse cursor selected text in my program,then create a window at mouse pointer postion,show the text translated sentence.

Therefore,I want to know how to get selected text ...

Thanks for you reply and caring my problem.^_^

_________________
This guy is clever, what also did not leave.
Post 03 Jan 2012, 15:19
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.