Jump to content

ControlClick


Recommended Posts

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 .

Link to comment
Share on other sites

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

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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)
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...