Jump to content

MouseClick Problem - Please help


Recommended Posts

$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

$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
Link to comment
Share on other sites

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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...