nelsonpaixao Posted January 30, 2010 Posted January 30, 2010 (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) Edited January 30, 2010 by nelsonpaixao
reb Posted January 31, 2010 Posted January 31, 2010 (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 January 31, 2010 by reb MEASURE TWICE - CUT ONCE
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now