Jump to content

Recommended Posts

Posted

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 .

Posted (edited)

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

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
Posted

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
Posted

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.

Posted

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.

Posted

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)
Posted (edited)

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
Posted

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

Posted

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
Posted

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

Guest
This topic is now closed to further replies.
×
×
  • Create New...