Sign in to follow this  
Followers 0
AU3Newbie

Is there any examples about draw lines onto the current window?

4 posts in this topic

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"

Share this post


Link to post
Share on other sites



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")

Share this post


Link to post
Share on other sites

JdeB,thank you very much!!

I only know a little about these DLLs,so i only write part of them.

thanx again.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0