TRK Posted June 21, 2010 Share Posted June 21, 2010 Hello everyone, I'm new to the Autoit community. Im messing around with autoit for the first time and have caught on pretty fast. Im working on one of those PixelSearch scripts and It works wonderfully except that in the game that I am playing you can hit ESC and interact with the interface with a cursor, if you hit ESC again, you are now in FPS mode with a cross hair. When I run my script when the interface is active, the cursor runs into what I want it to run into, it does exactly what I want it to do, but in FPS mode it justs runs all over the damn place. Now I understand the difficulty of making autoit interact with a game, it obviously wasnt designed for it specifically, I am wondering if there is a way around it. What I was thinking was a way to make my desktop cursor "Always On Top" and rubberbands back to the center of the screen after a timeout or something. Basically I want the cursor always at the center of my crosshairs. So the questions are 1. How can I get my cursor to be ontop of a fullscreen, or even windowed game? 2. Would that make a difference? Here is my code WITHOUT any cursor modifications. (By the way, I have edited the DTX files in the game folder so that heads are red.) expandcollapse popup#include <Misc.au3> Global $Headshot = 0 Global $Color Global $ON = False Hotkeyset ("{F1}", "_Start") Hotkeyset ("{F2}", "_Pause") HotKeySet ("{F3}", "_Color") HotKeySet ("{F4}", "_Exit") Func _Start() $Headshot = 1 sleep (1000) Tooltip ("Aimbot ENABLED") While 1 If $Headshot = 1 then $coord = PixelSearch(0, 0, 1400, 1050, $Color) If IsArray($coord) = 1 Then MouseMove($coord[0], $coord[1], 0) EndIf EndIf Wend EndFunc Func _Color() Tooltip ("Aimbot COLOR CHOOSER") $color = _ChooseColor (2, 0xFF0000, 2, "") EndFunc While 1 Sleep(1000) Wend Func _pause() Tooltip ("Aimbot DISABLED") While(1) Sleep(1000) WEnd EndFunc Func _exit() Exit EndFunc Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 21, 2010 Moderators Share Posted June 21, 2010 TRK,Have you read the announcement at the top of the forum? If not, you can see what it says here.The majority of forum members do not knowingly support game bots, so do not expect too much help. 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 Link to comment Share on other sites More sharing options...
TRK Posted June 21, 2010 Author Share Posted June 21, 2010 Instead of helping me with my "bot", perhaps you could just give me a tip. I'm trying to use _MouseTrap to lock my pointer in the center of my screen for experimenting. How would the _Mousetrap code look with the coords in it? 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