Jump to content
Sign in to follow this  
idaH

ControlClick

Recommended Posts

idaH

Hello ,,

The controlclick not work for me

When i open the sicrpt it say there is a error

global $Paused
global $cnt = 1
global $z = 0
HotKeySet("{F9}", "Terminate")
HotKeySet("{F7}", "TogglePause")
$timeInput = InputBox("Timer Settings", "How many second delay?", "3")
$time = $timeInput*1000

Opt("CaretCoordMode", 2)
Opt("MouseCoordMode", 2)




    Sleep(3000)

MouseClick("",1271,387,1,0)

    Sleep(5000)


While 1
    ControlClick("???? ???? ????? - ??????? - Mozilla Firefox","","",Left,1,253,191)
    Sleep(1000)
    
    ControlClick("???? ???? ????? - ??????? - Mozilla Firefox","","",Left,1,536,346)
    Sleep(5000)
        ControlClick("???? ???? ????? - ??????? - Mozilla Firefox","","",Left,1,536,346)
    Sleep(5000)
        ControlClick("???? ???? ????? - ??????? - Mozilla Firefox","","",Left,1,536,346)
    Sleep(5000)
        ControlClick("???? ???? ????? - ??????? - Mozilla Firefox","","",Left,1,536,346)
    Sleep(5000)
        ControlClick("???? ???? ????? - ??????? - Mozilla Firefox","","",Left,1,536,346)
    Sleep(5000)
        ControlClick("???? ???? ????? - ??????? - Mozilla Firefox","","",Left,1,536,346)
    Sleep(5000)
        ControlClick("???? ???? ????? - ??????? - Mozilla Firefox","","",Left,1,536,346)
    Sleep(5000)
    
ControlClick("???? ???? ????? - ??????? - Mozilla Firefox","","",Left,1,464,156)
    Sleep(1000)
    
    ControlClick("???? ???? ????? - ??????? - Mozilla Firefox","","",Left,1,358,117)
    Sleep(1000)
    
    
    
    
ControlClick("???? ???? ????? - ???????? - Mozilla Firefox","","",Left,1,98,55)
    Sleep(5000)
    ControlClick("???? ???? ????? - ???????? - Mozilla Firefox","","",Left,1,98,55)
    Sleep(5000)
    ControlClick("???? ???? ????? - ???????? - Mozilla Firefox","","",Left,1,98,55)
    Sleep(5000)
    ControlClick("???? ???? ????? - ???????? - Mozilla Firefox","","",Left,1,98,55)
    Sleep(5000)
    ControlClick("???? ???? ????? - ???????? - Mozilla Firefox","","",Left,1,98,55)
    Sleep(5000)
    ControlClick("???? ???? ????? - ???????? - Mozilla Firefox","","",Left,1,98,55)
    Sleep(5000)
    ControlClick("???? ???? ????? - ???????? - Mozilla Firefox","","",Left,1,98,55)
    Sleep(5000)
    ControlClick("???? ???? ????? - ???????? - Mozilla Firefox","","",Left,1,98,55)
    Sleep(5000)
    ControlClick("???? ???? ????? - ???????? - Mozilla Firefox","","",Left,1,98,55)
    Sleep(5000)
    ControlClick("???? ???? ????? - ???????? - Mozilla Firefox","","",Left,1,98,55)
    Sleep(5000)
    
    
    
    ControlClick("???? ???? ????? - ???????? - Mozilla Firefox","","",Left,1,88,118)
    Sleep(1000)
    
    
    WEnd


Func TogglePause() ; the pause function
$Paused = NOT $Paused
While $Paused
ToolTip('Please press "F8" to resume!',600,200,"",1,2)
sleep(1000)
WEnd
ToolTip("")
EndFunc

Func Terminate() ; the exit function
Exit 0
EndFunc

thats my sicrpt , and when i open it it said is there a error .

Share this post


Link to post
Share on other sites
monoscout999

???? ???? ????? - ????????

What did you expect from that?

This is the syntax error problem

ControlClick("???? ???? ????? - ???????? - Mozilla Firefox","","",Left,1,88,118)

Left must have ""

ControlClick("???? ???? ????? - ???????? - Mozilla Firefox","","","Left",1,88,118)

Check the examples first, and look when SciTe Tells you that is some error usualy shows you this way

G:\Agustin\autoit\test.au3(23,74) : ERROR: syntax error
    ControlClick("???? ???? ????? - ??????? - Mozilla Firefox","","",Left,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^" this mean that the error is in the character above "^"

EDITED some misspelled

Edited by monoscout999

Share this post


Link to post
Share on other sites
idaH

Thats is a language SCiTE not know it ,, (not enlgish )

see thats from the Autoit Info

>>>> Window <<<<
Title:  حياة قاتل مأجور - الجرائم - Mozilla Firefox
Class:  MozillaUIWindowClass
Position:   -8, -8
Size:   1296, 1010
Style:  0x15CF0000
ExStyle:    0x00000100
Handle: 0x00B60230

>>>> Control <<<<
Class:  MozillaWindowClass
Instance:   2
ClassnameNN:    MozillaWindowClass2
Name:   
Advanced (Class):   [CLASS:MozillaWindowClass; INSTANCE:2]
ID: 
Text:   
Position:   0, 109
Size:   1280, 841
ControlClick Coords:    447, 669
Style:  0x56000000
ExStyle:    0x00000000
Handle: 0x0037029C

>>>> Mouse <<<<
Position:   447, 800
Cursor ID:  0
Color:  0x000000

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<


>>>> Hidden Text <<<<
IDM DwnlPanelCtrl Window

Share this post


Link to post
Share on other sites
somdcomputerguy

حياة قاتل مأجور - الجرائم

The life of a hitman - Crimes

Forum Rules


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites
idaH

so i'm translate it to english ??

--- i'm read the rules yesterday , is there any wrong in my topic ?

Share this post


Link to post
Share on other sites
somdcomputerguy

Well you shouldn't bump your own threads within 24 hours, you shouldn't discuss anything in a new thread because another thread about the same thing has been closed, and you should learn how to play a damn game yourself.


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites
idaH

error ..

AutoIt Error

Line11 (File "C:\Users\Frohar\Desktop\Autoit\idaH.au3"):

ControlClick("The life of a hitman - Crimes - Mozilla Firefox","","",Left,1,1271,387)

ControlClick("The life of hitman - Crimes - Mozilla Firefox","","",Left^ERROR

Error: Missing separator character after keyword.

Share this post


Link to post
Share on other sites
monoscout999

Is not in the forum rules, but is in the wiki FAQ Link to wiki FAQ

Use the class instead the windows name.. this way

ControlClick("CLASS:MozillaUIWindowClass","","","Left",1,536,346)

You also can store the window handle and use it later many times... this other way.

global $MozzilaHNDL = WinGetHandle("CLASS:MozillaUIWindowClass")

...Then you write this instead

ControlClick($MozzilaHNDL,"","","Left",1,536,346)
    Sleep(5000)
        ControlClick($MozzilaHNDL,"","","Left",1,536,346)
    Sleep(5000)
        ControlClick($MozzilaHNDL,"","","Left",1,536,346)
    Sleep(5000)
        ControlClick($MozzilaHNDL,"","","Left",1,536,346)
    Sleep(5000)
        ControlClick($MozzilaHNDL,"","","Left",1,536,346)

Share this post


Link to post
Share on other sites
monoscout999

Two Things....

1 Automating game BOTs is forbiden in this forum.

2 i already told you that the Left word inside the function must have quotes and you didn`t read it.... see????? "Left"

Edited by monoscout999

Share this post


Link to post
Share on other sites
somdcomputerguy

monoscout999 already gave you an answer, so I guess you should learn how to read as well.

In case you're really daft, here you go again,

Left must have ""


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites
idaH

Two Things....

1 Automating game BOTs is forbiden in this forum.

2 i already told you that the Left word inside the function must have quotes and you didn`t read it.... see????? "Left"

sorry am not see your post .. i'll try now and tell you whats happend

thanks ..

monoscout999 already gave you an answer, so I guess you should learn how to read as well.

In case you're really daft, here you go again,

i'll try ..

Share this post


Link to post
Share on other sites
monoscout999

because ??????????? try my another answer.... i fell bad when the users dont read the whole answers that we gave him

Share this post


Link to post
Share on other sites
idaH

because ??????????? try my another answer.... i fell bad when the users dont read the whole answers that we gave him

i'm trying your 2 answers !

see

global $Paused
global $cnt = 1
global $z = 0
HotKeySet("{F9}", "Terminate")
HotKeySet("{F7}", "TogglePause")
$timeInput = InputBox("Timer Settings", "How many second delay?", "3")
$time = $timeInput*1000
global $MozzilaHNDL = WinGetHandle("CLASS:MozillaUIWindowClass")


    Sleep(3000)



ControlClick("CLASS:MozillaUIWindowClass","","","Left",1,1271,387)

    Sleep(5000)



While 1
        ControlClick($MozzilaHNDL,"","","Left",1,253,191)
    Sleep(1000)
    
    
        ControlClick($MozzilaHNDL,"","","Left",1,536,346)
    Sleep(5000)
            ControlClick($MozzilaHNDL,"","","Left",1,536,346)
    Sleep(5000)
            ControlClick($MozzilaHNDL,"","","Left",1,536,346)
    Sleep(5000)
            ControlClick($MozzilaHNDL,"","","Left",1,536,346)
    Sleep(5000)
            ControlClick($MozzilaHNDL,"","","Left",1,536,346)
    Sleep(5000)
            ControlClick($MozzilaHNDL,"","","Left",1,536,346)
    Sleep(5000)
            ControlClick($MozzilaHNDL,"","","Left",1,536,346)
    Sleep(5000)
    
    
            ControlClick($MozzilaHNDL,"","","Left",1,464,156)
    Sleep(1000)
    

    
                ControlClick($MozzilaHNDL,"","","Left",1,358,117)
    Sleep(1000)
    
    
    
                    ControlClick($MozzilaHNDL,"","","Left",1,98,55)
    Sleep(5000)
                        ControlClick($MozzilaHNDL,"","","Left",1,98,55)
    Sleep(5000)
                        ControlClick($MozzilaHNDL,"","","Left",1,98,55)
    Sleep(5000)
                        ControlClick($MozzilaHNDL,"","","Left",1,98,55)
    Sleep(5000)
                        ControlClick($MozzilaHNDL,"","","Left",1,98,55)
    Sleep(5000)
                        ControlClick($MozzilaHNDL,"","","Left",1,98,55)
    Sleep(5000)
                        ControlClick($MozzilaHNDL,"","","Left",1,98,55)
    Sleep(5000)
                        ControlClick($MozzilaHNDL,"","","Left",1,98,55)
    Sleep(5000)
                        ControlClick($MozzilaHNDL,"","","Left",1,98,55)
    Sleep(5000)
                        ControlClick($MozzilaHNDL,"","","Left",1,98,55)
    Sleep(5000)

    
    
                        ControlClick($MozzilaHNDL,"","","Left",1,88,118)
    Sleep(1000)
    
    
    WEnd


Func TogglePause() ; the pause function
$Paused = NOT $Paused
While $Paused
ToolTip('Please press "F8" to resume!',600,200,"",1,2)
sleep(1000)
WEnd
ToolTip("")
EndFunc


Func Terminate() ; the exit function
Exit 0
EndFunc

Share this post


Link to post
Share on other sites
monoscout999

sorry my error is this way.

global $MozzilaHNDL = WinGetHandle("[CLASS:MozillaUIWindowClass]")

with brackets "[]"

Share this post


Link to post
Share on other sites
idaH

thanks worked !!

but if there a to click on a button i choose it , and i can to open another thing ,, and the bot working ( open firefox and game ) ..

Share this post


Link to post
Share on other sites
monoscout999

up up >>>

Read the forum rules. The best game BOT ever and forever(it works for every game you want)

And up up >>> read this again... -.- you don`t like to read, don`t you?

Link to wiki FAQ

Use proper English.

Next time i will report you... you don`t read anything that others post to you, also you don`t make any effort to make you self understeable.

Edited by monoscout999

Share this post


Link to post
Share on other sites
idaH

ok man thanks for that :)

but if there a way or no ?

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.