Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 16:05

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Help me ,

Discussion on Help me , within the AutoIt forum part of the Coders Den category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2011
Posts: 38
Received Thanks: 1
Help me ,

Hello every body ,

Today i'm make a bot for a browser game i'm play it .

But when i'm write Hotkeyset("F8", "Exit") to exit the bot doesnt exit .
Help me , And i'm need code to make the bot for 1 program and doesnt take the mouse . ( I'm can Do any thing and the bot is working ) . like the bot of Need for speed world .

Thanks every body .. !
nfswor is offline  
Old 07/11/2011, 13:32   #2
 
Ludder231's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 880
Received Thanks: 113
Hotkeyset("{F8}", "_Exit")

func _Exit()
exit
endfunc
Ludder231 is offline  
Thanks
1 User
Old 07/11/2011, 13:34   #3
 
elite*gold: 0
Join Date: Mar 2009
Posts: 7,260
Received Thanks: 33,149
Code:
HotKeySet("[COLOR="Red"]{[/COLOR]F8[COLOR="Red"]}[/COLOR]", "_Exit")
KDeluxe is offline  
Thanks
1 User
Old 07/11/2011, 15:26   #4
 
elite*gold: 0
Join Date: Jun 2011
Posts: 38
Received Thanks: 1
Thanks worked .. !

but is there a code like nfsworld bot ( I'm open the bot and can use the mouse ) .

thanks again
nfswor is offline  
Old 07/11/2011, 16:17   #5
 
Ludder231's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 880
Received Thanks: 113
Quote:
Originally Posted by nfswor View Post
Thanks worked .. !

but is there a code like nfsworld bot ( I'm open the bot and can use the mouse ) .

thanks again
the code is controlsend() search in helpfile...

example: ControlClick("Windowname", "", "", "Left", 1, 401, 466)
ControlSend("Windowname", "", "", "Text to send")
Ludder231 is offline  
Thanks
1 User
Old 07/11/2011, 17:35   #6
 
elite*gold: 0
Join Date: Jun 2011
Posts: 38
Received Thanks: 1
Thanks but am not understand ..

am try it and not work

can you example more ?
and thats my bot

PHP Code:
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

    Sleep
(3000)

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

    
Sleep(5000)



While 
1
    MouseClick
("",253,191,1,0)
    
Sleep(1000)
    
    
MouseClick("",536,346,1,0)
    
Sleep(5000)
        
MouseClick("",536,346,1,0)
    
Sleep(5000)
        
MouseClick("",536,346,1,0)
    
Sleep(5000)
        
MouseClick("",536,346,1,0)
    
Sleep(5000)
        
MouseClick("",536,346,1,0)
    
Sleep(5000)
        
MouseClick("",536,346,1,0)
    
Sleep(5000)
        
MouseClick("",536,346,1,0)
    
Sleep(5000)
    
    
MouseClick("",464,156,1,0)
    
Sleep(1000)
    
    
MouseClick("",358,117,1,0)
    
Sleep(1000)
    
    
    
MouseClick("",98,55,1,0)
    
Sleep(5000)
        
MouseClick("",98,55,1,0)
    
Sleep(5000)
        
MouseClick("",98,55,1,0)
    
Sleep(5000)
        
MouseClick("",98,55,1,0)
    
Sleep(5000)
        
MouseClick("",98,55,1,0)
    
Sleep(5000)
        
MouseClick("",98,55,1,0)
    
Sleep(5000)
        
MouseClick("",98,55,1,0)
    
Sleep(5000)
        
MouseClick("",98,55,1,0)
    
Sleep(5000)
        
MouseClick("",98,55,1,0)
    
Sleep(5000)
        
MouseClick("",98,55,1,0)
    
Sleep(5000)
    
    
    
MouseClick("",88,118,1,0)
    
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 
The bot work but need to doesnt take the mouse ..

thank you ..!
nfswor is offline  
Old 07/11/2011, 17:43   #7
 
Ludder231's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 880
Received Thanks: 113
Do it like:

or make a for-loop

example:

$howmanyloops= 5
For $i=0 to $howmanyloops
ControlClick("Windowname", "", "", "left", 1, 98,55)
sleep(5000)
next
Ludder231 is offline  
Thanks
1 User
Old 07/11/2011, 18:25   #8
 
elite*gold: 0
Join Date: Jun 2011
Posts: 38
Received Thanks: 1
Thanks for help me , and give me from your time ..

$howmanyloops= 5
For $i=0 to $howmanyloops
ControlClick("Windowname", "", "", "left", 1, 98,55)
sleep(5000)
next

but the controlclick() .. . not work

See thats bot :-

not work only on the game ( Need For speed world ) and i can use it and use the mouse .

Like that i want to make on the game browser .

thank you man .. !
nfswor is offline  
Old 07/11/2011, 18:34   #9
 
Ludder231's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 880
Received Thanks: 113
Quote:
Originally Posted by nfswor View Post
Thanks for help me , and give me from your time ..

$howmanyloops= 5
For $i=0 to $howmanyloops
ControlClick("Windowname", "", "", "left", 1, 98,55)
sleep(5000)
next

but the controlclick() .. . not work

See thats bot :-

not work only on the game ( Need For speed world ) and i can use it and use the mouse .

Like that i want to make on the game browser .

thank you man .. !

Did you changed the ControlClick("Windowname", "", "", "left", 1, 98,55) the "Windowname" to the name of the window from NFSW???
Ludder231 is offline  
Thanks
1 User
Old 07/11/2011, 18:38   #10
 
elite*gold: 0
Join Date: Jun 2011
Posts: 38
Received Thanks: 1
yes , i'm use mozilla firefox but the windows name is words in other language and - Mozilla Firefox
and when i'm write the words in the autoit it be ?????? ??? ????
nfswor is offline  
Old 07/12/2011, 10:27   #11
 
elite*gold: 0
Join Date: Jun 2011
Posts: 38
Received Thanks: 1
am copy the title from Autoit info ..

and paste it , but not work .

Code:
>>>> 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
nfswor is offline  
Old 07/12/2011, 11:01   #12

 
Adroxxx's Avatar
 
elite*gold: 15
Join Date: Nov 2005
Posts: 13,021
Received Thanks: 5,324
Adroxxx is offline  
Thanks
1 User
Closed Thread




All times are GMT +1. The time now is 16:06.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.