AutoHotKey tutorial

06/17/2007 10:31 ccbrat17#76
xan u send me the whole script so i can kinda compare? and what kinda windows do u have?
06/18/2007 04:47 hieitk#77
Quote:
Originally posted by ccbrat17@Jun 17 2007, 05:31
xan u send me the whole script so i can kinda compare? and what kinda windows do u have?
here it is, just like Nakor5 said, you didnt made the changes I said.

Also there is something you must know about the tool u made, the position will depend on the window active, for example if you have the window with the message "Press SPACE to pick position" active and u press space u will have a certain position considering (0.0) the upper left corner of that window so if you go to conquer window then trying to use it will be a mess so
After opening your program go to conquer and make click on the window to be sure is activated, now press SPACE to pick the position and finaly "A" to run it.

Good luck.
06/18/2007 21:47 ccbrat17#78
i was just wondering about something i have seen some bots that automaticly run around and kill things first of all then they pick up most items what code makes this possibal im really confused about this and having ALOT of trouble with making my bot. i just wanna make a simple one that runs around killing and picking up all items. dont care if it heals or does any of the extras, just a simple auto bot
06/19/2007 04:09 hieitk#79
Quote:
Originally posted by ccbrat17@Jun 18 2007, 16:47
i was just wondering about something i have seen some bots that automaticly run around and kill things first of all then they pick up most items what code makes this possibal im really confused about this and having ALOT of trouble with making my bot. i just wanna make a simple one that runs around killing and picking up all items. dont care if it heals or does any of the extras, just a simple auto bot
my KIRA bot does that, look at my sig and on the first post you can download the code, good luck.
06/19/2007 23:42 ccbrat17#80
ive tried using that program before but it just walks around alot
06/20/2007 02:41 hieitk#81
Quote:
Originally posted by ccbrat17@Jun 19 2007, 18:42
ive tried using that program before but it just walks around alot
well, I didnt tell you to use it, I said download the code, maybe if you understand how it works you can "make it work for you" dam
06/20/2007 04:56 yokoyoko#82
hieitk your Kira bot just walks around for me and doesn't kill anything... I set the color for hp bar a couple times and it just doesn't do it lol... same color code after each time i set it but my char just runs around...

btw my colorpixelsearch function works because i'm a ahk programer myself so i tried color search and it can see the red color well by itself...

so you know anything about this problem? btw i have to post here because your kira bot post was closed
06/20/2007 07:31 hieitk#83
Quote:
Originally posted by yokoyoko@Jun 19 2007, 23:56
hieitk your Kira bot just walks around for me and doesn't kill anything... I set the color for hp bar a couple times and it just doesn't do it lol... same color code after each time i set it but my char just runs around...

btw my colorpixelsearch function works because i'm a ahk programer myself so i tried color search and it can see the red color well by itself...

so you know anything about this problem? btw i have to post here because your kira bot post was closed
I don't understand why it walks around for some ppl, I'd have to be there and watch to understand what's happening.

Since you are an AHK programmer and you already have a color search function that is working you don't need much more to finish a bot, to make a simple one just add a loop and a left/right click :D

I asked a1blaster to close KIRA's topic because I was tired of ppl asking questions, you gonna make me close this one too lol

this is from the first post of KIRA's topic
Quote:
6.- I'm NOT answering more questions about the Bot, people is lazy to read previous post and even this first one, I keep getting questions I've answered many times and noob people keep scanning when the faulse positives have been explained, I will only answer questions related to the code. If I get more noobie questions I'll request the close of the topic.
Good luck.
06/21/2007 01:46 ccbrat17#84
i understand you did not tell me to use it but if your program just walks around how can i learn from that code?
06/21/2007 02:42 hieitk#85
Quote:
Originally posted by ccbrat17@Jun 20 2007, 20:46
i understand you did not tell me to use it but if your program just walks around how can i learn from that code?
because the code is correct, that bot not only work fine for me but also for my friends and ppl that gave me karma, so please stop being such a pain on the ass, today I quited CO2 so Im quiting this forum too ^^ do whatever you want, you better forget that AHK programming and just crack SV and have a happy botting if thats ur goal.

#close request
06/21/2007 03:31 a1blaster#86
hieitk requested close.

#CLOSED
11/17/2007 02:38 a1blaster#87
By request from hieitk!

#Reopened! :cool:
11/17/2007 16:56 evanxxxm#88
hieitk@
your bot inspires me a lot
i learn most from the kira ini read/load section
although my bot does the same thing as before
i keep revising it for testing new codes
once again, thank you
anyhow, i would like to ask if u know something about settimer function
Code:
#persistent
settitlematchmode, 2
settimer, RightClick1, -1
settimer, RightClick2, -1
return

RightClick1:
MouseClick, right, 300, 300
sleep 3000
return

RightClick2:
MouseClick, right, 400, 400
sleep 1000
return
i am trying to make both function act at the same time, however using the above code, it has conflict to each other (like doing RighClick1 first, after it finishes, then run RightClick2 function)
any idea how they can go at the same time?
11/17/2007 18:48 hieitk#89
Quote:
Originally Posted by evanxxxm View Post
hieitk@
your bot inspires me a lot
i learn most from the kira ini read/load section
although my bot does the same thing as before
i keep revising it for testing new codes
once again, thank you
anyhow, i would like to ask if u know something about settimer function
Code:
#persistent
settitlematchmode, 2
settimer, RightClick1, -1
settimer, RightClick2, -1
return

RightClick1:
MouseClick, right, 300, 300
sleep 3000
return

RightClick2:
MouseClick, right, 400, 400
sleep 1000
return
i am trying to make both function act at the same time, however using the above code, it has conflict to each other (like doing RighClick1 first, after it finishes, then run RightClick2 function)
any idea how they can go at the same time?
Im glad u liked my bot ^^, I haven't been working on ahk nor autoit for a while but I understand what u wanna do, basically what you want is to make 2 clicks on different positions at the same time and I'm sorry to say but I think it is not possible, the way you are doing it is right but you are asking for something is not natural for windows. What's the purpose of the program?, tg trainer or something like that?, maybe we can find another way to do it.

Well, good luck.
Hiei.
11/17/2007 18:59 *Harsh*Soldier*#90
Come back hieitk!
Don't quit. :(

Your work here looks really really good.
I've downloaded many of your works now.

There great! :D