Timo196 Posted January 8, 2014 Posted January 8, 2014 I wanted to know how the mouse stops at mousemove 100 pixels before the pixel wanted.(as in the title) My script looks like this: HotKeySet ("{NUMPADMULT}", "Start") HotKeySet ("{NUMPADSUB}", "Pause") HotKeySet ("{Esc}", "_Exit") While 1 Sleep(10) WEnd Func Start() While 1 $pos = PixelSearch(1680,1050,0,0,15935534,10) If isArray($pos) then MouseMove($pos[0],$pos[1],2) EndIf WEnd EndFunc Func Pause() While 1 Sleep(10) WEnd EndFunc Func _Exit() Exit EndFunc It would be nice if someone could help me if it is possible. Sorry about my bad english.
Moderators JLogan3o13 Posted January 8, 2014 Moderators Posted January 8, 2014 You should be able to just add the distance on your MouseMove statement: MouseMove($pos[0] - 100, $pos[1] + 100, 2) I'm curious, though, what app you're trying to manipulate? There are tons of better methods than PixelSearch and MouseMove to control most apps. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
Timo196 Posted January 8, 2014 Author Posted January 8, 2014 Thanks for your quick response, and what other methods are there. (I'm trying to make some kind of aimbot, i'm just trying to use it at several third/first person shooter)
Bearpocalypse Posted January 9, 2014 Posted January 9, 2014 Thanks for your quick response, and what other methods are there. (I'm trying to make some kind of aimbot, i'm just trying to use it at several third/first person shooter) Sorry man, game automation or anything like that is a no-no here.
Moderators Melba23 Posted January 9, 2014 Moderators Posted January 9, 2014 Timo196,Bearpocalypse is quite right - please read the Forum rules (the link is also at bottom right of each page) - particularly the bit about not discussing game automation - before you post again. Thread locked. But welcome to the AutoIt forum - and see you soon with a legitimate question I hope. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Recommended Posts