FinalVersion Posted April 23, 2009 Share Posted April 23, 2009 Program lets you draw a square and returns left. top, right, bottom thanks. [center][+] Steam GUI [+][+] Clipboard Tool [+][+] System :: Uptime [+][+] StarCraft II Mouse Trap [+][/center] Link to comment Share on other sites More sharing options...
AlmarM Posted April 23, 2009 Share Posted April 23, 2009 You mean a program that lets you draw a region on the screen? AlmarM Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
FinalVersion Posted April 23, 2009 Author Share Posted April 23, 2009 You mean a program that lets you draw a region on the screen?AlmarMBasically what I said. [center][+] Steam GUI [+][+] Clipboard Tool [+][+] System :: Uptime [+][+] StarCraft II Mouse Trap [+][/center] Link to comment Share on other sites More sharing options...
MrMitchell Posted April 23, 2009 Share Posted April 23, 2009 Program lets you draw a square and returns left. top, right, bottom thanks.What do you mean by "returns left, top, right, bottom?" Link to comment Share on other sites More sharing options...
AlmarM Posted April 23, 2009 Share Posted April 23, 2009 I did some searches and found these 2 links:http://www.autoitscript.com/forum/index.ph...;hl=Draw+Region#70464Hope I helped you!AlmarM Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
MrMitchell Posted April 23, 2009 Share Posted April 23, 2009 Here's a third...all the way toward bottom of page 1. http://www.autoitscript.com/forum/index.ph...mp;#entry171240 Link to comment Share on other sites More sharing options...
FinalVersion Posted April 23, 2009 Author Share Posted April 23, 2009 Thank you, but The first 2 don't return the top bottom left right, and the 3rd doesn't even work >.< And by return left right top bottom, its for using pixel search. So i draw a region, then it will give me the top bottom left right coords. [center][+] Steam GUI [+][+] Clipboard Tool [+][+] System :: Uptime [+][+] StarCraft II Mouse Trap [+][/center] Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted April 23, 2009 Moderators Share Posted April 23, 2009 Godly, Take a look at this crosshairs UDF. It both draws lines on the screen and gets mouse coords on a click. I realise it is long way from what you are looking for, but it could very well offer you some very good pointers on how to get there. 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...
DrKovra Posted April 23, 2009 Share Posted April 23, 2009 Try this .... and watch the console output of SciTE ... btw ... if you like minimize SciTE and play around the desktop .... the check console output .... ... OLD SCHOOL PROG-STYLE ! ... hope it's what you're looking for ... expandcollapse popup#Include <Misc.au3> $dll = DllOpen("user32.dll") Opt("OnExitFunc", "endscript") HotKeySet("{ESC}", "endscript") Global $X0,$Y0,$X1,$Y1,$DOWN,$UP,$pos,$FIRST $DOWN=False $UP=False $FIRST=False $X0=-1 $Y0=-1 $X1=$X0 $Y1=$Y0 While 1 Sleep ( 250 ) _BoxMouse() ;YOUR CODE HERE !!!! ; WEnd Exit Func _BoxMouse() $DOWN=False If _IsPressed("01", $dll) Then $DOWN=True If $FIRST=False Then $pos = MouseGetPos() $X0=$pos[0] $Y0=$pos[1] $FIRST=True ;FIRST TIME MOUSE BUTTON COMES DOWN (LEFT CLICK)!!!! EndIf ElseIf $FIRST=True Then If $DOWN=False Then $UP=True $pos = MouseGetPos() $X1=$pos[0] $Y1=$pos[1] ConsoleWrite("Mouse x0,y0:" & $X0 & "," & $Y0 & " x1,y1:" & $X1 & "," & $Y1 & @CRLF) ;MOUSE COMES FROM DOWN STATE TO UP STATE !!!! ; ********************* ;~ ASSIGN HERE THE VALUES OF X0,Y0 AND X1,Y1 BEFORE RESETING THEM !!!! ;********************** ;RESET VALUE ... $DOWN=False $UP=False $FIRST=False $X0=-1 $Y0=-1 $X1=$X0 $Y1=$Y0 Else $UP=False EndIf EndIf EndFunc Func endscript() DllClose($dll) ConsoleWrite("APP closed OK!" & @CRLF) Exit EndFunc [s][font="Impact"]░▒▓▓►DrKovra◄▓▓▒░[/font][/s]The only thing I [sup]know [/sup]is that I don't know [sub]nothing[/sub]--------------- __________------------------------------ __________--------------- Link to comment Share on other sites More sharing options...
FinalVersion Posted April 23, 2009 Author Share Posted April 23, 2009 Try this .... and watch the console output of SciTE ... btw ... if you like minimize SciTE and play around the desktop .... the check console output .... ... OLD SCHOOL PROG-STYLE ! ... hope it's what you're looking for ... expandcollapse popup#Include <Misc.au3> $dll = DllOpen("user32.dll") Opt("OnExitFunc", "endscript") HotKeySet("{ESC}", "endscript") Global $X0,$Y0,$X1,$Y1,$DOWN,$UP,$pos,$FIRST $DOWN=False $UP=False $FIRST=False $X0=-1 $Y0=-1 $X1=$X0 $Y1=$Y0 While 1 Sleep ( 250 ) _BoxMouse() ;YOUR CODE HERE !!!! ; WEnd Exit Func _BoxMouse() $DOWN=False If _IsPressed("01", $dll) Then $DOWN=True If $FIRST=False Then $pos = MouseGetPos() $X0=$pos[0] $Y0=$pos[1] $FIRST=True ;FIRST TIME MOUSE BUTTON COMES DOWN (LEFT CLICK)!!!! EndIf ElseIf $FIRST=True Then If $DOWN=False Then $UP=True $pos = MouseGetPos() $X1=$pos[0] $Y1=$pos[1] ConsoleWrite("Mouse x0,y0:" & $X0 & "," & $Y0 & " x1,y1:" & $X1 & "," & $Y1 & @CRLF) ;MOUSE COMES FROM DOWN STATE TO UP STATE !!!! ; ********************* ;~ ASSIGN HERE THE VALUES OF X0,Y0 AND X1,Y1 BEFORE RESETING THEM !!!! ;********************** ;RESET VALUE ... $DOWN=False $UP=False $FIRST=False $X0=-1 $Y0=-1 $X1=$X0 $Y1=$Y0 Else $UP=False EndIf EndIf EndFunc Func endscript() DllClose($dll) ConsoleWrite("APP closed OK!" & @CRLF) Exit EndFuncExactly what I'm looking for thanks! [center][+] Steam GUI [+][+] Clipboard Tool [+][+] System :: Uptime [+][+] StarCraft II Mouse Trap [+][/center] Link to comment Share on other sites More sharing options...
Valuater Posted April 23, 2009 Share Posted April 23, 2009 Game-Bot Builder8) 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