[Question]VB6 - Coordinates

09/13/2008 19:39 purplehaze#1
So I got a question,
Im reading process memory for coordinates and i want to let it jump to another set of coordinates
where would i start with making a jump?
Is this possible to do without simulating clicks and having to have screen on top?
09/14/2008 02:25 Ian*#2
Quote:
Originally Posted by purplehaze View Post
So I got a question,
Im reading process memory for coordinates and i want to let it jump to another set of coordinates
where would i start with making a jump?
Is this possible to do without simulating clicks and having to have screen on top?
I'm not too sure what your trying to do. Are you trying to make a bot? Or make something have your character "Teleport" or something? If you're trying to jump to coords that are In-Game You'd need a proxy(Well, there are ways to do it without one but I 've got no idea).
Anyways, If you're just trying to have it click somewhere on your screen, It'd be the Top, and Left pixels, (I'm not sure if that's what they're called in C#, but that's what they're called in delphi) :X

EDIT: Vb6, not C# xD
09/14/2008 03:48 UPSman2#3
~~~where would i start with making a jump? ~~~
well personally i would start looking up on SendMessage (aka PostMessage)

~~~Is this possible to do without simulating clicks and having to have screen on top?~~~
yes and no... you'll be simulating clicks through PostMessage, but you don't need to have the window on top to do so.


as for jumping to and from the regular displayed x,y coordinate system displayed on conquer... well i tryed that once and gave up on that project because A) i couldn't find a way to convert screen x,y to CO x,y B) im to lazy to write out a table of screen x,y to CO x,y for about 170 different spots...but i do think it's possible
09/14/2008 05:08 clipper#4
When UPSman2 said as the clicks can be simulated with some work, and can be a good combination jump with PostMessage approximately and correct position with readings memory. If interested postee code for clicks in VB6 few days ago but I think due to better explain the code.
The Post is here: [Only registered and activated users can see links. Click Here To Register...] . If there is doubt try to resolve the best thing the google translator let me
09/14/2008 09:26 purplehaze#5
Quote:
Originally Posted by Force.Of.Spite View Post
I'm not too sure what your trying to do. Are you trying to make a bot? Or make something have your character "Teleport" or something? If you're trying to jump to coords that are In-Game You'd need a proxy(Well, there are ways to do it without one but I 've got no idea).
Anyways, If you're just trying to have it click somewhere on your screen, It'd be the Top, and Left pixels, (I'm not sure if that's what they're called in C#, but that's what they're called in delphi) :X

EDIT: Vb6, not C# xD
Thanks for your reply, what im trying to achieve is making a bot that will jump from 1 coordinate to another then scans memory for the specific monster and take the appropriate action -> left click monster or right click

Quote:
Originally Posted by UPSman2 View Post
~~~where would i start with making a jump? ~~~
well personally i would start looking up on SendMessage (aka PostMessage)

~~~Is this possible to do without simulating clicks and having to have screen on top?~~~
yes and no... you'll be simulating clicks through PostMessage, but you don't need to have the window on top to do so.


as for jumping to and from the regular displayed x,y coordinate system displayed on conquer... well i tryed that once and gave up on that project because A) i couldn't find a way to convert screen x,y to CO x,y B) im to lazy to write out a table of screen x,y to CO x,y for about 170 different spots...but i do think it's possible
I have tried PostMessage indeed, without succeed, it can find me " form" window if i specify that handle and click but if i tell him to click on the CO handle he aint clicking, now i know for sure this CO handle i gave him works because my speedhack works the same way. But for some reason its not clicking lol.
If i have to use screen coordinates it will be different for everyone (full screen / windowed), I dont want that i mean they give us the coordinates must be someway to use them :)

Quote:
Originally Posted by clipper View Post
When UPSman2 said as the clicks can be simulated with some work, and can be a good combination jump with PostMessage approximately and correct position with readings memory. If interested postee code for clicks in VB6 few days ago but I think due to better explain the code.
The Post is here: [Only registered and activated users can see links. Click Here To Register...] . If there is doubt try to resolve the best thing the google translator let me
Yes i looked at that, and those are the functions and all needed for PostMessage, but that doesnt do what I want to achieve

@ All
Thanks for the reply's
09/14/2008 10:33 Ian*#6
Quote:
Originally Posted by purplehaze View Post
Thanks for your reply, what im trying to achieve is making a bot that will jump from 1 coordinate to another then scans memory for the specific monster and take the appropriate action -> left click monster or right click



I have tried PostMessage indeed, without succeed, it can find me " form" window if i specify that handle and click but if i tell him to click on the CO handle he aint clicking, now i know for sure this CO handle i gave him works because my speedhack works the same way. But for some reason its not clicking lol.
If i have to use screen coordinates it will be different for everyone (full screen / windowed), I dont want that i mean they give us the coordinates must be someway to use them :)



Yes i looked at that, and those are the functions and all needed for PostMessage, but that doesnt do what I want to achieve

@ All
Thanks for the reply's

Why do you need to use Coords? How come you don't just have it only run from a range of a certain number? I wouldn't think you'd need it to actually scan the coords unless your making a bot that does something very advanced
09/14/2008 10:56 SWATZ#7
Is it possible using VB.NET to make a teleporter
09/14/2008 12:05 Ian*#8
Quote:
Originally Posted by SWATZ View Post
Is it possible using VB.NET to make a teleporter
Probably, but it'd be very hard.
09/14/2008 16:53 purplehaze#9
Quote:
Originally Posted by Force.Of.Spite View Post
Why do you need to use Coords? How come you don't just have it only run from a range of a certain number? I wouldn't think you'd need it to actually scan the coords unless your making a bot that does something very advanced
Well see the plan is to get the bot to be able to record jumps to specific coordinates and do appropriate actions, i want it to be as accurate as possible and not only working on my screen and settings i want to be able that it can be used by someone with absolutely no computer experience other then knowing how to turn ur computer on and off lol.
So it must be simple to use, no flaws or anything now back on topic by scanning for the coordinates and being able to jump to another set of coordinates it will be as accurate as possible and would be a very nice bot aswell.
PostMessage/SendMessage should work but they use screen coordinates what i want to achieve must all be done within the memory, if i knew how to simulate a jump within the memory and read the coordinates and know how to make it jump to another set of coordinates that would be exactly what i want :)
09/14/2008 23:38 UPSman2#10
well postmessage realy isnt screen coordinates, its more like screen coordinates relative to the top right corner of the specified program (works minimized), what you would probably want to do is find the center of the CO screen and make a proportionate table of CO coords to relative screen coords... but manipulating memory would probably work better
09/15/2008 00:10 Some-Guy#11
Hook the client and call the CO jump function directly, causing co to generate and send the packet itself without a proxy....just don't ask me how the hell to do it xD
11/27/2008 14:25 SpanKyn#12
Sorry for Necro, but I got my VB6 bot to move to a certain co-ordinate.
Right now I'm working on reading/writing process memory for autotraining (attackings npcs). Anyone working on this as well?
11/28/2008 02:11 ChingChong23#13
Monitor the Coords in memory, use PostMessage to simulate the click, lets say your target is 215 280 and your currently on 200 250.

you'd have a variable with the X and Y, then you'd do calculations to where abouts your gonna wanna click, lets say your X is on 200 and target is 215,

Say moving to the right in Conquer will increase your coords, youd figure out the amount of pixels between the center of the screen, across to what would jump you 1 coordinate (lets say 10)

So you need to PostMessage (10) pixels across, and do this 15 times (would make 15 jumps of 1 coord each, now youd wanna split this into something like 4 + 4 + 4 + 3 coords instead of jumping little ones.

Same thing you do with Y etc, i tried to explain it as well as i can.