Jump to content

Recommended Posts

Posted (edited)

Hi,

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)

post-55763-12648731628309_thumb.jpg

Edited by nelsonpaixao
Posted (edited)

hi nelsonpaixao

Send("{SHIFTDOWN}{END}{SHIFTUP}{CTRLDOWN}c{CTRLUP}")

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

I use this on web pages a lot.

REB

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

MEASURE TWICE - CUT ONCE

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
×
×
  • Create New...