6105 Posted February 5, 2010 Share Posted February 5, 2010 hello, i want to do game in autoitscreept, and have some problem in gui, how i can do lines in every 10x10 pixels?like this:lines i drowed in paint, can somebody help me do drow it in auto it? [center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Don't utter a single word[/font][/center][center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Just shut your pretty mouth[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you again[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you[/font][/center][center][font=courier new,courier,monospace]In hell[/font][/center] Link to comment Share on other sites More sharing options...
GEOSoft Posted February 5, 2010 Share Posted February 5, 2010 http://dundats.mvps.org/autoit/udf_code.aspx?udf=dialog _GUI_Line_H() _GUI_Line_V() Or depending on the game board _GUI_CreateImageRect() _GUI_CreateRect() Someplace in these forums I posted an example of using wood grain images to build a chess board and I think I used _GUI_CreateImageRect() to do that one. You can also search the Example scripts for GUI+grid. Someone posted that 2 or 3 years back. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
Zedna Posted February 5, 2010 Share Posted February 5, 2010 You can use _WinAPI_DrawLine() from standard WinAPI include which uses Win32 API functions MoveToEx,LineTo You must place it's calling into WM_PAINT. You may look at my Radar project how to do it, link is in my signature. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
6105 Posted February 5, 2010 Author Share Posted February 5, 2010 Thank you GeoSoft, now its what i want [center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Don't utter a single word[/font][/center][center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Just shut your pretty mouth[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you again[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you[/font][/center][center][font=courier new,courier,monospace]In hell[/font][/center] Link to comment Share on other sites More sharing options...
GEOSoft Posted February 5, 2010 Share Posted February 5, 2010 No problem but the code you're showing is not mine. It's probably a modified version of the one suggested by Zedna. If it uses GDI+ it won't be mine for sure. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" 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