Sign in to follow this  
Followers 0
Phaethon

MouseClick Problem - Please help

7 posts in this topic

$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]

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Didn't work unfortunately.

Anyone have any other ideas?


Coder's Helper >> Here[center][/center]

Share this post


Link to post
Share on other sites

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.


Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
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]

Share this post


Link to post
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]

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  
Followers 0