|
You last visited: Today at 05:00
Advertisement
[HELP] direct input - controlclick
Discussion on [HELP] direct input - controlclick within the League of Legends forum part of the Popular Games category.
07/08/2010, 13:40
|
#1
|
elite*gold: 0
Join Date: Jun 2006
Posts: 48
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.
|
|
|
07/08/2010, 13:59
|
#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!
|
|
|
07/08/2010, 14:23
|
#3
|
elite*gold: 0
Join Date: May 2008
Posts: 145
Received Thanks: 19
|
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""
|
|
|
07/08/2010, 14:26
|
#4
|
elite*gold: 0
Join Date: Jun 2006
Posts: 48
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.
|
|
|
07/11/2010, 18:35
|
#5
|
elite*gold: 0
Join Date: Apr 2007
Posts: 12
Received Thanks: 4
|
Quote:
Originally Posted by Centaro
i thinks bots are not good for games like LoL, they destroy the normal gameplay!
|
AMEN!!!! this is a game of skills, nothin further
|
|
|
07/11/2010, 20:05
|
#6
|
elite*gold: 81
Join Date: Jul 2005
Posts: 1,921
Received Thanks: 2,239
|
Quote:
Originally Posted by shizzles
AMEN!!!! this is a game of skills, nothin further
|
You'll get banned for idling and sort anyway.
|
|
|
 |
Similar Threads
|
controlclick?
04/15/2010 - AutoIt - 9 Replies
mal ne frage irgendwie bekomme ich keinen controlclick hin
ControlClick ("METIN2","", ]]])
was da falsch?
|
Saufbot (ControlClick)
03/24/2009 - GW Bots - 8 Replies
Hallo an alle,
wollte mir einen ganz simplen Saufbot schreiben, jedoch mache ich irgendwas falsch. Nachdem ich die exe erstellt habe, startet der Bot kurz und schließt sich nach ein paar Sekunden wieder.
Hier mal der Code
func trinken()
WinActivate("Guild Wars")
sleep(5000)
Do
|
memory und controlclick xD
02/14/2009 - GW Bots - 3 Replies
guten morgen,
ich bin gerade dabei meinen bot mit memoryreads auszustattetn, nachdem er nun ne ftp versions abfrage hat sowie über regestrie und gui gesteuert wird.
vornerein weg, ich lehne es so ziemlich ab, die tt6 zu benutzen, da ich nicht den vollen umfang verstehe und es net von mir ist ;)
das auslesen der werte hab ich soweit,
Global $mem_gw = WinGetProcess($gw)
Global $mem_id = _MemoryOpen($mem_gw)
|
ControlClick
01/10/2009 - GW Bots - 47 Replies
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 ich folgendes Problem:
Die Idee war folgende: ich wollte den Bot ganz einfach alle Taschen des Inventars öffnen lassen und ihn dann per ControlClick wieder schließen lassen.
Dies soll für mich erstmal eine Art Übung sein, um später eine Sellfunc. drauß zu machen. Nun ist meine Frage.. Wieso passiert da nichts? Er öffnet nur das Inventar,...
|
Probleme mit ControlClick
01/01/2009 - Guild Wars - 7 Replies
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 den Zurueck zum aussenposten button.
ControlClick("Guild Wars","","","left&qu ot;,1,x,y)
|
All times are GMT +1. The time now is 05:00.
|
|