Hi all, I am having trouble creating a GUI with AutoHotKey.
What I am trying to do is make a simple GUI that says Enter Player Coordinates and it has 2 spots to put the x and the y coordinates of the player. Then I would like to use the entered coordinates and translate them into the position that I want to click on the cowindow, which depends on the initial position entered. I haven't figured out how to convert the coordinates in order for the bot to click at the right spot given the initial coordinates but I have recorded the position on the screen I want to click based on my chars position. Hope This isn't too confusing but here is what I mean:
I tried to figure out how much does the cowindow position changes to where i wana click based on teh change in x and the change in y of the character position relatively. I think i have it figured out up in the code there but I don't know how to make up a formula for it and incorporate into a GUI that will then click on the spot I want. ANy help will be greatly appreciated.
What I am trying to do is make a simple GUI that says Enter Player Coordinates and it has 2 spots to put the x and the y coordinates of the player. Then I would like to use the entered coordinates and translate them into the position that I want to click on the cowindow, which depends on the initial position entered. I haven't figured out how to convert the coordinates in order for the bot to click at the right spot given the initial coordinates but I have recorded the position on the screen I want to click based on my chars position. Hope This isn't too confusing but here is what I mean:
Code:
pos1: ConquerChar-360 , 313 COWindow - 163 , 215 pos2: ConquerChar-351 , 313 COWindow - 456 , 358 pos3: ConquerChar-360 , 323 COWindow - 490 , 054 per cox = windowx-32 windowy-16 per coy = windowx-32 windowy-16