ControlSend und Guild Wars im Hintergrund

03/10/2009 20:36 MF-Rockstar#1
Habe ein simples Script, das im Hintergrund laufen soll. Es ist so aufgebaut:

ControlSend("Guild Wars", "", "", "{f}")
RandomSleep(350, 400)
ControlSend("Guild Wars", "", "", "{x}")
RandomSleep(750, 800)
ControlSend("Guild Wars", "", "", "1")
RandomSleep(1350, 1400)
ControlSend("Guild Wars", "", "", "2")

Klappt so auch ganz gut. Wenn ich allerdings "Guild Wars1" durch MultiClient aufrufe und dort drin spiele, kommen alle Befehle in meinem fenster und nicht im normalen.

was kann ich dagegen tun:confused:
03/10/2009 20:47 _revo#2
schreib
Code:
Opt("WinTitleMatchMode", 3)
an den anfang deines scriptes und les dir in der hilfe durch, was es bewirkt :)
03/10/2009 20:48 Darkbladercore#3
Hey,
Das hier in der TT6.ini ändern
windowName = Guild Wars1

PHP Code:
;
; 
TT6 movement engine and collection of useful functions
; Rev 1.0
; 10.1.2009
;
; 
adapt to your screen size and layout !
; 
note: to debug replace using click function by MouseClick so you can see the position
;
[
id]

windowName = Guild Wars1 ; <<<<<<<<---------


[
click positions]

; 
resign/death button
DTclickX 
= 512
DTclickY 
= 364

; accept loot
LTclickX 
= 1168
LTclickY 
= 247

; transfer to gh
GHclickX 
= 1060
GHclickY 
= 90

; sell tab of trader
STclickX 
= 482
STclickY 
= 84

; sell button of trader
SBclickX 
= 666
SBclickY 
= 767

; enable hardmode
HMclickX 
= 1055
HMclickY 
= 343


[inventory offsets]

; 
x / y offset of cell 0,0
invPosX00 
= 50
invPosY00 
= 90

; y offset of each row from 1 to 8
invPosYR1 
= 150
invPosYR2 
= 210
invPosYR3 
= 270
invPosYR4 
= 360
invPosYR5 
= 450
invPosYR6 
= 510
invPosYR7 
= 610
invPosYR8 
= 670

; space between x positions
invPosXdelta 
= 47 
MfG^^
03/10/2009 20:48 emtec22#4
hi,

gibt ne elegante lösung über das hwnd, aber naja meine doofe lösung klappt auch :D

Starte Guild Wars, lass es renamen, in xwars, dann kommt alles sauber an.

bei mir gibts x y z etc wars ;) ist billig aber klappt super ;)