Personal computing discussed

Moderators: SecretSquirrel, just brew it!

 
ClickClick5
Gerbil Elite
Topic Author
Posts: 526
Joined: Fri Aug 15, 2008 8:28 pm
Location: Alaska
Contact:

Have Java control a button in a specific program

Tue Mar 19, 2013 10:02 pm

Hey all,

I have been playing with Robot but robot only controls a keypress system wide. Is there a way to have java say, hit F5 in the browser, WHILE other programs are open and are the active window? Essentially, have java refresh the browser while the browser is in the background. Is this possible or no? After some heavy googling, I'm thinking no, but decided to ask.
i7-5930k (4.1GHz), 32GB DDR4-2400, 980 4GB, GA-X99-UD3, Samsung 850 Pro 256GB (os/programs), Toshiba 5TB (games), WD VelociRaptor 500GB (games/scratch disk), Win 10 Pro x64
Check out my site for trance sets and other goodies! linserv.biz.tm
 
jihadjoe
Gerbil Elite
Posts: 516
Joined: Mon Dec 06, 2010 11:34 am

Re: Have Java control a button in a specific program

Tue Mar 19, 2013 11:23 pm

Not sure about java, but javascript will do it:
document.getElementById("myButtonsId").click()


Just stuff that in your settimeout or setinterval function.

Who is online

Users browsing this forum: No registered users and 4 guests