Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2
You last visited: Today at 07:47

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

Advertisement



AutoHotKey help (ControlClick)

Discussion on AutoHotKey help (ControlClick) within the Conquer Online 2 forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2006
Posts: 152
Received Thanks: 254
AutoHotKey help (ControlClick)

Hi there, I'm working on a background macro for skills (all skills), but I'm having a problem when trying to make it work for SH or healing spells.
The problem is with this: ControlClick, x300 y230,ahk_id %id%,,left,2,d
This should double click in the 300,230 coords (horse slot) to unequip it. It sends the left click (if I close the equip window will start walking in that direction) but it doesn't sends double click for unequip.
Here is the code I've done so far for skills (the code still continues with a few other functions, but they are not related to my problem):

Code:
start:
{
WinGet,id, ID, %winname%
Loop
  {
  if run = 0
    {
    break
    }
    else
    {
    If skillstate = 1
      {
      If sshstate = 1
      {
      settimer, hr, %time2%
      hr:
      Click 300, 230, 2
      sleep 750
      ControlClick, x800 y50,ahk_id %id%,,right,3,na
      sleep 750
      {
      settimer, autoskill, %time2%
      {
      settimer, skill, 1000
      {
      settimer, sit, 1000
      {
      settimer, med, %time2%
      return
      }
      return
      }
      return
      }
      return
      }
      }
      else
      {
      settimer, autoskill, %TIME2%
      autoskill:
      ControlClick, x512 y384,ahk_id %id%,,right,,na
      {
      settimer, skill, 1000
      skill:
      ControlClick, x110 y760,ahk_id %id%,,right,,na
      {
      settimer, med, 3000
      med:
      ControlClick, x150 y760,ahk_id %id%,,right,,na
      {
      settimer, sit, 1000
      sit:
      ControlClick, x190 y760,ahk_id %id%,,right,,na
      return
      }
      return
      }
      return
      }
      }
      }
So anyone has any ideas how to make it double-ControlClick left to unequip the horse?
psiho is offline  
Old 12/11/2009, 23:01   #2
 
mido2008's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 308
Received Thanks: 61
ControlClick can only be used in graphics area (like the maps,items' icons),But buttons and dialogs are not graphics;So the ControlClick wont work to double click the horse in the dialog.
To solve this:
Make the bot doesn't work in the background,OR you can put a horse which have less HP in F1,F2,F3,... slot and use the ControlClick to click in this slot (you will need 2 horses to do this or you will have to remove the function which checks the ammount of items in the solt)
mido2008 is offline  
Thanks
1 User
Old 12/12/2009, 01:14   #3
 
elite*gold: 0
Join Date: Jul 2006
Posts: 152
Received Thanks: 254
Quote:
Originally Posted by mido2008 View Post
ControlClick can only be used in graphics area (like the maps,items' icons),But buttons and dialogs are not graphics;So the ControlClick wont work to double click the horse in the dialog.
To solve this:
Make the bot doesn't work in the background,OR you can put a horse which have less HP in F1,F2,F3,... slot and use the ControlClick to click in this slot (you will need 2 horses to do this or you will have to remove the function which checks the ammount of items in the solt)
I see... guess I'll use the 2 horse method (I really want to make it background)
Thanks for your reply
psiho is offline  
Reply


Similar Threads Similar Threads
controlclick?
04/15/2010 - AutoIt - 9 Replies
mal ne frage irgendwie bekomme ich keinen controlclick hin ControlClick ("METIN2","", ]]]) was da falsch?
Saufbot (ControlClick)
03/24/2009 - GW Bots - 8 Replies
Hallo an alle, wollte mir einen ganz simplen Saufbot schreiben, jedoch mache ich irgendwas falsch. Nachdem ich die exe erstellt habe, startet der Bot kurz und schließt sich nach ein paar Sekunden wieder. Hier mal der Code func trinken() WinActivate("Guild Wars") sleep(5000) Do
memory und controlclick xD
02/14/2009 - GW Bots - 3 Replies
guten morgen, ich bin gerade dabei meinen bot mit memoryreads auszustattetn, nachdem er nun ne ftp versions abfrage hat sowie über regestrie und gui gesteuert wird. vornerein weg, ich lehne es so ziemlich ab, die tt6 zu benutzen, da ich nicht den vollen umfang verstehe und es net von mir ist ;) das auslesen der werte hab ich soweit, Global $mem_gw = WinGetProcess($gw) Global $mem_id = _MemoryOpen($mem_gw)
ControlClick
01/10/2009 - GW Bots - 47 Replies
Hi Leute, Also, ich wollte mal einen Bot schreiben der im Hintergrund läuft, sodass ich nebenbei auf einem anderen Account spielen kann. Nun habe ich folgendes Problem: Die Idee war folgende: ich wollte den Bot ganz einfach alle Taschen des Inventars öffnen lassen und ihn dann per ControlClick wieder schließen lassen. Dies soll für mich erstmal eine Art Übung sein, um später eine Sellfunc. drauß zu machen. Nun ist meine Frage.. Wieso passiert da nichts? Er öffnet nur das Inventar,...
Probleme mit ControlClick
01/01/2009 - Guild Wars - 7 Replies
HeyHo, Neues Jahr = Neue Probleme :) Also schreib grade einen Bot fuer GW. Er macht grade auch alles richtig bis auf eins: Er klickt nicht auf den Zurueck zum aussenposten button. ControlClick("Guild Wars","","","left&qu ot;,1,x,y)



All times are GMT +1. The time now is 07:51.


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.