Jump to content

Problem with clicking on picture


Recommended Posts

Heres a post I made in Scrips and Scraps

but it says its not a general suport forum so I decided to also post it here.

--------------------------------------------------------------------------------------

Could someone inform me on what to change if I want to search the screen for "test.bmp" and click the picture.

$image = _findImageOnScreen("test.bmp", "0,0,0,0", 0)


If $image <> 0 Then
    For $r = 1 to UBound($var)-1
        MouseClick($var[$r][1] , $var[$r][2], 20 )
        Sleep(200)
    Next
EndIf

Dosnt work ([took code from example]I have test.bmp in the same directory)

Thanks in advance

~Vivvic~

[quote name='DaleHohm']You have a strange habit of posting error messages that don't match your code.[/quote][quote name='SmOke_N']Forget the learning... straight to the scripting :lol: (laugh.gif)[/quote]

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...