Jump to content
Sign in to follow this  
narayanjr

Shift Stuck down

Recommended Posts

narayanjr

Send("{LSHIFT DOWN}")
Do 
    $PotCords = PixelSearch(420,315,706,430,7152231,10,1)
    If IsArray($PotCords) Then
        Sleep(100)
        MouseClick("Left", $PotCords[0],$PotCords[1],1,1)
        Sleep(100)
    EndIf
Until Not IsArray($PotCords)
Sleep(1000)
Send("{LSHIFT UP}")

I have tried having it do Send shift down in loop and send shift up in loop doesn't work.

I have tried sending shift up like 10 times in a row but doesn't work.

I have tried just using Send("{LSHIFT}") followed by MouseClick but shift comes up to fast.

I have tried sending {LSHIFT} at the end so it would do shift down and shift up but that doesn't work.

I only need Shift to be held down while MouseClick is called.

Basically I am out of ideas. I have had this problem before but all it took to fix that was Send("{LSHIFT UP}") but for some reason that is not working now

Share this post


Link to post
Share on other sites
jvanegmond

{SHIFTDOWN} Holds the SHIFT key down until {SHIFTUP} is sent

Send("{SHIFTDOWN}")
Do
    $PotCords = PixelSearch(420,315,706,430,7152231,10,1)
    If IsArray($PotCords) Then
        Sleep(100)
        MouseClick("Left", $PotCords[0],$PotCords[1],1,1)
        Sleep(100)
    EndIf
Until Not IsArray($PotCords)
Sleep(1000)
Send("{SHIFTUP}")

The help file has more answers then you might imagine.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×