xroot Posted August 19, 2008 Share Posted August 19, 2008 The American Flag or Old Glory by Oren Leavitt is way to cool. Written in C++ I wanted to put it in AU3 and finally got around to it. Very interesting calculations on drawing the stars. Press Esc key to quit. Do check it out see what you think, and always have fun.AFlag.zip Link to comment Share on other sites More sharing options...
Toady Posted August 19, 2008 Share Posted August 19, 2008 Thats pretty cool, nice work! www.itoady.com A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding Link to comment Share on other sites More sharing options...
Andreik Posted August 19, 2008 Share Posted August 19, 2008 The American Flag or Old Glory by Oren Leavitt is way to cool.Written in C++ I wanted to put it in AU3 and finally got around to it.Very interesting calculations on drawing the stars. Press Esc key to quit. Do check it out see what you think, and always have fun.So nice with so many calculations. When the words fail... music speaks. Link to comment Share on other sites More sharing options...
spudw2k Posted August 19, 2008 Share Posted August 19, 2008 Very nice. I haven't done too much with GDI so I may learn from this. Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
gseller Posted August 20, 2008 Share Posted August 20, 2008 Way Cool! Thanks Link to comment Share on other sites More sharing options...
GtaSpider Posted August 20, 2008 Share Posted August 20, 2008 (edited) Hi Wow, many calcs Here is one shorter version wich showing the german flag. Easy contrary to US Flag, isnt it? #include<GDIPlus.au3> $hWnd = GUICreate("Flag", @DesktopWidth, @DesktopHeight, 0, -2, 0x80000000,0x08);Popup,topmost _GDIPlus_Startup() $hPen = False GUISetState() $hGraph = _GDIPlus_GraphicsCreateFromHWND($hWnd) For $i = 1 To @DesktopHeight If $i <= @DesktopHeight / 3 Then If Not $hPen Then $hPen = _GDIPlus_PenCreate(0xff000000) _GDIPlus_GraphicsDrawLine($hGraph, 0, $i, @DesktopWidth, $i, $hPen) If $i = @DesktopHeight / 3 Then $hPen = Not _GDIPlus_PenDispose($hPen) ElseIf $i <= (@DesktopHeight / 3) * 2 Then If Not $hPen Then $hPen = _GDIPlus_PenCreate(0xffff0000) _GDIPlus_GraphicsDrawLine($hGraph, 0, $i, @DesktopWidth, $i,$hPen) If $i = @DesktopHeight / 3 * 2 Then $hPen = Not _GDIPlus_PenDispose($hPen) ElseIf $i <= (@DesktopHeight / 3) * 3 Then If Not $hPen Then $hPen = _GDIPlus_PenCreate(0xffffff00) _GDIPlus_GraphicsDrawLine($hGraph, 0, $i, @DesktopWidth, $i,$hPen) EndIf Next While 1 If GUIGetMsg() = -3 Then Exit _GDIPlus_GraphicsDispose($hGraph) WEnd For sure you can also use _GDIPlus_GraphicsDrwaRect, but this is too easy^^ Edited August 20, 2008 by GtaSpider www.AutoIt.de - Moderator of the German AutoIt Forum 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