Evil_Has_Survived Posted April 14, 2006 Share Posted April 14, 2006 I was wondering if there is any way to do this, ok say something is moving it will do this If ProcessExists("myprogram") Then ToolTip("myprogram is running", 0, 0) ;ok say this is my program -----> :robot: (and it moves all the way here) ------------------------------>:robot: find movement If movement EndIfDim $output = "", $first = "" While 1 ToolTip( MouseGetPos(0) & "-" & MouseGetPos(1)) Sleep( 10) WEnd Func getpos() $output &= MouseGetPos(0) & ',' & MouseGetPos(1) & ',' If $first = "" Then $first = $output EndIf EndFunc ;finds the position of it then it clicks it Func quit() $output &= $first ClipPut( '"' & StringTrimRight($output, 1) & '"') Exit EndFunc If not WinExists Wend Example so if something moves it will find the position of it and then, mousemove .... mouseclick i need this because in my program this thing always moves and I need to follow it, and no it's not a aimbot althoguh it used like one some if you have aim bot that can follow stuff that will work to, thanks Thanks in advance Link to comment Share on other sites More sharing options...
Evil_Has_Survived Posted April 14, 2006 Author Share Posted April 14, 2006 I was wondering if there is any way to do this, ok say something is moving it will do this If ProcessExists("myprogram") Then ToolTip("myprogram is running", 0, 0) ;ok say this is my program -----> :robot: (and it moves all the way here) ------------------------------>:robot: find movement If movement EndIfDim $output = "", $first = "" While 1 ToolTip( MouseGetPos(0) & "-" & MouseGetPos(1)) Sleep( 10) WEnd Func getpos() $output &= MouseGetPos(0) & ',' & MouseGetPos(1) & ',' If $first = "" Then $first = $output EndIf EndFunc ;finds the position of it then it clicks it Func quit() $output &= $first ClipPut( '"' & StringTrimRight($output, 1) & '"') Exit EndFunc If not WinExists Wend Example so if something moves it will find the position of it and then, mousemove .... mouseclick i need this because in my program this thing always moves and I need to follow it, and no it's not a aimbot althoguh it used like one some if you have aim bot that can follow stuff that will work to, thanks anybody please Thanks in advance Link to comment Share on other sites More sharing options...
greenmachine Posted April 14, 2006 Share Posted April 14, 2006 That doesn't look like much of an effort. That looks like pseudocode (a good start, but not a true effort), a while loop that shows your mouse coords, and a bunch of other useless junk. Try something yourself, post that code, and maybe you'll get some help. Link to comment Share on other sites More sharing options...
cppman Posted April 14, 2006 Share Posted April 14, 2006 (edited) $Pos = ControlGetPos ( "title", "text", controlID ) MouseClick ("left" , $Pos[0], $Pos[1], 1, 10) Is that what your looking for? WinGetPos()? Im not too sure what ur asking Edited April 14, 2006 by CHRIS95219 Miva OS Project Link to comment Share on other sites More sharing options...
Evil_Has_Survived Posted April 14, 2006 Author Share Posted April 14, 2006 $Pos = ControlGetPos ( "title", "text", controlID ) MouseClick ("left" , $Pos[0], $Pos[1], 1, 10) Is that what your looking for? WinGetPos()? Im not too sure what ur askingI need something that acts like aimbot I guess that would be the best way of explaing, well you see my program has a mover so, when I open up my program it is in a random spot, so I need something that can keep track of the thing moving, I thoguht about pixel finding, but that will only find the one, and I don't want to have a code with 60 pixel commands, so I need something that looks for a moving object with in my program. If you have a aimbot Im sure I could edit that to my liking's, but no one is going to post one even if they did, a aim bot can get in the wrong hands, but good for learning uses. Thanks in advance Link to comment Share on other sites More sharing options...
Evil_Has_Survived Posted April 14, 2006 Author Share Posted April 14, 2006 That doesn't look like much of an effort. That looks like pseudocode (a good start, but not a true effort), a while loop that shows your mouse coords, and a bunch of other useless junk. Try something yourself, post that code, and maybe you'll get some help.im not good with the pixels yet, but give a man a script, he'll code and edit one to make it better, teach a man to script well... I guess I wouldn't be here lol same with most of you Thanks in advance Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now