|
You last visited: Today at 23:26
Advertisement
Need Help
Discussion on Need Help within the Conquer Online 2 forum part of the MMORPGs category.
09/27/2006, 05:26
|
#1
|
elite*gold: 0
Join Date: Apr 2006
Posts: 5
Received Thanks: 0
|
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
|
#2
|
elite*gold: 0
Join Date: Jan 2006
Posts: 1,919
Received Thanks: 178
|
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
|
#3
|
elite*gold: 0
Join Date: Apr 2006
Posts: 5
Received Thanks: 0
|
Sorry about that wasnt sure where to put it because its in the process of making a bot
|
|
|
09/28/2006, 04:49
|
#4
|
elite*gold: 0
Join Date: Apr 2006
Posts: 397
Received Thanks: 17
|
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
|
#5
|
elite*gold: 0
Join Date: Apr 2006
Posts: 397
Received Thanks: 17
|
so... does this work?
|
|
|
09/30/2006, 19:11
|
#6
|
elite*gold: 0
Join Date: Apr 2006
Posts: 5
Received Thanks: 0
|
No it doesnt
I need to learn more advanced stuff
|
|
|
09/30/2006, 21:16
|
#7
|
elite*gold: 0
Join Date: Apr 2006
Posts: 397
Received Thanks: 17
|
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
|
#8
|
elite*gold: 0
Join Date: Sep 2006
Posts: 199
Received Thanks: 26
|
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
|
#9
|
elite*gold: 0
Join Date: Apr 2006
Posts: 5
Received Thanks: 0
|
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
|
#10
|
elite*gold: 0
Join Date: Sep 2006
Posts: 199
Received Thanks: 26
|
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
|
#11
|
elite*gold: 0
Join Date: Mar 2007
Posts: 9
Received Thanks: 0
|
modereta u there man i need to speak to u
|
|
|
All times are GMT +1. The time now is 23:27.
|
|