Register for your free account! | Forgot your password?

You last visited: Today at 04:51

  • 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 05/13/2007, 17:52   #61
 
elite*gold: 0
Join Date: Oct 2006
Posts: 248
Received Thanks: 22
@hieitk Hm, your calculator give me an idea for program. I will try to create it when I will get some time.
And who is Naruto???????
bombica23 is offline  
Old 05/13/2007, 18:30   #62
 
elite*gold: 0
Join Date: Nov 2006
Posts: 23
Received Thanks: 0
@ Nakor5: You might wanna see if you can do something about instances where it says you need negative pluses (you say you want a +3 and have a +4).
Just saying.
memorized128 is offline  
Old 05/13/2007, 21:06   #63
 
elite*gold: 0
Join Date: Mar 2007
Posts: 608
Received Thanks: 365
@bombica23

naruto was character on my previous avatar xD

@Nakor5

Quote:
Originally posted by Nakor5@May 13 2007, 14:22
ok, excellent guide, this is what I made.
Be nice to know how to change the icon, I read the help file and it's all greek to me.
Looking forward to being able to add tabs so i can add a cost calculator without running a new prog.
Very good job Nakor ^^
here you have a sample of custom icon using the one of CO2

Code:
; custom icon
Menu, Tray, Icon, tqzf.ico
Gui, Show , w210 h100, Window title

; basic elements
Gui, Add, Text, x35 y30 *Left,Window with custom icon 

return

GuiClose: 
ExitApp
I won't have time today or tomorrow to create a new post to explain tabs, but on tuesday I'll make it.
Attached Files
File Type: ibf post-108-1179083197.ibf (801 Bytes, 9 views)
hieitk is offline  
Old 05/14/2007, 12:54   #64
 
elite*gold: 0
Join Date: Mar 2006
Posts: 72
Received Thanks: 8
@ memorized128 Ok, updated the composition tool. Thnx for the input guys. Simple if statement fixed that negative plus one result. "Simple" well simple now lol.
@hieitk Icons... looking for a different solution if possible. Maybe putting the icon in the file so the exe can be located anywhere and display. Might be beyond AHK. Dunno.
Nakor5 is offline  
Old 05/28/2007, 00:35   #65
 
elite*gold: 0
Join Date: Jun 2006
Posts: 230
Received Thanks: 6
guess im only one who keeps sticking whit AutoIT
soemaal is offline  
Old 05/28/2007, 21:16   #66
 
elite*gold: 0
Join Date: Oct 2006
Posts: 248
Received Thanks: 22
No, you are not the only one but I dont have time (school :S).
And its not autoIT but AutoHotKeys.
bombica23 is offline  
Old 06/06/2007, 10:52   #67
 
killzone's Avatar
 
elite*gold: 100
Join Date: Mar 2006
Posts: 1,826
Received Thanks: 430
Its basically almost the same as AutoIt.
Well, time to learn this one too.
killzone is offline  
Old 06/16/2007, 15:53   #68
 
elite*gold: 0
Join Date: Apr 2007
Posts: 101
Received Thanks: 14
I have been able to make an auto clicker so far but havent been able to get it to run on conquer wondering if its as if theres a firewall blocking out my program while im trying to use conquer or something along those lines not really sure
ccbrat17 is offline  
Old 06/17/2007, 06:28   #69
 
elite*gold: 0
Join Date: Mar 2007
Posts: 608
Received Thanks: 365
Quote:
Originally posted by ccbrat17@Jun 16 2007, 15:53
I have been able to make an auto clicker so far but havent been able to get it to run on conquer wondering if its as if theres a firewall blocking out my program while im trying to use conquer or something along those lines not really sure
upload the file or write the code to check
hieitk is offline  
Old 06/17/2007, 06:49   #70
 
elite*gold: 0
Join Date: Apr 2007
Posts: 101
Received Thanks: 14
; Test

Gui, Show , w250 h50, Info

; only a text
Gui, Add, Text, x10 y12 Left, Press <SPACE> to pick up position

return
Space::
{
MouseGetPos,coordx, coordy
MsgBox,,Result,nPosition: (%coordx%.%coordy%)
return
}
A::
Loop
{
mouseclickx:=(IPosX+21)
mouseclicky:=(IPosY+21)
click right,%mouseclickx%,%mouseclicky%
Sleep,5000
}
Z::
Guiclose:
ExitApp
ccbrat17 is offline  
Old 06/17/2007, 08:35   #71
 
elite*gold: 0
Join Date: Mar 2007
Posts: 608
Received Thanks: 365
Quote:
Originally posted by ccbrat17@Jun 17 2007, 06:49
; Test

Gui, Show , w250 h50, Info

; only a text
Gui, Add, Text, x10 y12 Left, Press <SPACE> to pick up position

return
Space::
{
MouseGetPos,coordx, coordy
MsgBox,,Result,nPosition: (%coordx%.%coordy%)
return
}
A::
Loop
{
mouseclickx:=(IPosX+21)
mouseclicky:=(IPosY+21)
click right,%mouseclickx%,%mouseclicky%
Sleep,5000
}
Z::
Guiclose:
ExitApp
the error is pretty simple:

when u get to the loop the program do this:

do what?
right click

where?
at mouseclickx,mouseclicky

who is mouseclickx and mouseclicky?
mouseclickx is IPosX+21 and
mouseclicky is IPosY+21

who is IPosX and IPosY?
Not assigned


This is the way I think when I analizing a code, this one is pretty simple tho, and the problem is just some names, you should say:
mouseclickx:=(coordx+21)
mouseclicky:=(coordy+21)


hope that helps
hieitk is offline  
Old 06/17/2007, 08:49   #72
 
elite*gold: 0
Join Date: Apr 2007
Posts: 101
Received Thanks: 14
I have tried running it and it will run on the desktop but will not run on conquer was wondering why it would do that i can get it to right click on my desktop but cannot get it to right click on co to do intensify was wondering if you would happen to have a coding for it to do that or could it be because im running windows vista and thats conflicting with it if so i will run it on a different computer with xp to level. any suggustions would be quite helpful as I am just begining at this.
ccbrat17 is offline  
Old 06/17/2007, 09:10   #73
 
elite*gold: 0
Join Date: Mar 2007
Posts: 608
Received Thanks: 365
Quote:
Originally posted by ccbrat17@Jun 17 2007, 08:49
I have tried running it and it will run on the desktop but will not run on conquer was wondering why it would do that i can get it to right click on my desktop but cannot get it to right click on co to do intensify was wondering if you would happen to have a coding for it to do that or could it be because im running windows vista and thats conflicting with it if so i will run it on a different computer with xp to level. any suggustions would be quite helpful as I am just begining at this.
if is running on ur desk it should run on CO too, but having vista could be the problem, try on winXP first and then tell me what happened.
hieitk is offline  
Old 06/17/2007, 09:36   #74
 
elite*gold: 0
Join Date: Apr 2007
Posts: 101
Received Thanks: 14
is there anyone who looks at this who has windows xp, that is willing to test this out? scan if ud like, let me know how it works pls
Attached Files
File Type: ibf post-108-1182065770.ibf (371 Bytes, 6 views)
ccbrat17 is offline  
Old 06/17/2007, 09:51   #75
 
elite*gold: 0
Join Date: Mar 2006
Posts: 72
Received Thanks: 8
hmm.. you forgot to make the changes, once i changed the code to what hieitk said it worked on co window on xp using CO 4351 patch.
Loop
{
mouseclickx:=(coordX+21)
mouseclicky:=(coordY+21)
click left,%mouseclickx%,%mouseclicky%
Sleep,5000
}
Nakor5 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 04:52.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.