Send Mouse Click - Left Button Down and Up ?

JosephB

  • Joined: Nov 13, 2009
  • Posts: 366

Mon 2/21/2011 - 18:41

Samantha,

How are these 2 options typically used ?

 

... Can they be used when you wish to automate of setting a silder control in a windows applet window, where you need to hold the left mouse button clicked down while dragging the slider control to a new position and then release holding down the left click mouse button when the silder has moved to its new ruler/line mark position ???

....  I would like to to automate changing the slider in the control panel, mouse applet to move the silder to a new postion, when you run the winautomation script.  ...  (I would use this script to adjust mouse speed, when using an external mouse verses when using my built-in Trackpoint ("eraser head") mouse device).

#1

Samantha

  • Joined: Apr 23, 2010
  • Posts: 2326

Thu 2/24/2011 - 16:41

Hi Joseph, Please find attached a sample job that should help you get round what you are after. please let me know if this is what you were after. What the job does, is grab the slider and move it down 30 pixels. Give it a try and let me know. There are instructions within the job. :) Samantha

mouse click left button.waj

#2

JosephB

  • Joined: Nov 13, 2009
  • Posts: 366

Fri 2/25/2011 - 3:57

Hi Samantha,

Yes, this is what I was looking to do.  Your solution works perfectly. ... Thanks

 

Question  -  What happens if a job aborts with an error between the Send mouse click - Left Button "Down" and Send Mouse Click - Left Button "Up" ?

  ... Will the Left Button Down be "released"  (go back "up"), should the Job abort between these 2 actions or will the Left Button be "stuck" Down ? 

  .... And suppose the job logically by mistake jumped over/bypassed the Send - Left Button "Up" and just ended normally,  will the Left Button Down also be "released"  (go back "up"), upon Normal Job End ?

#3

Samantha

  • Joined: Apr 23, 2010
  • Posts: 2326

Mon 2/28/2011 - 13:56

Glad it worked for you! Well.. you can always prior to sending a left button down, send a left button up, so that if it had failed and you had to move it back to a label to start allover, you'd be sure, it was in place. :) Samantha

#4
Not a member yet? Register

Copyright 2013 - Softomotive Ltd