Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 03:12

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

Advertisement



AutoIt - Background botting with Mouse Click

Discussion on AutoIt - Background botting with Mouse Click within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2008
Posts: 62
Received Thanks: 54
AutoIt - Background botting with Mouse Click

Hi,

I am playing a game called Chrono Tales. In that, I would like a BOT where you click a location, wait for 3 seconds and then click another location, wait for 3 seconds... and so forth. It's like how this video shows:





I have to be able to do this whilst I am on another tab (so auto botting e.g. I can do work whilst in the background it's botting)

Is this easy to program using AutoIt? I will be willing to learn AutoIt if it is possible. If it is possible, do you think it is difficult to program? Are there any tutorials for AutoIt to do this?

Thank you
xBlizzarD
xBlizzarD is offline  
Old 02/19/2013, 16:36   #2
 
EinfachSö's Avatar
 
elite*gold: 76
Join Date: Jun 2012
Posts: 1,043
Received Thanks: 216
If you want it in the background then its not possible with AutoIt. Sry
EinfachSö is offline  
Thanks
1 User
Old 02/19/2013, 16:51   #3
 
elite*gold: 0
Join Date: Jul 2008
Posts: 62
Received Thanks: 54
I see, is it possible without background botting then?
xBlizzarD is offline  
Old 02/19/2013, 16:55   #4
 
EinfachSö's Avatar
 
elite*gold: 76
Join Date: Jun 2012
Posts: 1,043
Received Thanks: 216
Shall the bot click the boxes there on the ground? (video)
EinfachSö is offline  
Old 02/19/2013, 17:08   #5
 
elite*gold: 0
Join Date: Jul 2008
Posts: 62
Received Thanks: 54
Quote:
Originally Posted by EinfachSö View Post
Shall the bot click the boxes there on the ground? (video)
Yes, it has to click, wait for 3 seconds and then move to another location, click, wait for 3 seconds and so on
xBlizzarD is offline  
Old 02/19/2013, 17:19   #6
 
YatoDev's Avatar
 
elite*gold: 50
Join Date: Sep 2012
Posts: 3,841
Received Thanks: 1,462
you can make it . But you cant use pixel for this .you need to learn autoit before
YatoDev is offline  
Old 02/19/2013, 17:25   #7
 
EinfachSö's Avatar
 
elite*gold: 76
Join Date: Jun 2012
Posts: 1,043
Received Thanks: 216
Quote:
Originally Posted by ~ⓜⓐⓢⓣⓔⓡ~ View Post
you can make it . But you cant use pixel for this .you need to learn autoit before
autoit programs in the background? while you do something else? New to me
Well the whole life is just learning
EinfachSö is offline  
Old 02/19/2013, 17:32   #8
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
Quote:
Originally Posted by EinfachSö View Post
autoit programs in the background? while you do something else? New to me
Well the whole life is just learning
-
-
-memory editing
omer36 is offline  
Thanks
4 Users
Old 02/19/2013, 17:36   #9
 
-STORM-'s Avatar
 
elite*gold: 124
Join Date: Dec 2009
Posts: 2,114
Received Thanks: 3,142
Actually pixelsearch is the only task that can't be done in background.
Sending mouseclicks to a minimized window is no problem at all.
-STORM- is offline  
Old 02/19/2013, 17:36   #10
 
EinfachSö's Avatar
 
elite*gold: 76
Join Date: Jun 2012
Posts: 1,043
Received Thanks: 216
Quote:
Originally Posted by omer36 View Post
-
-
-memory editing
but for getting the informations from a not opened window you need to read the packets, right?
EinfachSö is offline  
Old 02/19/2013, 17:37   #11
 
Red_John's Avatar
 
elite*gold: 55
Join Date: Oct 2012
Posts: 1,630
Received Thanks: 234
I use a background autoit bot for diablo 3.
Red_John is offline  
Old 02/19/2013, 17:40   #12
 
-STORM-'s Avatar
 
elite*gold: 124
Join Date: Dec 2009
Posts: 2,114
Received Thanks: 3,142
Quote:
Originally Posted by EinfachSö View Post
but for getting the informations from a not opened window you need to read the packets, right?
What informations do you need exactly?
-STORM- is offline  
Old 02/19/2013, 17:46   #13
 
EinfachSö's Avatar
 
elite*gold: 76
Join Date: Jun 2012
Posts: 1,043
Received Thanks: 216
Quote:
Originally Posted by -STORM- View Post
What informations do you need exactly?
for example a bot for the game he want (thread-creator)
if it run in the background and you want the programm to collect the boxes. Then the bot need the information where these boxes are. the position of 'em
EinfachSö is offline  
Old 02/19/2013, 18:21   #14
 
-STORM-'s Avatar
 
elite*gold: 124
Join Date: Dec 2009
Posts: 2,114
Received Thanks: 3,142
Probably that can be done by reading memory.
Most games have a certain structure to store these objects.
For example:
posX: game.exe+0x1234->0x10->0x14+n*0x128->0x4
posY: game.exe+0x1234->0x10->0x14+n*0x128->0x8
posZ: game.exe+0x1234->0x10->0x14+n*0x128->0xC
for box number n.
So you just need the amount of boxes in your environment to store all positions into an array.
Of course the offsets can be anything else and there can be more or less of them, I just needed an example.

If you want to click these boxes, you also need to read the camera position and calculate the box's position on the screen, which can be qhite tricky.
-STORM- is offline  
Old 02/19/2013, 18:52   #15
 
elite*gold: 0
Join Date: Jul 2008
Posts: 62
Received Thanks: 54
Yes, the camera position seems problematic. Any way to get around that?

Furthermore, this is the coding I have done so far (First time coding so tell me if you have any suggestions ) -

Code:
#include <GUIConstantsEx.au3>
GUICreate("CT", 335, 100)
GUICtrlCreateLabel("Time", 8, 44)
$time1 = GUICtrlCreateInput("", 35, 40, 120) ;After a certain time, process will shut down
$startbutton = GUICtrlCreateButton("Start", 190, 8, 60)

GUISetState(@SW_SHOW)

While 1
   $msg = GUIGetMsg()
   
   Select
		
	  Case $msg = $startbutton
		
			   $sleep1 = GUICtrlRead($time1)
			   
			While 1	
				WinActivate("")
				ControlClick ( "", "", "" , "left" , 2 , x , y )
				Sleep(300)
				ControlClick ( "", "", "" , "left" , 2 , x , y )
				Sleep($sleep1)
			WEnd
			
	  Case $msg = $GUI_EVENT_CLOSE
			   GUIDelete()
			   ExitLoop
			
   EndSelect
	  
	  
WEnd
Is what I am doing right? The only problem is the camera position, I have to get it exactly right which is really difficult
xBlizzarD is offline  
Reply


Similar Threads Similar Threads
Planetside 2: Send left mouse click to game in background
12/14/2012 - AutoIt - 8 Replies
Hey, I've just started playing around with this program and i can manage to get the script to work if I have the game in focus: Send("{SPACE}") Which will for example make the character jump. The idea for me is to have these things working in the background while I have other things to do on my computer, so basically have AutoIt run on an inactive window. I tried this: ControlClick("Planetside2 v0.473.22.176761 **SHIPPING**", "", "", "", 1, 959, 545)
how to make a mouse that work in background?
08/29/2012 - AutoIt - 2 Replies
i want to make a bot pixelsearch but if the bot work i want to do other things. so i want to make a second mouse (invisible) that click pixel while i can make my things. how i can make it???
Mouse clicks in background
08/01/2009 - General Gaming Discussion - 6 Replies
Hi, i'm tryin to perfom mouse clicks in rom, while it's in background, but i have so far no success. I tried SendMessage/PostMessage and AutoIt, discovered that rom checks mouse clicks with getCursor but even when i NOPed the GetCursor func i had no success. Also, i didn't find any hooks that would manipulate SendMessage/PostMessage, so i'm very confused why my code isn't working. Please help me with some advice. Thanks for your aid. so long backtoreality
how to send contorl+mouse click in autoit
09/07/2005 - AutoIt - 0 Replies
Hi, I am wondering how to send contorl+left mouse click in autoit. What I do now: AutoItSetOption &#40; &#34;SendKeyDownDelay&#34;, 10&#41; Send&#40;&#34;^&#34;&#41; MouseClick&#40;&#34;left&#34;,Random&a mp;#40;0,1024,1&#41;,Random&#40;0,700,1&am p;#41;,1,1&#41; AutoItSetOption &#40; &#34;SendKeyDownDelay&#34;, 1&#41;



All times are GMT +1. The time now is 03:13.


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.