Register for your free account! | Forgot your password?

You last visited: Today at 16:46

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

Advertisement



AutoHotKey Question

Discussion on AutoHotKey Question within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2006
Posts: 11
Received Thanks: 0
AutoHotKey Question

Hello,

This is my first time making anything close too a bot, so please be nice

I wanted to make a macro (for taos), that sits for 11 seconds, uses meditate, then cures 10 timeson a guard (pre-set coordinates). Everything works fine except for the part where I need to hold control.
This is my code so far:

;Script - Zachary Frenette - CoTao

msgbox, Sit F1 Medidate F2 (Cure As Skill)
WinGet, id, ID, [C
loop
{
Send {F1}
sleep 11000
Send {F2}
sleep 2000

loop 10
{
Send {Control Down}
Sleep 1000
ControlClick, x288 y343, ahk_id %id%,,right
}
Send {Control Up}
Sleep 1000
}

As you can see, very basic, but the Control Down part doesn't work. (I've also tried Ctrl Down.

Does anyone know how to fix this? It's this only thing left to fix.

Reply soon,

Thanks

Nizbel
Nizbel is offline  
Old 06/28/2009, 10:29   #2
 
Darkyy's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 396
Received Thanks: 473
Quote:
Originally Posted by Nizbel View Post
Hello,

This is my first time making anything close too a bot, so please be nice

I wanted to make a macro (for taos), that sits for 11 seconds, uses meditate, then cures 10 timeson a guard (pre-set coordinates). Everything works fine except for the part where I need to hold control.
This is my code so far:

;Script - Zachary Frenette - CoTao

msgbox, Sit F1 Medidate F2 (Cure As Skill)
WinGet, id, ID, [C
loop
{
Send {F1}
sleep 11000
Send {F2}
sleep 2000

loop 10
{
Send {Control Down}
Sleep 1000
ControlClick, x288 y343, ahk_id %id%,,right
}
Send {Control Up}
Sleep 1000
}

As you can see, very basic, but the Control Down part doesn't work. (I've also tried Ctrl Down.

Does anyone know how to fix this? It's this only thing left to fix.

Reply soon,

Thanks

Nizbel
Hey,
First I don't think that you can have 2 loops in 1 script. Corrent me if I'm wrong.
Second Send {Ctrl down} works only on the active screen. Doesn't work in background.

Hope I helped.
Darkyy
Darkyy is offline  
Old 06/28/2009, 11:40   #3
 
clintonselke's Avatar
 
elite*gold: 0
Join Date: Feb 2007
Posts: 348
Received Thanks: 2,175
ControlSend ?, I'm pretty sure i've seen someone using ControlSend instead of Send.. It would work just like ControlClick.
clintonselke is offline  
Old 06/28/2009, 15:38   #4
 
elite*gold: 0
Join Date: Mar 2006
Posts: 11
Received Thanks: 0
Well, the two nested loops seems to work fine - so I can assume that you can

As for the Control Down, what do you mean? - because I've tried have conquer up on my screen as the script runs, and holding down control myself, and it still doesn't work. (I still get the red message sayingm you need to press ctrl to attack a guard).

So, I don't know where I'm going wrong

This is what I have now (I tried a few different things)

;Script - Zachary Frenette - CoTao


If WinExist("[Conquer2.0]")
{
WinActivate ;Use the window found above.
msgbox, Sit F1 Medidate F2 (Cure As Skill)
WinGet, id, ID, [C
loop
{
Send {F1}
sleep 11000
Send {F2}
sleep 2000

loop 10
{
ControlSend, ahk_id %id%, {Control Down}
Sleep 1000
ControlClick, x409 y331, ahk_id %id%,,right
}
ControlSend, ahk_id %id%, {Control Up}
Sleep 1000
}
}

else
{
msgBox, 0, No Conquer Found, No Counqer Window Found
}
Nizbel is offline  
Old 06/28/2009, 22:18   #5
 
Darkyy's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 396
Received Thanks: 473
Last time I tried ControlSend it didn't work right.
Darkyy is offline  
Old 06/29/2009, 16:23   #6
 
elite*gold: 0
Join Date: Mar 2006
Posts: 11
Received Thanks: 0
Well,

I've tried both Send And ControlSend - And I can't seem to get them working with Ctrl Down in the conquer window.

Does anyone else have any ideas? I've played around with it a bit more, but I still can't seem to get that part working.

Any help would be appreciated,

Thanks

Zach
Nizbel is offline  
Old 07/06/2009, 22:01   #7
 
Evan Lim's Avatar
 
elite*gold: 20
Join Date: Oct 2008
Posts: 976
Received Thanks: 668
check if this works first
Code:
msgbox, Sit F1 Medidate F2 (Cure As Skill)

loop
{
Send {F1}
sleep 11000
Send {F2}
sleep 2000

loop 10
{
Send {Ctrl Down}
Sleep 1000
Click 288,343
}
Send {Ctrl Up}
Sleep 1000
}
Evan Lim is offline  
Old 07/06/2009, 23:19   #8
 
elite*gold: 0
Join Date: Mar 2009
Posts: 427
Received Thanks: 479
Quote:
Originally Posted by clintonselke View Post
ControlSend ?, I'm pretty sure i've seen someone using ControlSend instead of Send.. It would work just like ControlClick.
doesn't controlsend bring up the window anyway, so it still wouldn't be in the background . . .
ookamocka is offline  
Old 07/07/2009, 00:16   #9
 
elite*gold: 20
Join Date: Aug 2007
Posts: 1,749
Received Thanks: 2,199
Quote:
Originally Posted by ookamocka View Post
doesn't controlsend bring up the window anyway, so it still wouldn't be in the background . . .
Nope =D.
IAmHawtness is offline  
Old 07/07/2009, 00:24   #10
 
elite*gold: 0
Join Date: Sep 2007
Posts: 87
Received Thanks: 8
Try reading the manual and start with the basics I could give you the answer why it doesn't and how you should do it. The last time I did this the famous evanxx on the forum used my code to jump and use alot of other stuff to make bots. This backfired on me and caused tq to make click jail and some other security features. And I was using it for many years. g*d d**n So start again with the basic and build up from there. Good Luck
biertje! is offline  
Reply


Similar Threads Similar Threads
[Question] How can I bypass Autohotkey in IJJI's Gunz
05/30/2010 - General Coding - 0 Replies
I recently decided that PHP/HTML coding wasnt getting me where I wanted to be as far as being a coder goes. I feel like I fail at coding because i'm not a VBS/C++ coder, and PHP/HTML fails for hacking. I'm interesting in learning how to hack online games now and I am starting with simply trying to create a bypass for the game gunz to allow autohotkey program to work inside. I have CheatEngine knowledge and can hack any non protected game easily with it.. but when it comes to bypasses, my...
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
Autohotkey question
10/04/2007 - General Coding - 4 Replies
Ok here's my question... how do I script the following thing in autohotkey.. like first I want it to leftclick on a certain coordinate, then I want it to right-click 2 times on a certain coordinate, then I want it to left click again on a certain coordinate, and then right-click 2 times on a certain coordinate, until it has reached a full circle (or square, I dont care) and then let it loop again.... I hope I'm clear enough.



All times are GMT +1. The time now is 16:47.


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.