Sign in to follow this  
Followers 0
BuddyBoy

MouseClicks not working...?

12 posts in this topic

#1 ·  Posted (edited)

If BitAND(GUICtrlRead($Checkbox_11), $GUI_CHECKED) = $GUI_CHECKED Then  
                            $checksum = PixelChecksum(972, 348)
                        While $checksum = PixelChecksum(972, 348)
                            Sleep(100)
                        WEnd
                            MouseClick("right", 801, 48, 1)
                            Sleep(30000)
                        While 1
                            MouseClick("left", 278, 634, 1)
                            Sleep(5000)
                            MouseClick("left", 233, 650, 1)
                            Sleep(5000)
                            MouseClick("left", 270, 585, 1)
                            Sleep(5000)
                            MouseClick("left", 211, 479, 1)
                            Sleep(5000)
                            MouseClick("left", 182, 511, 1)
                            Sleep(5000)
                            MouseClick("left", 91, 463, 1)
                            Sleep(5000)
                            MouseClick("left", 534, 161, 1)
                            Sleep(5000)
                            MouseClick("left", 850, 192, 1)
                            Sleep(5000)
                            MouseClick("left", 681, 57, 1)
                            Sleep(5000)
                            MouseClick("left", 562, 43, 1)
                            Sleep(5000)
                            MouseClick("left", 772, 66, 1)
                            Sleep(5000)
                            MouseClick("left", 836, 75, 1)
                            Sleep(5000)
                            MouseClick("left", 706, 58, 1)
                            Sleep(5000)
                            MouseClick("left", 381, 31, 1)
                            Sleep(5000)
                            MouseClick("left", 140, 115, 1)
                            Sleep(5000)
                            MouseClick("left", 348, 208, 1)
                            Sleep(5000)
                            MouseClick("left", 324, 111, 1)
                            Sleep(1500)
                            MouseClick("left", 324, 111, 1)
                            Sleep(2000)
                            MouseClick("left", 324, 111, 1)
                            Sleep(1000)
                            MouseClick("left", 348, 208, 1)
                            Sleep(1000)
                            MouseClick("left", 324, 111, 1)
                            Sleep(1000)
                            MouseClick("left", 324, 111, 1)
                            Sleep(1000)
                            MouseClick("left", 324, 111, 1)
                            Sleep(1000)
                            MouseClick("left", 348, 208, 1)
                            Sleep(1000)
                            MouseClick("left", 324, 111, 1)
                            Sleep(1000)
                            MouseClick("left", 324, 111, 1)
                            Sleep(1000)
                            MouseClick("left", 324, 111, 1)
                            Sleep(1000)
                            MouseClick("left", 348, 208, 1)
                            Sleep(1000)
                            MouseClick("left", 324, 111, 1)
                            Sleep(1000)
                            MouseClick("left", 324, 111, 1)
                            Sleep(1000)
                            MouseClick("left", 324, 111, 1)
                            Sleep(1000)
                            MouseClick("left", 348, 208, 1)
                            Sleep(1000)
                            MouseClick("left", 324, 111, 1)
                            Sleep(1000)
                            MouseClick("left", 324, 111, 1)
                            Sleep(1000)
                            MouseClick("left", 324, 111, 1)
                            Sleep(1000)
                            MouseClick("left", 348, 208, 1)
                            Sleep(1000)
                            MouseClick("left", 324, 111, 1)
                            Sleep(1000)
                            MouseClick("left", 324, 111, 1)
                            Sleep(1000)
                            MouseClick("left", 324, 111, 1)
                            Sleep(1000)
                            MouseClick("left", 348, 208, 1)
                            Sleep(1000)
                            MouseClick("left", 324, 111, 1)
                            Sleep(1000)
                            MouseClick("left", 324, 111, 1)
                            Sleep(1000)
                            MouseClick("left", 324, 111, 1)
                            Sleep(1000)
                    wend 
        EndIf

For some reason after it right clicks here, The whole prgoram jsut falls apart. It DOES NOT wait 30 seconds, and all the mouse clicks dont go to those coords they just keep clicking where i put my mouse at and does not follow any of the sleep or anything. Ive tried pixelgetcolor,pixelsearch, and this one pixelchecksum, all end up in same result, falls apart after right click. So if anyone can help me out that be great.

Opt("MouseCoordMode", 1)

$checksum = PixelChecksum(972, 348)

While $checksum = PixelChecksum(972, 348)

Sleep(100)

WEnd

MouseClick("right", 801, 48, 1) <--- this

Sleep(30000)

While 1

Edited by BuddyBoy

Share this post


Link to post
Share on other sites



I think somethings wrong here?--

While $checksum = PixelChecksum(972, 348)

Sleep(100)

WEnd

That would never leave the loop if the checksum does equal $checksum...

Share this post


Link to post
Share on other sites

I think somethings wrong here?--

That would never leave the loop if the checksum does equal $checksum...

That's probably what they want. Also, based on what they said, if it never left the loop it wouldn't be able to do any of the MouseClicks.

So far I don't see any reason for the error you have stated. However, you don't need to specify the "1" click in the MouseClick function, it's 1 by default. That wouldn't cause any error though.

Nomad :D


Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Would help if you did the parameter calls for PixelCheckSum() there are a mandatory 4 parameters, and an optional 5th. Xstart / YStart / XEnd / YEnd / [Optional Step (Skip) x Pixels during search]

Edit Example:

$checksum = PixelChecksum(0, 0, 972, 348)
                        While 1
                            If $checksum <> PixelChecksum(0, 0, 972, 348) Then ExitLoop
                            Sleep(100)
                        WEnd
                            MouseClick("right", 801, 48, 1, 1)
                            ToolTip('MouseClicked Right ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(5000)
                        While 1
                            MouseClick("left", 278, 634, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(5000)
                            MouseClick("left", 233, 650, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(5000)
                            MouseClick("left", 270, 585, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(5000)
                            MouseClick("left", 211, 479, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(5000)
                            MouseClick("left", 182, 511, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(5000)
                            MouseClick("left", 91, 463, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(5000)
                            MouseClick("left", 534, 161, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(5000)
                            MouseClick("left", 850, 192, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(5000)
                            MouseClick("left", 681, 57, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(5000)
                            MouseClick("left", 562, 43, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(5000)
                            MouseClick("left", 772, 66, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(5000)
                            MouseClick("left", 836, 75, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(5000)
                            MouseClick("left", 706, 58, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(5000)
                            MouseClick("left", 381, 31, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(5000)
                            MouseClick("left", 140, 115, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(5000)
                            MouseClick("left", 348, 208, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(5000)
                            MouseClick("left", 324, 111, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(1500)
                            MouseClick("left", 324, 111, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(2000)
                            MouseClick("left", 324, 111, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(1000)
                            MouseClick("left", 348, 208, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(1000)
                            MouseClick("left", 324, 111, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(1000)
                            MouseClick("left", 324, 111, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(1000)
                            MouseClick("left", 324, 111, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(1000)
                            MouseClick("left", 348, 208, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(1000)
                            MouseClick("left", 324, 111, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(1000)
                            MouseClick("left", 324, 111, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(1000)
                            MouseClick("left", 324, 111, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(1000)
                            MouseClick("left", 348, 208, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(1000)
                            MouseClick("left", 324, 111, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(1000)
                            MouseClick("left", 324, 111, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(1000)
                            MouseClick("left", 324, 111, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(1000)
                            MouseClick("left", 348, 208, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(1000)
                            MouseClick("left", 324, 111, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(1000)
                            MouseClick("left", 324, 111, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(1000)
                            MouseClick("left", 324, 111, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(1000)
                            MouseClick("left", 348, 208, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(1000)
                            MouseClick("left", 324, 111, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(1000)
                            MouseClick("left", 324, 111, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(1000)
                            MouseClick("left", 324, 111, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(1000)
                            MouseClick("left", 348, 208, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(1000)
                            MouseClick("left", 324, 111, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(1000)
                            MouseClick("left", 324, 111, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(1000)
                            MouseClick("left", 324, 111, 1, 1)
                            ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(1000)
Also threw in debugging that you could have done (and lowered 30000 to 5000 so I didn't have to wait too long to test). Edited by SmOke_N

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

This should shorten that quite a bit as well:

$checksum = PixelChecksum(0, 0, 972, 348)
                        Local $XCoord = StringSplit('278,233,270,211,182,91,534,850,681,562,772,836,706,381,140,348,324,324,324,348,324,324,324,348,324,324,' & _
                                        '324,348,324,324,324,348,324,324,324,348,324,324,324,348,324,324,324', ',')
                        Local $YCoord = StringSplit('634,650,585,479,511,463,161,192,57,43,66,75,58,31,115,208,111,111,111,208,111,111,111,208,111,111,111,' & _
                                        '208,111,111,111,208,111,111,111,208,111,111,111,208,111,111,111', ',')
                        Local $Sleep = StringSplit('5000,5000,5000,5000,5000,5000,5000,5000,5000,5000,5000,5000,5000,5000,5000,5000,1500,2000,1000,1000,' & _
                                        '1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000', ',')
                        While 1
                            If $checksum <> PixelChecksum(0, 0, 972, 348) Then ExitLoop
                            Sleep(100)
                        WEnd
                            MouseClick("right", 801, 48, 1, 1)
                            ToolTip('MouseClicked Right ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                            Sleep(5000)
                        While 1
                            For $iCount = 1 To UBound($XCoord) - 1
                                MouseClick("left", Int($XCoord[$iCount]), Int($YCoord[$iCount]), 1, 1)
                                ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
                                Sleep(Int($Sleep[$iCount]))
                            Next
                        WEnd

Edited by SmOke_N

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Thanks smoke_n ill try in a bit. And maybe, you 2 first posters, that is wrong but as i mentioned i have did pixelsearch, and pixelgetcolor and it all worked until the right click. Ill give it a test now smoke n...

Share this post


Link to post
Share on other sites

Uhhh smoke_n by any chance did you run a test lol? Its all messed up and im not that good of a programmer so dont know how to change it all lol

Share this post


Link to post
Share on other sites

If anyone could help that be great, jsut take smoke_n script and fix the bugs in it that be great, thanks

Share this post


Link to post
Share on other sites

If anyone could help that be great, jsut take smoke_n script and fix the bugs in it that be great, thanks

:D :"> :D:wacko::D

Most of us have had more of our scripts fixed by SmOke_N than we ever fixed his... :(

When I ran his script it worked perfectly, but the copy/paste from the forum web page broke the line formatting and needed tweaking. This is what I ran, pasted right out of SciTe, after only tweaking the line breaks and running Tidy on it:

$checksum = PixelChecksum(0, 0, 972, 348)
Local $XCoord = StringSplit('278,233,270,211,182,91,534,850,681,562,772,836,706,381,140,348,324,324,324,' & _
        '348,324,324,324,348,324,324,324,348,324,324,324,348,324,324,324,348,324,324,324,348,324,324,324', ',')
Local $YCoord = StringSplit('634,650,585,479,511,463,161,192,57,43,66,75,58,31,115,208,111,111,111,208,' & _
        '111,111,111,208,111,111,111,208,111,111,111,208,111,111,111,208,111,111,111,208,111,111,111', ',')
Local $Sleep = StringSplit(' 5000,5000,5000,5000,5000,5000,5000,5000,5000,5000,5000,5000,5000,5000,5000,' & _
        '5000,1500,2000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,' & _
        '1000,1000,1000,1000,1000,1000,1000,1000,1000', ',')
While 1
    If $checksum <> PixelChecksum(0, 0, 972, 348) Then ExitLoop
    Sleep(100)
WEnd
MouseClick("right", 801, 48, 1, 1)
ToolTip('MouseClicked Right ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
Sleep(5000)
While 1
    For $iCount = 1 To UBound($XCoord) - 1
        MouseClick("left", Int($XCoord[$iCount]), Int($YCoord[$iCount]), 1, 1)
        ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
        Sleep(Int($Sleep[$iCount]))
    Next
WEnd

Note that the area of screen watched for change before it starts clicking is a rectangle from 0/0 to 972/348. Just moving the mouse within that area is enough to kick it off. Maybe that's not what you wanted, but your PixelChecksum() call did not have all the four required parameters in it, so you'd have to say what you really wanted.

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

:D :"> :D:wacko::D

Most of us have had more of our scripts fixed by SmOke_N than we ever fixed his... :(

When I ran his script it worked perfectly, but the copy/paste from the forum web page broke the line formatting and needed tweaking. This is what I ran, pasted right out of SciTe, after only tweaking the line breaks and running Tidy on it:

$checksum = PixelChecksum(0, 0, 972, 348)
Local $XCoord = StringSplit('278,233,270,211,182,91,534,850,681,562,772,836,706,381,140,348,324,324,324,' & _
        '348,324,324,324,348,324,324,324,348,324,324,324,348,324,324,324,348,324,324,324,348,324,324,324', ',')
Local $YCoord = StringSplit('634,650,585,479,511,463,161,192,57,43,66,75,58,31,115,208,111,111,111,208,' & _
        '111,111,111,208,111,111,111,208,111,111,111,208,111,111,111,208,111,111,111,208,111,111,111', ',')
Local $Sleep = StringSplit(' 5000,5000,5000,5000,5000,5000,5000,5000,5000,5000,5000,5000,5000,5000,5000,' & _
        '5000,1500,2000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,' & _
        '1000,1000,1000,1000,1000,1000,1000,1000,1000', ',')
While 1
    If $checksum <> PixelChecksum(0, 0, 972, 348) Then ExitLoop
    Sleep(100)
WEnd
MouseClick("right", 801, 48, 1, 1)
ToolTip('MouseClicked Right ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
Sleep(5000)
While 1
    For $iCount = 1 To UBound($XCoord) - 1
        MouseClick("left", Int($XCoord[$iCount]), Int($YCoord[$iCount]), 1, 1)
        ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
        Sleep(Int($Sleep[$iCount]))
    Next
WEnd

Note that the area of screen watched for change before it starts clicking is a rectangle from 0/0 to 972/348. Just moving the mouse within that area is enough to kick it off. Maybe that's not what you wanted, but your PixelChecksum() call did not have all the four required parameters in it, so you'd have to say what you really wanted.

:)

Thank you for fixing it up but when i run it and something actually changes in that coord...:::

Line 102 (File "myfileblahblah"):

ToolTip('MouseClicked Right ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)

ToolTip('MouseClicked Right ' & ^ ERROR

Error: Incorrect number of parameters in function call.

Edited by BuddyBoy

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

Thanks for touching it up PsaltyDS, I wonder what happen to the paste.

Anyway, ... Try using the Beta on it, or replace:

While 1
    For $iCount = 1 To UBound($XCoord) - 1
        MouseClick("left", Int($XCoord[$iCount]), Int($YCoord[$iCount]), 1, 1)
        ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
        Sleep(Int($Sleep[$iCount]))
    Next
WEndoÝ÷ Ùh­«­¢+Ù]¡¥±Ä(½ÈÀÌØí¥
½Õ¹ÐôÄQ¼U    ½Õ¹ ÀÌØía
½½É¤´Ä($$ÀÌØí5Á½Ìô5½ÕÍÑA½Ì ¤(5½ÕÍ
±¥¬ ÅÕ½Ðí±ÐÅÕ½Ðì°%¹Ð ÀÌØía
½½ÉlÀÌØí¥
½Õ¹Ñt¤°%¹Ð ÀÌØíe
½½ÉlÀÌØí¥
½Õ¹Ñt¤°Ä°Ä¤(Q½½±Q¥À Ìäí5½ÕÍ
±¥­1ÐÌäìµÀìÀÌØí5Á½ÍlÁtµÀìÌäì°ÌäìµÀìÀÌØí5Á½ÍlÅtµÀìÌäìMɸ
½½ÉÌÌäì°À°À¤(M±À¡%¹Ð ÀÌØíM±ÁlÀÌØí¥
½Õ¹Ñt¤¤(9áÐ)]¹
Edited by SmOke_N

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Thanks for touching it up PsaltyDS, I wonder what happen to the paste.

Anyway, ... Try using the Beta on it, or replace:

While 1
    For $iCount = 1 To UBound($XCoord) - 1
        MouseClick("left", Int($XCoord[$iCount]), Int($YCoord[$iCount]), 1, 1)
        ToolTip('MouseClicked Left ' & MouseGetPos(0) & ' , ' & MouseGetPos(1) & ' Screen Coords', 0, 0)
        Sleep(Int($Sleep[$iCount]))
    Next
WEndoÝ÷ Ùh­«­¢+Ù]¡¥±Ä(½ÈÀÌØí¥
½Õ¹ÐôÄQ¼U    ½Õ¹ ÀÌØía
½½É¤´Ä($$ÀÌØí5Á½Ìô5½ÕÍÑA½Ì ¤(5½ÕÍ
±¥¬ ÅÕ½Ðí±ÐÅÕ½Ðì°%¹Ð ÀÌØía
½½ÉlÀÌØí¥
½Õ¹Ñt¤°%¹Ð ÀÌØíe
½½ÉlÀÌØí¥
½Õ¹Ñt¤°Ä°Ä¤(Q½½±Q¥À Ìäí5½ÕÍ
±¥­1ÐÌäìµÀìÀÌØí5Á½ÍlÁtµÀìÌäì°ÌäìµÀìÀÌØí5Á½ÍlÅtµÀìÌäìMɸ
½½ÉÌÌäì°À°À¤(M±À¡%¹Ð ÀÌØíM±ÁlÀÌØí¥
½Õ¹Ñt¤¤(9áÐ)]¹
Thanks bro for making it work. But im sorry i made you do all that work for nothing :D. Once it reaches a certain coord to left click to, its a 100,, 400 (somewhere around there) but it goes and clicks on the 500, 400 areas. It will require too much work for you to get it running properly so im suggesting you not do it. If you abosolutely want to go on ahead. (If you want to actually test the program just like make a new folder, maximize it and create a blacnk text or w/e, run program, drag the blank text doc over the checked coord and it should work. Read all the tooltip coords, on like the 4-7 (not for sure exactly) it will say the correct tool tip but clicks on wrong coord :wacko: )

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