AutoIt Question

05/09/2008 16:37 hok30#16
TQ Can still decompile it... MSN me them :p
05/09/2008 23:00 UPSman2#17
Code:
ControlClick("[Conquer2.0]","","Button246", "left",1,100,100)
ControlSend("[Conquer2.0]","","","hi")
Sleep(50)
ControlClick("[Conquer2.0]","","Button239", "left",1,10,10)
try that it should work, but please note* it doesnt work with the f1-f10 keys
05/09/2008 23:16 hok30#18
I don't think it should work because you don't have a ControlID in there...
05/09/2008 23:21 UPSman2#19
just try it... and then criticize me
05/09/2008 23:30 Hiyoal#20
Wtf...It works?! UPS, How??!!! What button addresses are these?? Ive never seen them before.
05/09/2008 23:35 UPSman2#21
just mouse over them with autoit windowinfo tool, under the control tab...
every button on CO window has a different control (well most)


Edit: btw it takes a little bit for autoit windowinfo to update
05/10/2008 00:00 hok30#22
:P wheres the AutoItWindowInfo tool?
05/10/2008 00:10 UPSman2#23
C:\Program Files\AutoIt3\Au3Info.exe

or wherever you installed autoit to
05/10/2008 02:11 Hiyoal#24
So why do you have to click on the button objects?? I just dont get that part :confused:

Hiyoal
05/10/2008 02:21 UPSman2#25
you dont have to click on the button object but i do think it allows for more versatility (like if window gets resized)

btw for my example im clicking on is the textbar then i send a string to it, then i click on the send button (the little arrow thingy in CO)
05/10/2008 03:54 Hiyoal#26
ooo. fair enough :p
05/10/2008 04:14 UPSman2#27
scratch that... pretty sure that you need to declare what control you sending controlclick to, unless of course the controlID is "" (nothing).
05/10/2008 04:33 Hiyoal#28
yea, thought so.
05/10/2008 12:07 hok30#29
Whoa! Just tried out AutoItWindowInfo. Thats pretty awesome. I'll start trying to make it again...
05/10/2008 14:02 warriorchamp#30
$client = "[Conquer]"
$hwnd = WinGetHandle($client)
$text = "helo!"

ControlSetText($hwnd,"",1542,$text)
ControlClick($hwnd,"",1543,"left",1)

Just try this out:D :cool: :D