Register for your free account! | Forgot your password?

You last visited: Today at 19:34

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

Advertisement



AHK Problem

Discussion on AHK Problem within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2005
Posts: 23
Received Thanks: 2
AHK Problem

Hi, I've searched all over and could not find a solution to my problem, maybe one of you geniuses can help me out.

I'm trying to do background clickbot that basically 7 clicks in the background and repeats. I figured out how to make it click in the background with ControlClick and WinGet commands.

I can get it to click anyqhere on the Conquer screen in the background, got it to drop items, click on npcs, but the thing I'm confused about is why I cannot get it to click on the dialogue box of an npc and answer the npc.

It is as if the macro is trying to click below the dialogue box but is unable do and does nothing. I used Window Spy with the AHK(AutoHotKey) and looked at the class of the Conquer window and the dialogue box.

What I found out was that the dialogue box was #327704 and the Conquer window was #327701. I then tried adding ahk_class #327704 to where the ahk_id %id% goes, but that resulted in the Macro not clicking at all.

Can anyone clarify this matter for me? Any help is greately appreciated.
1111111111 is offline  
Old 01/14/2009, 20:20   #2
 
elite*gold: 0
Join Date: Jan 2006
Posts: 167
Received Thanks: 57
Is it clicking, but just not in the right spot, or is it not clicking at all? I found that sometimes you have to apply an offset for the top bar size (i.e. the Close X button is at (1010, -10)).

Typically for NPC dialog boxes, I just use coordinates of the dialog answers and don't mess with the classes. I also have not used ControlClick, just MouseClick - there might be some differences.
Ulfius is offline  
Old 01/15/2009, 08:13   #3
 
elite*gold: 0
Join Date: Oct 2005
Posts: 23
Received Thanks: 2
Quote:
Originally Posted by Ulfius View Post
Is it clicking, but just not in the right spot, or is it not clicking at all? I found that sometimes you have to apply an offset for the top bar size (i.e. the Close X button is at (1010, -10)).

Typically for NPC dialog boxes, I just use coordinates of the dialog answers and don't mess with the classes. I also have not used ControlClick, just MouseClick - there might be some differences.
I believe its clicking because it makes me walk if the dialogue box is not there, also i believe the coordinates are correct because i used:
WinActivate, ahk_id %COid%
Send, {Click 315, 115}
sleep 1500
and it cliked on the answer where i wanted it to click but when i used:
ControlClick, x315 y115,ahk_id %COid% ,,left
sleep, 1500

it would do nothing when the dialogue box was open =/

thanks for your input. Any other help would be appreciated.
1111111111 is offline  
Old 01/18/2009, 16:59   #4
 
Evan Lim's Avatar
 
elite*gold: 20
Join Date: Oct 2008
Posts: 976
Received Thanks: 668
1111111111@
i have no idea how to solve this
probably the best bet is to use winspy to get the classNN
Evan Lim is offline  
Reply


Similar Threads Similar Threads
Metin 2 Pserver Problem/ Lösung für das Matrix Kartennummer Problem
01/04/2010 - Metin2 Private Server - 3 Replies
Hy Leute Wie in der Überschrift genannt, hab ich gerade ein Problem mit meinem Metin 2Server. Ich lasse ihn via Loopbackadapter laufen, funktioniert auch ganz gut. Ich hab aber jetzt das Poblem, das in meinem Account nur noch Krieger mit Level null stehen. Wie kann ich das Beheben??, das is auch manchmal da, wenn ich via Navicat n neuen Account mach. Hoffe einer hatt ne Lösung Hab n Screenshot im Anhang Aber ich hab ja auch ne Lösung für n anderes Problem. Gestern hatte ich beim...
[Problem] Problem with server starting - cannot find quest index for PaxHeader
12/22/2009 - Metin2 Private Server - 1 Replies
Hello! I have this same problem as here when i'm starting my server: http://www.elitepvpers.com/forum/metin2-pserver-di scussions-questions/307143-metin2-serverfiles-ques t-index-fehler.html But I didn't know the answer.. how to repair this? Greetings



All times are GMT +1. The time now is 19:34.


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.