Phaethon Posted August 26, 2007 Share Posted August 26, 2007 $click = MouseClick("left", 932, 471,1,5) If @error Then MsgBox(0,"Error","Script error 1") EndIf $cord = PixelSearch( 0, 0, 20, 300, 0xEE301C, 10 ) If @error Then MsgBox(0,"Error","Script error 2") EndIf Where I have MouseClick, what is happening is the mouse is being moved to the proper location, but no clicking is happening. (Also, the error message is not being displayed, it is simply moving to the PixelSearch, and continuing the script) If anyone has any ideas on how to fic this I would greatly appreciate it. Coder's Helper >> Here[center][/center] Link to comment Share on other sites More sharing options...
autocomplex Posted August 26, 2007 Share Posted August 26, 2007 $click = MouseClick("left", 932, 471,1,5) If @error Then MsgBox(0,"Error","Script error 1") EndIf $cord = PixelSearch( 0, 0, 20, 300, 0xEE301C, 10 ) If @error Then MsgBox(0,"Error","Script error 2") EndIf Want Runescape Specific Scripts and Bots?Visit AutoIt Runescape Team (ARST) forum! Link to comment Share on other sites More sharing options...
Phaethon Posted August 26, 2007 Author Share Posted August 26, 2007 Didn't work unfortunately. Anyone have any other ideas? Coder's Helper >> Here[center][/center] Link to comment Share on other sites More sharing options...
DaProgrammer Posted August 27, 2007 Share Posted August 27, 2007 Didn't work unfortunately.Anyone have any other ideas? try using mouse down, some sleep like 10ms and then mouse up, maybe that will work better. Link to comment Share on other sites More sharing options...
Nahuel Posted August 27, 2007 Share Posted August 27, 2007 How do you know there's no click? are you using it on the desktop? try using the RIGHT button instead, so you'll see the context menu. Link to comment Share on other sites More sharing options...
Phaethon Posted August 27, 2007 Author Share Posted August 27, 2007 I'm using it inside of a game, and it is going to the write place. There would be an OBVIOUS reaction if the click was happening. The right click did work once, just throwing that out there. Not what I need though. Coder's Helper >> Here[center][/center] Link to comment Share on other sites More sharing options...
Achilles Posted August 27, 2007 Share Posted August 27, 2007 I'm using it inside of a game, and it is going to the write place. There would be an OBVIOUS reaction if the click was happening.The right click did work once, just throwing that out there. Not what I need though.Maybe try two clicks? One to activate the window and one to actually click... I don't think that sounds right though.... My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
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