LClick and Java

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
rlchase2006
Newbie
Posts: 7
Joined: Thu Oct 12, 2006 1:04 pm
Location: Hampton, VA
Contact:

LClick and Java

Post by rlchase2006 » Wed Nov 03, 2010 1:34 pm

The other day I wrote a small script that when a window popped up (I think it uses java script) in Mozilla that MS12 would automatically set focus on the window and would click on the appropriate button. I had a similar script using MS10 that did this. Manually I can Left Click the button and it would refresh and then I can do it again. So I wrote this simple script that did exactly that, but the LClick doesn't work. So I did a record my actions and did the click on the windows and recorded it. Re-ran it and it still didn't work. I tried the LDown and the Lup but to no avail.

Is there some other way to mimic a LClick in MS12 to make this work?
I am using Windows 7 now, does this make a difference.

User avatar
JRL
Automation Wizard
Posts: 3501
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Wed Nov 03, 2010 6:56 pm

THIS clicks my buttons.

Code: Select all

GetCursorPos>CurX,CurY
LibFunc>User32,mouse_event,MEres,2,CurX,CurY,0,0
LibFunc>User32,mouse_event,MEres,4,CurX,CurY,0,0

rlchase2006
Newbie
Posts: 7
Joined: Thu Oct 12, 2006 1:04 pm
Location: Hampton, VA
Contact:

Still not working

Post by rlchase2006 » Thu Nov 04, 2010 2:53 pm

I tried that, and it doesn't work either. Maybe it is a Windows 7 thing.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts