Jump to content
Sign in to follow this  

get text of a focus

Recommended Posts



i building a bot for a browsergame

i enter a certain page and i manage my way through any control by sending TAB key strokes

but because somethimes some "controls" are not avaliable i need to ask the text of the "control" that as focus

and sometimes i also triple click a spot and focus some text (not a control) and i need again to read the text there

how can i do that? how can i get the fext of a focus control or spot?

please see screenshot

(PS: canĀ“t read html in some browsergames so i quit getelementbytag,id process, i can only pass login page with that)


Edited by nelsonpaixao

Share this post

Link to post
Share on other sites

hi nelsonpaixao


This will copy text to the clip board where you can retreave it using clipget().

I use this on web pages a lot.


edit: Forgot to mention that I use Firefox . These commands will not work on Internet Explorer. I have no experience with other browsers.

Edited by reb


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this