narayanjr Posted May 4, 2008 Posted May 4, 2008 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
jvanegmond Posted May 5, 2008 Posted May 5, 2008 {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. github.com/jvanegmond
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now