AutoHotkey Community

It is currently May 27th, 2012, 4:38 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: September 5th, 2005, 12:51 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Although I haven't tested it, you might be able to draw in a GUI window (or in any other window owned by the script) with the following approach:
Code:
OnMessage(0x14, "WM_ERASEBKGND")
WM_ERASEBKGND()
{
    ; ... here do some drawing using the techniques posted in the link below...
    ; MSDN: "An application should return nonzero if it erases the background;
    ; otherwise, it should return zero."
    return 1
}

Link: Shimanov's use of DllCall to draw
If all you want to do is paint individual pixels, you can also look into calling SetPixel() after you get an HDC as shown in examples such as Shimanov's.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: o_O
PostPosted: September 29th, 2005, 7:23 pm 
Offline

Joined: June 26th, 2005, 9:43 pm
Posts: 40
Location: Portugal
This damn script started to draw on my Desktop ... [without the pencil of course] and I ended up with 220 Processes of Nero and VMware :'(

The Scan of the TaskManager o.O:
(huge list omitted)

_________________
Belial


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: Yahoo [Bot] and 11 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group