eracross Posted September 26, 2010 Share Posted September 26, 2010 Im new jst started and i have a few questions about making a crosshair. I found this script on the forum seems working but when you click accidentally on the crosshair image it back in the script not more in the game. can you help me how to solve this, like make it non clickable or something... here the script by newbiescripter #include <WindowsConstants.au3> $x = @DesktopWidth/2 - 68/2 $y = @DesktopHeight/2 - 68/2 GUICreate("", 68, 68, $x, $y, $WS_POPUP, BitOR($WS_EX_LAYERED, $WS_EX_TOOLWINDOW, $WS_EX_TOPMOST)) GUICtrlCreatePic("crosshair.gif",0,0,68,68) GUISetState() While 1 Sleep(25) WEnd Link to comment Share on other sites More sharing options...
JohnOne Posted September 26, 2010 Share Posted September 26, 2010 What game would that be? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
eracross Posted September 26, 2010 Author Share Posted September 26, 2010 Erhm Crossfire..when it goes to the script u need to click on the game again Link to comment Share on other sites More sharing options...
JohnOne Posted September 26, 2010 Share Posted September 26, 2010 Is that the same one which says "We do not tolerate any kind of cheating or hacking" in its terms? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Mat Posted September 26, 2010 Share Posted September 26, 2010 Is that the same one which says "We do not tolerate any kind of cheating or hacking" in its terms?Putting a crosshair is none of the above I should point out but I see where this is going.What exactly will the crosshair do eracross? AutoIt Project Listing Link to comment Share on other sites More sharing options...
eracross Posted September 26, 2010 Author Share Posted September 26, 2010 (edited) its jst a image in the middle of the screen is not cheating or hack @mat make it non clickable but always on the top jst like when u do it with GraphicsDrawLine. Edited September 26, 2010 by eracross Link to comment Share on other sites More sharing options...
JohnOne Posted September 26, 2010 Share Posted September 26, 2010 Maybe you should look at the GDI+ functions, they can draw on the screen without using a GUI. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
JohnOne Posted September 26, 2010 Share Posted September 26, 2010 Putting a crosshair is none of the above I should point out but I see where this is going.What exactly will the crosshair do eracross?And I should point out that I didnt suggest the OP was cheating Merely asking if it were the same one AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
czardas Posted September 26, 2010 Share Posted September 26, 2010 (edited) As you are new here, you may not be aware of the issues connected with game automation and the policy regarding such on these forums. Even if you have legitimate purposes for your script, you will find that such topics will quickly be locked by a moderator. You should make sure you read the following announcement Game Bots and Automation.Cross hairs are normally associated with some kind of game, at least in the virtual world. So this topic is likely to be scrutinized for that reason. I suggest you search the forum for other similar topics, so that you will understand both the forum's policy on this matter and the consequences of asking about game automation.Having said that, welcome to the forum and, please familiarize yourself with the forum rules. Edited September 27, 2010 by czardas operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
xPloit Posted September 27, 2010 Share Posted September 27, 2010 to make it non-clickable, do something like this: GUICtrlSetState($Var,$GUI_DISABLE) That will grey it out, making it impossible to click/edit 00101101011110000101000001101100011011110110100101110100 Link to comment Share on other sites More sharing options...
JohnOne Posted September 27, 2010 Share Posted September 27, 2010 Its probably because the game window becomes active or something like that. I dont know how layered windows are supposed to act when they are not active. I realize its topmost but dosent mean its active. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Ascend4nt Posted September 27, 2010 Share Posted September 27, 2010 I would think the game would overwrite the crosshair since most games use some directX/openGL drawing. That's been my experience. Check out the Crosshairs UDF in my signature.. you'll probably get the same results. My contributions: Performance Counters in Windows - Measure CPU, Disk, Network etc Performance | Network Interface Info, Statistics, and Traffic | CPU Multi-Processor Usage w/o Performance Counters | Disk and Device Read/Write Statistics | Atom Table Functions | Process, Thread, & DLL Functions UDFs | Process CPU Usage Trackers | PE File Overlay Extraction | A3X Script Extract | File + Process Imports/Exports Information | Windows Desktop Dimmer Shade | Spotlight + Focus GUI - Highlight and Dim for Eyestrain Relief | CrossHairs (FullScreen) | Rubber-Band Boxes using GUI's (_GUIBox) | GUI Fun! | IE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) | Magnifier (Vista+) Functions UDF | _DLLStructDisplay (Debug!) | _EnumChildWindows (controls etc) | _FileFindEx | _ClipGetHTML | _ClipPutHTML + ClipPutHyperlink | _FileGetShortcutEx | _FilePropertiesDialog | I/O Port Functions | File(s) Drag & Drop | _RunWithReducedPrivileges | _ShellExecuteWithReducedPrivileges | _WinAPI_GetSystemInfo | dotNETGetVersions | Drive(s) Power Status | _WinGetDesktopHandle | _StringParseParameters | Screensaver, Sleep, Desktop Lock Disable | Full-Screen Crash Recovery Wrappers/Modifications of others' contributions: _DOSWildcardsToPCRegEx (original code: RobSaunder's) | WinGetAltTabWinList (original: Authenticity) UDF's added support/programming to: _ExplorerWinGetSelectedItems | MIDIEx UDF (original code: eynstyne) (All personal code/wrappers centrally located at Ascend4nt's AutoIT Code) Link to comment Share on other sites More sharing options...
eracross Posted September 27, 2010 Author Share Posted September 27, 2010 thx to all i found the solution $WS_EX_TRANSPARENT 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