AutoHotkey Community

It is currently May 26th, 2012, 7:39 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: green monochrome screen?
PostPosted: May 10th, 2009, 3:58 am 
Offline

Joined: February 28th, 2006, 8:42 am
Posts: 159
Is there any way to have ahk produce/mimic the old green monochrome screens? Like all the time?

Some kind of green "dropcloth" overlay on the windows maybe? Or can ahk maybe directly control the video card's output (the way it can with screen dimming features for instance) and only display shades of green?

For instance, here is a 'dimscreen' done in ahk:
http://www.autohotkey.com/forum/viewtop ... dim+screen

I guess i'd like something like that but one that turns the screen into monochrome shades of green, rather than dimming it. (And I suppose one challenge here is that the dropcloth would have to allow clicks and typing to go through... like "ghost-it" can).

For the most part I have not found this feature by poking around in my video card's driver or software. Apparently very few video cards out there support such a feature. Wondering if ahk could do it.

thanks!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 10th, 2009, 4:25 am 
Offline

Joined: June 9th, 2008, 2:32 am
Posts: 936
Location: Canada
Look up GDIP Functions, add a green rectangle over existing windows and set the alpha level to... 50%, 30%?

_________________
Image
I know i have 6 legs. It's cuz I'm special.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 10th, 2009, 5:12 am 
Offline
User avatar

Joined: October 7th, 2006, 8:45 am
Posts: 3329
Location: Simi Valley, CA
I know it's not really a solution... but...
Code:
hDC := DllCall("GetDC", uint, 0)
hBrush := DllCall("CreateSolidBrush", uint, 0x00FF00)
DllCall("SelectObject", uint, hDC, uint, hBrush)
DllCall("SetROP2", uint, hDC, int, 9)
DllCall("Rectangle", uint, hDC, uint, 0, uint, 0, uint, A_ScreenWidth, uint, A_ScreenHeight)
DllCall("DeleteObject", uint, hBrush)
DllCall("ReleaseDC", uint, 0, uint, hDC)


A partly transparent green overlay window would probably be the best way. Search the forums for 'screen darken' to get most of the code you'll need.

_________________
Ternary (a ? b : c) guide     TSV Table Manipulation Library
Post code inside [code][/code] tags!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 10th, 2009, 8:34 am 
Offline

Joined: February 28th, 2006, 8:42 am
Posts: 159
thanks guys.
This is prolly out of my league though.
If anyone else has an interest in this I hope someone will put it together. I'll give it a shot myself in a bit, though i'm not hopeful that i'll be able to pull it off.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 10th, 2009, 2:44 pm 
Offline

Joined: June 9th, 2008, 2:32 am
Posts: 936
Location: Canada
An easyer method for you may be to make a GUI Window with a green colour and use the WinSet Transparent Function. It wont work completely the same but it will give a similar effect.

Press CTR + X to end it.
Code:
Gui, Color, 00FF00
Gui, Show, h2000 w2000, overlay
WinSet, Transparent, 150, overlay 
WinSet, AlwaysOnTop, ON, overlay
Return,

^x::ExitApp


**Note** you cannot click on anything. You would need to use the GDIP library to draw ontop of screen while keeping clickability.

_________________
Image
I know i have 6 legs. It's cuz I'm special.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Azevedo, perlsmith, Yahoo [Bot] and 66 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