Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Guild Wars > GW Bots
You last visited: Today at 07:27

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

Advertisement



Coding-Problem

Discussion on Coding-Problem within the GW Bots forum part of the Guild Wars category.

Closed Thread
 
Old   #1
 
menchecktor's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 73
Received Thanks: 21
Unhappy Coding-Problem

hey^^
ich hab vor 2 tagen angefangen mit mit AutoIt zu beschäftigen.jezt wollt mich mal mein ersten GW-tool schreiben(programm,dass auf knopfdruck das ganze inventar durch-indentiviziert)und hab dann einfach mal ausprobiert^^(siehe unten)

was noch zu sagen ist:
-das inventar soll ganz oben rechts in der ecke sein
-das indentivizierungs-werkzeug soll auf dem ersten inventar-slot liegen

mein code sieht so aus:
Code:
HotKeySet ("^q", "start")

Func start()
	MouseClick ("left", 1025, 525)
	MouseClick ("left", 1025, 525)
	MouseClick ("left", 1025, 583)
	MouseClick ("left", 1025, 525)
	MouseClick ("left", 1025, 525)
	MouseClick ("left", 1025, 632)
	MouseClick ("left", 1025, 525)
	MouseClick ("left", 1025, 525)
	MouseClick ("left", 1025, 678)
	MouseClick ("left", 1025, 525)
	MouseClick ("left", 1025, 525)
	MouseClick ("left", 1080, 528)
	MouseClick ("left", 1025, 525)
	MouseClick ("left", 1025, 525)
	MouseClick ("left", 1080, 580)
	MouseClick ("left", 1025, 525)
	MouseClick ("left", 1025, 525)
	MouseClick ("left", 1080, 625)
	MouseClick ("left", 1025, 525)
	MouseClick ("left", 1025, 525)
	MouseClick ("left", 1080, 675)
	MouseClick ("left", 1025, 525)
	MouseClick ("left", 1025, 525)
	MouseClick ("left", 1125, 526)
	MouseClick ("left", 1025, 525)
	MouseClick ("left", 1025, 525)
	MouseClick ("left", 1125, 576)
	MouseClick ("left", 1025, 525)
	MouseClick ("left", 1025, 525)
	MouseClick ("left", 1125, 625)
	MouseClick ("left", 1025, 525)
	MouseClick ("left", 1025, 525)
	MouseClick ("left", 1125, 680)
	MouseClick ("left", 1180, 527)
	MouseClick ("left", 1025, 525)
	MouseClick ("left", 1025, 525)
	MouseClick ("left", 1180, 580)
	MouseClick ("left", 1025, 525)
	MouseClick ("left", 1025, 525)
	MouseClick ("left", 1180, 625)
	MouseClick ("left", 1025, 525)
	MouseClick ("left", 1025, 525)
	MouseClick ("left", 1180, 675)
	MouseClick ("left", 1025, 525)
	MouseClick ("left", 1025, 525)
	MouseClick ("left", 1230, 527)
	MouseClick ("left", 1025, 525)
	MouseClick ("left", 1025, 525)
	MouseClick ("left", 1230, 578)
	MouseClick ("left", 1025, 525)
	MouseClick ("left", 1025, 525)
	MouseClick ("left", 1230, 625)
	MouseClick ("left", 1025, 525)
	MouseClick ("left", 1025, 525)
	MouseClick ("left", 1230, 678)
EndFunc

while 1
sleep (100)
WEnd
das klappt aber nicht^^
kann mir wer sagen was ich falsch mache?
menchecktor is offline  
Old 03/17/2010, 17:22   #2
 
PenGuin :O's Avatar
 
elite*gold: 2
Join Date: Mar 2008
Posts: 1,778
Received Thanks: 1,222
Was genau funktioniert daran nicht?
PenGuin :O is offline  
Old 03/17/2010, 17:24   #3
 
HardCore.1337's Avatar
 
elite*gold: 1
Join Date: Feb 2009
Posts: 1,726
Received Thanks: 729
Kleiner Tip:
MouseClick("Left", x, y, 2) tuts auch.

Die 2 steht dafür, das es ein Doppelklick wird

sonst mit ControlClick arbeiten
HardCore.1337 is offline  
Old 03/17/2010, 17:48   #4
 
menchecktor's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 73
Received Thanks: 21
Quote:
Originally Posted by pinguin94 View Post
Was genau funktioniert daran nicht?
ja er fängt gar nich erst an mit dem indentifiziren^^ und wie ich dann wieder auf den desktop gegangen bin und das programm schließen wollte hatts auf einmal derbe rumgespackt^^


Quote:
Originally Posted by General Desert View Post
Kleiner Tip:
MouseClick("Left", x, y, 2) tuts auch.

Die 2 steht dafür, das es ein Doppelklick wird

sonst mit ControlClick arbeiten
was ist denn bitte ControlClick?
menchecktor is offline  
Old 03/17/2010, 17:53   #5
 
HardCore.1337's Avatar
 
elite*gold: 1
Join Date: Feb 2009
Posts: 1,726
Received Thanks: 729
haste das Wort sonst überlesen?
HardCore.1337 is offline  
Old 03/17/2010, 18:09   #6
 
menchecktor's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 73
Received Thanks: 21
ne aber ich wills trozdem wissen^^ kann ja nich schaden
menchecktor is offline  
Old 03/17/2010, 18:12   #7
 
Gabba2's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 1,403
Received Thanks: 918
Quote:
Originally Posted by menchecktor View Post
ja er fängt gar nich erst an mit dem indentifiziren^^ und wie ich dann wieder auf den desktop gegangen bin und das programm schließen wollte hatts auf einmal derbe rumgespackt^^




was ist denn bitte ControlClick?
Gabba2 is offline  
Old 03/17/2010, 18:39   #8
 
menchecktor's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 73
Received Thanks: 21
Quote:
Originally Posted by Gabba2 View Post
aud die idee binb ich auchschon gekommen^^ und hab z.b. gefunden, nur kapier ich das nich so wirklich(sry bin absoluter neuling)
menchecktor is offline  
Old 03/17/2010, 18:46   #9
 
HardCore.1337's Avatar
 
elite*gold: 1
Join Date: Feb 2009
Posts: 1,726
Received Thanks: 729
ControlClick(Anwendung, "", "", "Left", 1, x Koordinate, y Koordinate)
HardCore.1337 is offline  
Old 03/17/2010, 18:48   #10
 
menchecktor's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 73
Received Thanks: 21
Anwendung= Guild Wars oder gw.exe?
menchecktor is offline  
Old 03/17/2010, 19:13   #11
 
menchecktor's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 73
Received Thanks: 21
Question

Quote:
Originally Posted by General Desert View Post
ControlClick(Anwendung, "", "", "Left", 1, x Koordinate, y Koordinate)
passt das so?
Code:
HotKeySet ("^q", "start")

Func start()
	ControlClick(gw.exe, "", "", "Left", 2, x 1025, y 525)
	ControlClick(gw.exe, "", "", "Left", 1, x 1025, y 583)
	ControlClick(gw.exe, "", "", "Left", 2, x 1025, y 525)
	ControlClick(gw.exe, "", "", "Left", 1, x 1025, y 632)
	ControlClick(gw.exe, "", "", "Left", 2, x 1025, y 525)
	ControlClick(gw.exe, "", "", "Left", 1, x 1025, y 678)
	ControlClick(gw.exe, "", "", "Left", 2, x 1025, y 525)
	ControlClick(gw.exe, "", "", "Left", 1, x 1080, y 528)
	ControlClick(gw.exe, "", "", "Left", 2, x 1025, y 525)
	ControlClick(gw.exe, "", "", "Left", 1, x 1080, y 580)
	ControlClick(gw.exe, "", "", "Left", 2, x 1025, y 525)
	ControlClick(gw.exe, "", "", "Left", 1, x 1080, y 625)
	ControlClick(gw.exe, "", "", "Left", 2, x 1025, y 525)
	ControlClick(gw.exe, "", "", "Left", 1, x 1080, y 675)
	ControlClick(gw.exe, "", "", "Left", 2, x 1025, y 525)
	ControlClick(gw.exe, "", "", "Left", 1, x 1125, y 526)
	ControlClick(gw.exe, "", "", "Left", 2, x 1025, y 525)
	ControlClick(gw.exe, "", "", "Left", 1, x 1125, y 576)
	ControlClick(gw.exe, "", "", "Left", 2, x 1025, y 525)
	ControlClick(gw.exe, "", "", "Left", 1, x 1125, y 625)
	ControlClick(gw.exe, "", "", "Left", 2, x 1025, y 525)
	ControlClick(gw.exe, "", "", "Left", 1, x 1125, y 680)
	ControlClick(gw.exe, "", "", "Left", 2, x 1025, y 525)
	ControlClick(gw.exe, "", "", "Left", 1, x 1180, y 522)
	ControlClick(gw.exe, "", "", "Left", 2, x 1025, y 525)
	ControlClick(gw.exe, "", "", "Left", 1, x 1180, y 578)
	ControlClick(gw.exe, "", "", "Left", 2, x 1025, y 525)
	ControlClick(gw.exe, "", "", "Left", 1, x 1180, y 625)
	ControlClick(gw.exe, "", "", "Left", 2, x 1025, y 525)
	ControlClick(gw.exe, "", "", "Left", 1, x 1180, y 678)
	ControlClick(gw.exe, "", "", "Left", 2, x 1025, y 525)
	ControlClick(gw.exe, "", "", "Left", 1, x 1230, y 522)
	ControlClick(gw.exe, "", "", "Left", 2, x 1025, y 525)
	ControlClick(gw.exe, "", "", "Left", 1, x 1230, y 578)
	ControlClick(gw.exe, "", "", "Left", 2, x 1025, y 525)
	ControlClick(gw.exe, "", "", "Left", 1, x 1230, y 625)
	ControlClick(gw.exe, "", "", "Left", 2, x 1025, y 525)
	ControlClick(gw.exe, "", "", "Left", 1, x 1230, y 678)
EndFunc

while 1
sleep (100)
WEnd
menchecktor is offline  
Old 03/17/2010, 19:17   #12
 
HardCore.1337's Avatar
 
elite*gold: 1
Join Date: Feb 2009
Posts: 1,726
Received Thanks: 729
Guild Wars
HardCore.1337 is offline  
Old 03/17/2010, 19:33   #13
 
Killerzwerg829's Avatar
 
elite*gold: 30
Join Date: Feb 2009
Posts: 1,296
Received Thanks: 451
Es muss noch eine While-Schleife geben, damit der Code nicht sofort wieder beendet wird

Schreib noch nach dem Hotkey das hier:

PHP Code:
While 1
   sleep
(100)
Wend 

lg Chris

Edit: Sry, ich sehe gerade, dass dies bereits im Code drinne ist.
Ich bin blind >.<
Killerzwerg829 is offline  
Old 03/17/2010, 19:41   #14
 
menchecktor's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 73
Received Thanks: 21
also mittlerweile sieht das so aus:^^
Code:
HotKeySet ("!q", "start")


Func start()
	ControlClick("Guild Wars", "", "", "Left", 2, 1025, 525)
	ControlClick("Guild Wars", "", "", "Left", 1, 1025, 583)
	ControlClick("Guild Wars", "", "", "Left", 2, 1025, 525)
	ControlClick("Guild Wars", "", "", "Left", 1, 1025, 632)
	ControlClick("Guild Wars", "", "", "Left", 2, 1025, 525)
	ControlClick("Guild Wars", "", "", "Left", 1, 1025, 678)
	ControlClick("Guild Wars", "", "", "Left", 2, 1025, 525)
	ControlClick("Guild Wars", "", "", "Left", 1, 1080, 528)
	ControlClick("Guild Wars", "", "", "Left", 2, 1025, 525)
	ControlClick("Guild Wars", "", "", "Left", 1, 1080, 580)
	ControlClick("Guild Wars", "", "", "Left", 2, 1025, 525)
	ControlClick("Guild Wars", "", "", "Left", 1, 1080, 625)
	ControlClick("Guild Wars", "", "", "Left", 2, 1025, 525)
	ControlClick("Guild Wars", "", "", "Left", 1, 1080, 675)
	ControlClick("Guild Wars", "", "", "Left", 2, 1025, 525)
	ControlClick("Guild Wars", "", "", "Left", 1, 1125, 526)
	ControlClick("Guild Wars", "", "", "Left", 2, 1025, 525)
	ControlClick("Guild Wars", "", "", "Left", 1, 1125, 576)
	ControlClick("Guild Wars", "", "", "Left", 2, 1025, 525)
	ControlClick("Guild Wars", "", "", "Left", 1, 1125, 625)
	ControlClick("Guild Wars", "", "", "Left", 2, 1025, 525)
	ControlClick("Guild Wars", "", "", "Left", 1, 1125, 680)
	ControlClick("Guild Wars", "", "", "Left", 2, 1025, 525)
	ControlClick("Guild Wars", "", "", "Left", 1, 1180, 522)
	ControlClick("Guild Wars", "", "", "Left", 2, 1025, 525)
	ControlClick("Guild Wars", "", "", "Left", 1, 1180, 578)
	ControlClick("Guild Wars", "", "", "Left", 2, 1025, 525)
	ControlClick("Guild Wars", "", "", "Left", 1, 1180, 625)
	ControlClick("Guild Wars", "", "", "Left", 2, 1025, 525)
	ControlClick("Guild Wars", "", "", "Left", 1, 1180, 678)
	ControlClick("Guild Wars", "", "", "Left", 2, 1025, 525)
	ControlClick("Guild Wars", "", "", "Left", 1, 1230, 522)
	ControlClick("Guild Wars", "", "", "Left", 2, 1025, 525)
	ControlClick("Guild Wars", "", "", "Left", 1, 1230, 578)
	ControlClick("Guild Wars", "", "", "Left", 2, 1025, 525)
	ControlClick("Guild Wars", "", "", "Left", 1, 1230, 625)
	ControlClick("Guild Wars", "", "", "Left", 2, 1025, 525)
	ControlClick("Guild Wars", "", "", "Left", 1, 1230, 678)
EndFunc

while 1
sleep (100)
WEnd
jez bekomm ich zwar kein error mehr,wenn ich [alt]+[q] drücke,aber es tut sich nix
menchecktor is offline  
Old 03/17/2010, 19:47   #15
 
HardCore.1337's Avatar
 
elite*gold: 1
Join Date: Feb 2009
Posts: 1,726
Received Thanks: 729
Guild Wars ist aber schon offen oder?

Edit: fehler gefunden

ControlClick(Guild Wars, "", 0, "Left", 1, x, y)

EditEdit: Bin Thx geil
HardCore.1337 is offline  
Thanks
1 User
Closed Thread


Similar Threads Similar Threads
Mob.cs coding problem(help)
06/23/2010 - CO2 Private Server - 6 Replies
hi, so i have co pserver 5165 i'm coding mob.cs, to make a monster droping an item so here is the script and tell me wha'ts wrong, because i made the Id of GoldDew else if (MyMath.ChanceSuccess(DropRates.CPBag)) { if (Char != null) if (Char.VipLevel >= 3) { if (Char.Inventory.Count <= 39)
Problem in Coding, Help please
06/13/2010 - CO2 Private Server - 15 Replies
hello, i have a conquer private server version 5165 so i'm trying to code some npcs please watch the video to know what i want and how you can help me YouTube - SansTitre.flv
Problem mit Spammer coding
09/21/2009 - WarRock Hacks, Bots, Cheats & Exploits - 3 Replies
Hey habe ein problem mit dem coding von spammen, und zwar wenn ich in wr bin schreibt der dne text schon in die zeile, schickt ih dann aber nicht ab. Sprich: die "entertaste" wird nicht gedrückt was kann ich machen??? hier der code: Public Class Form1
problem with coding
08/03/2009 - CO2 Private Server - 19 Replies
when my moms die then respawn they are invisible... probably a mistake in coding >< any ideas? lotf



All times are GMT +1. The time now is 07:27.


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.