Register for your free account! | Forgot your password?

You last visited: Today at 13:16

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



AutoHotKey tutorial

Discussion on AutoHotKey tutorial within the CO2 Guides & Templates forum part of the Conquer Online 2 category.

Reply
 
Old 06/17/2007, 10:31   #76
 
elite*gold: 0
Join Date: Apr 2007
Posts: 101
Received Thanks: 14
xan u send me the whole script so i can kinda compare? and what kinda windows do u have?
ccbrat17 is offline  
Old 06/18/2007, 04:47   #77
 
elite*gold: 0
Join Date: Mar 2007
Posts: 608
Received Thanks: 365
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.
Attached Files
File Type: ibf post-108-1182134847.ibf (360 Bytes, 8 views)
hieitk is offline  
Old 06/18/2007, 21:47   #78
 
elite*gold: 0
Join Date: Apr 2007
Posts: 101
Received Thanks: 14
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
ccbrat17 is offline  
Old 06/19/2007, 04:09   #79
 
elite*gold: 0
Join Date: Mar 2007
Posts: 608
Received Thanks: 365
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.
hieitk is offline  
Old 06/19/2007, 23:42   #80
 
elite*gold: 0
Join Date: Apr 2007
Posts: 101
Received Thanks: 14
ive tried using that program before but it just walks around alot
ccbrat17 is offline  
Old 06/20/2007, 02:41   #81
 
elite*gold: 0
Join Date: Mar 2007
Posts: 608
Received Thanks: 365
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
hieitk is offline  
Old 06/20/2007, 04:56   #82
 
elite*gold: 0
Join Date: Aug 2006
Posts: 449
Received Thanks: 4
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
yokoyoko is offline  
Old 06/20/2007, 07:31   #83
 
elite*gold: 0
Join Date: Mar 2007
Posts: 608
Received Thanks: 365
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

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.
hieitk is offline  
Old 06/21/2007, 01:46   #84
 
elite*gold: 0
Join Date: Apr 2007
Posts: 101
Received Thanks: 14
i understand you did not tell me to use it but if your program just walks around how can i learn from that code?
ccbrat17 is offline  
Old 06/21/2007, 02:42   #85
 
elite*gold: 0
Join Date: Mar 2007
Posts: 608
Received Thanks: 365
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 ***, 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
hieitk is offline  
Old 06/21/2007, 03:31   #86
 
a1blaster's Avatar
 
elite*gold: 0
Join Date: Jan 2006
Posts: 3,487
Received Thanks: 1,961
hieitk requested close.

#CLOSED
a1blaster is offline  
Old 11/17/2007, 02:38   #87
 
a1blaster's Avatar
 
elite*gold: 0
Join Date: Jan 2006
Posts: 3,487
Received Thanks: 1,961
By request from hieitk!

#Reopened!
a1blaster is offline  
Old 11/17/2007, 16:56   #88
 
evanxxxm's Avatar
 
elite*gold: 20
Join Date: Oct 2006
Posts: 2,707
Received Thanks: 2,525
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?
evanxxxm is offline  
Old 11/17/2007, 18:48   #89
 
elite*gold: 0
Join Date: Mar 2007
Posts: 608
Received Thanks: 365
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.
hieitk is offline  
Old 11/17/2007, 18:59   #90
 
*Harsh*Soldier*'s Avatar
 
elite*gold: 0
Join Date: Nov 2007
Posts: 39
Received Thanks: 8
Thumbs up

Come back hieitk!
Don't quit.

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

There great!
*Harsh*Soldier* is offline  
Reply


Similar Threads Similar Threads
[HELP]Autohotkey
06/11/2011 - AutoIt - 8 Replies
Hallu, elitepvpers! ichh habe gaanz kur ne frage, wo ich es echt nich raffe, habe schon sufu benutzt und gegoogelt, aber nix gefunden, außer die normale anleitung auf english, die ich iwie nich raffe; kann mir wer bei autoit in diesen"noob" script autohotkey einbauen, damit der bot wenn ich auf F7 klicke automatisch beenden! hier der "noob" script! while 1 sleep(500) mousemove(1191,109,0) sleep(200) mouseclick("right") sleep(200) mousemove(1235,186,0)
AutoHotKey Help
01/17/2009 - General Coding - 1 Replies
Hi, Im having trouble with making a background macro for a game called ConquerOnline, refer to this thread . If anyone can help, I would really appreciate it.
AutoHotKey Help?
12/06/2007 - Conquer Online 2 - 11 Replies
I have Read the "Help" File but still cant figure out how to make a macro that works on client 1 while playing on client 2. Any ideas or codes for this :confused: I'm working on a macro that heals/pots/sits/med/stig/dc/area to macro etc. Pretty much it will play the game for u :D
Help with AutoHotKey
03/24/2006 - Conquer Online 2 - 3 Replies
Hey everyone i need some help. does anyone know how to write a command where you hold down ctrl while mouse clicking? all i've managed to do so far is make it click ctrl, let go, then mouse click. anyone know the codes to how i can do them both together? thanks. shadowHacker



All times are GMT +1. The time now is 13:18.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.