AU3Newbie Posted January 21, 2007 Share Posted January 21, 2007 Is there any examples about draw lines onto the current window? I think a lot ,but cannot write it completely.. WinGetHandle("") DllCall("gdi32.dll","int","MoveToEx" DllCall("gdi32.dll","int","LineTo" Link to comment Share on other sites More sharing options...
AU3Newbie Posted January 21, 2007 Author Share Posted January 21, 2007 what's wrong with my code? Global $gdi_dll = DllOpen ("gdi32.dll"), $user32_dll = DllOpen ("user32.dll") $hwnd=WinGetHandle("C:") DllCall ($user32_dll,"int","GetDC","hwnd", $hwnd) $BlackPen =DllCall ($gdi_dll, "hwnd", "CreatePen", "int", "0", "int", "3", "hwnd", "0x00000000"); large black pen DllCall ($gdi_dll, "hwnd", "SelectObject", "hwnd", $hwnd, "hwnd", $BlackPen) DllCall ($gdi_dll, "int", "MoveToEx", "hwnd", ($hwnd), "int", "0", "int", "0", "ptr", 0) DllCall ($gdi_dll, "int", "LineTo", "hwnd",($hwnd), "int", "500", "int", "500") Link to comment Share on other sites More sharing options...
Developers Jos Posted January 21, 2007 Developers Share Posted January 21, 2007 here is a working example I made a while back. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
AU3Newbie Posted January 21, 2007 Author Share Posted January 21, 2007 JdeB,thank you very much!! I only know a little about these DLLs,so i only write part of them. thanx again. 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