Need Help

09/27/2006 05:26 >>X#1
So Im trying to make my own bot on my own for the sole purpose of learning and I thought I had it down with AutoIT but it always says script paused, can someone tell me where I went wrong?
heres the script

WinActivate("[Conquer2.0]")
Do
$count = 0
$count = $count + 1
ControlClick("", "??", 1 , "left", 1)
$ControlID = 1
$ControlID = $ControlID + 1
Do
ControlClick("", "??", $ControlID, "right", 2)
Until $ControlID = 1800
$ControlID2 = 1
$ControlID2 = $ControlID2 + 1
Do
ControlClick("", "???", $ControlID2, "Right", 2)
Until $ControlID2 = 1800
$ControlID3 = 1
$ControlID3 = $ControlID3 + 1
Do
ControlClick("", "????", $ControlID3, "right", 2)
Until $ControlID3 = 1800
Until $count = 100000
Exit

If Send("{Del}") Then
Exit
EndIf

I realize its pretty short for a bot but I couldnt understand how to make it click pixels so I tried to make it work by Control Clicking Incrementals so any tips or tricks as to make this work?
09/27/2006 07:04 DM2000#2
Hi,

Thank you for visiting this forum.

Questions are NOT allowed at this section.
Questions are ONLY allowed at the main section.

Wish you have a nice day :)

DM
09/27/2006 13:05 >>X#3
Sorry about that wasnt sure where to put it because its in the process of making a bot
09/28/2006 04:49 bigassmuffin#4
try this:

Code:
HotKeySet("{Del}", "quit")


Opt("WinTitleMatchMode",2)
WinWaitActive("[Conquer2.0]")

Do
$count = 0
$count = $count + 1
ControlClick("", "??", 1 , "left", 1)
$ControlID = 1
$ControlID = $ControlID + 1

Do
ControlClick("", "??", $ControlID, "right", 2)
Until $ControlID = 1800
$ControlID2 = 1
$ControlID2 = $ControlID2 + 1

Do
ControlClick("", "???", $ControlID2, "Right", 2)
Until $ControlID2 = 1800
$ControlID3 = 1
$ControlID3 = $ControlID3 + 1

Do
ControlClick("", "????", $ControlID3, "right", 2)
Until $ControlID3 = 1800
Until $count = 100000
Exit


Func quit()
 * Exit
EndFunc
Try this, the important thing is the Opt("WinTitleMatchMode",2) part. Anyway, it also seems wierd the parth with the control click..y is the first part in quotes bloank and the 2nd part with question marks..there were no errors, but i dunt no wat it does so i culdnt test..shuld work...and wat is this supposed to do, pm me


Hope this helped ;P
09/30/2006 17:20 bigassmuffin#5
so... does this work?
09/30/2006 19:11 >>X#6
No it doesnt :(

I need to learn more advanced stuff
09/30/2006 21:16 bigassmuffin#7
I dont think it works because I dont think it can be done in autoit, i culd be rong...this can def. be done in vb easily
10/01/2006 02:28 Christoph_#8
Should look like:
ControlClick("[Conquer2.0]", "", "$ControlID","right", 2)

1) You are missing the Window name
2) The Windows Text is not "??", there is none !

The Do....Until part seems messed as well.

Btw: Wtf do you want to archive with this, you have set until = count = 100 000 <<<< this means your script will rund 100k times until it exits !

Even if it works, it most likley will hang for a looooong times (read: 100k click to each button eh ?)!

3) Use WinWait to wait until the window exists
4) Use WinActivate to open the window

5) You can wait with WinWaitActive until the windows exists and is active
10/03/2006 03:56 >>X#9
its meant to be a loop chris thats what the 100k repititions are and because the controlID for every monster is different I wanted to try this
10/10/2006 23:13 Christoph_#10
Quote:
Originally posted by >>X@Oct 3 2006, 03:56
its meant to be a loop chris thats what the 100k repititions are and because the controlID for every monster is different I wanted to try this
ID them by their pixels instead I would say.

Instead you could get all active Control IDs as well.
06/28/2007 17:25 seahenar#11
modereta u there man i need to speak to u