LDown & LUp Not Working??

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
Shadow3641
Junior Coder
Posts: 26
Joined: Thu Nov 17, 2016 2:45 pm

LDown & LUp Not Working??

Post by Shadow3641 » Thu Jun 22, 2017 7:36 pm

Hello,

Trying to write a simple program that just moves the mouse to a spot holds down the left click and then drags an item to another place, and let's go. It worked for one iteration of what I'm doing but now for some reason it never lets go of the left click. So when it tries to grab the next item, it then tries and moves the first item into the second.

Code: Select all

  //Move Items
  Let>r=1
  While>r<3
    MouseMove>2100,978
    LDown
    Wait>.5
    MouseMove>2800,275
    LUp
    Wait>2
    MouseMove>2100,992
    LDown
    Wait>.5
    MouseMove>2800,275
    LUp
    Wait>2
    If>r=1
      MouseMove>2100,1009
      LDown
    Else
      MouseMove>2100,1027
      LDown
    Endif
    Wait>.5
    MouseMove>2800,425
    LUp
    Wait>2
    MouseMove>2225,200
    LClick
    Wait>1.5
    Press Down
    Let>r=r+1
  EndWhile
I have even tried to make it work by adding extra LDown but still does not work.

Code: Select all

  //Move Items
  Let>r=1
  While>r<3
    MouseMove>2100,978
    LDown
    Wait>.5
    MouseMove>2800,275
    LDown
    LUp
    Wait>2
    MouseMove>2100,992
    LDown
    Wait>.5
    MouseMove>2800,275
    LDown
    LUp
    Wait>2
    If>r=1
      MouseMove>2100,1009
      LDown
    Else
      MouseMove>2100,1027
      LDown
    Endif
    Wait>.5
    MouseMove>2800,425
    LUp
    LClick
    Wait>2
    MouseMove>2225,200
    LClick
    Wait>1.5
    Press Down
    Let>r=r+1
  EndWhile
I have tried running MS as an admin also and it did not work.
Last edited by Shadow3641 on Fri Jun 23, 2017 1:47 pm, edited 1 time in total.

Shadow3641
Junior Coder
Posts: 26
Joined: Thu Nov 17, 2016 2:45 pm

Re: LDown Not Working??

Post by Shadow3641 » Thu Jun 22, 2017 7:44 pm

----------------------------------------------------------------------------------------------------------

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