Register for your free account! | Forgot your password?

You last visited: Today at 21:38

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

 

[HELP] direct input - controlclick

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2006
Posts: 49
Received Thanks: 13
[HELP] direct input - controlclick

Hey guys,

I'm actually working on a bot for league of legends, what I've done so far is the following:

Code:
Func startGame()
	$title = "PVP.net Client"
	$full = WinGetTitle($title)
	$hwnd = WinGetHandle($full)

	WinMove($title, "", 0, 0)
	Sleep(1000)

	ControlClick($title, "", "", "LEFT", 1, 256, 62) ; click on Play
	Sleep(6000)
	ControlClick($title, "", "", "LEFT", 1, 550, 450) ; click on Practice
	Sleep(6000)
	ControlClick($title, "", "", "LEFT", 1, 311, 582) ; click on Create Game
	sleep(6000)
	ControlSend($title, "", "", "{TAB}")
	ControlSend($title, "", "", "{TAB}")
	ControlSend($title, "", "", "{TAB}")
	ControlSend($title, "", "", "{TAB}")
	ControlSend($title, "", "", "{TAB}")
	Sleep(1000)
	ControlSend($title, "", "", "abcdefgh")
	sleep(2000)
	ControlSend($title, "", "", "{TAB}")
	sleep(2000)
	ControlSend($title, "", "", "abcdefgh")
	sleep(5000)
	ControlClick($title, "", "", "LEFT", 1, 248, 591) ; click on Create Game

	; time to add bots!

	; add bots to your team!
	Sleep(3000)
	ControlClick($title, "", "", "LEFT", 1, 468, 378)
	Sleep(3000)
	ControlClick($title, "", "", "LEFT", 1, 468, 378)
	Sleep(3000)
	ControlClick($title, "", "", "LEFT", 1, 468, 378)
	Sleep(3000)
	ControlClick($title, "", "", "LEFT", 1, 468, 378)

	; add bots to other team!
	Sleep(3000)
	ControlClick($title, "", "", "LEFT", 1, 896, 375)
	Sleep(3000)
	ControlClick($title, "", "", "LEFT", 1, 896, 375)
	Sleep(3000)
	ControlClick($title, "", "", "LEFT", 1, 896, 375)
	Sleep(3000)
	ControlClick($title, "", "", "LEFT", 1, 896, 375)
	Sleep(3000)
	ControlClick($title, "", "", "LEFT", 1, 896, 375)
	Sleep(3000)

	; click on start game
	ControlClick($title, "", "", "LEFT", 1, 832, 589)
EndFunc
which is a function, which creates a bot game. (I'm using that bot game shit, because I don't want to test it in normal game!)


This creates a game, even if it is not open with ControlClick() & ControlSend()

this works perfectly on 2 comps, but the thing is, I want to make it work ingame as well, like the bot shall rightclick on 2 coordinates to not be inactive & get dc'd.

I found out that the game uses directinput, my question is, if there is a way to hook directinput via autoit? I want the game to run in background to watch movies while it levels.

Hope some1 can help.



syron198 is offline  
Old   #2
 
elite*gold: 150
Join Date: Sep 2009
Posts: 529
Received Thanks: 86
i thinks bots are not good for games like LoL, they destroy the normal gameplay!


Centaro is offline  
Old   #3
 
elite*gold: 0
Join Date: May 2008
Posts: 141
Received Thanks: 17
Mhm what about separate all the sections into different Func`s.

ControlClick & ControlSend not working for you ingame?

The Windows Title is not the same you know that ? Ingame it changes to:

""League of Legends (TM) Client""
Geilomat is offline  
Old   #4
 
elite*gold: 0
Join Date: Jun 2006
Posts: 49
Received Thanks: 13
yeah I know, that the ingame windowname is different.

And yeah "Centaro", bots are not good for those games. Well, the idea of this is just to use practice games as bot games, since I totally hate it when people are afk on base and just leeching xp... so this is just a practice game bots for the 4 games u can play a day.


Your advantage of using a bot is still too low to make profit with it ingame, since what counts is not ip or xp, it's still your experience u have in playing this game. Even if people are level 30 just by leveling with bot, they still do not have the experience they need to win.


syron198 is offline  
Old   #5
 
elite*gold: 0
Join Date: Apr 2007
Posts: 12
Received Thanks: 4
Quote:
Originally Posted by Centaro View Post
i thinks bots are not good for games like LoL, they destroy the normal gameplay!
AMEN!!!! this is a game of skills, nothin further
shizzles is offline  
Old   #6
 
elite*gold: 81
Join Date: Jul 2005
Posts: 1,927
Received Thanks: 2,239
Quote:
Originally Posted by shizzles View Post
AMEN!!!! this is a game of skills, nothin further
You'll get banned for idling and sort anyway.


Atheuz is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
controlclick?
mal ne frage irgendwie bekomme ich keinen controlclick hin ControlClick ("METIN2","", ]]]) was da falsch?
9 Replies - AutoIt
Saufbot (ControlClick)
Hallo an alle, wollte mir einen ganz simplen Saufbot schreiben, jedoch mache ich irgendwas falsch. Nachdem ich die exe erstellt habe, startet der...
8 Replies - GW Bot Discussions / Questions
memory und controlclick xD
guten morgen, ich bin gerade dabei meinen bot mit memoryreads auszustattetn, nachdem er nun ne ftp versions abfrage hat sowie über regestrie und...
3 Replies - GW Bot Discussions / Questions
ControlClick
Hi Leute, Also, ich wollte mal einen Bot schreiben der im Hintergrund läuft, sodass ich nebenbei auf einem anderen Account spielen kann. Nun habe...
47 Replies - GW Bot Discussions / Questions
Probleme mit ControlClick
HeyHo, Neues Jahr = Neue Probleme :) Also schreib grade einen Bot fuer GW. Er macht grade auch alles richtig bis auf eins: Er klickt nicht auf...
7 Replies - Guild Wars



All times are GMT +2. The time now is 21:38.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2017 elitepvpers All Rights Reserved.