AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

green monochrome screen?

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
jak



Joined: 28 Feb 2006
Posts: 159

PostPosted: Sun May 10, 2009 2:58 am    Post subject: green monochrome screen? Reply with quote

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/viewtopic.php?t=33626&highlight=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!
Back to top
View user's profile Send private message
SpiderGames



Joined: 09 Jun 2008
Posts: 936
Location: Canada

PostPosted: Sun May 10, 2009 3:25 am    Post subject: Reply with quote

Look up GDIP Functions, add a green rectangle over existing windows and set the alpha level to... 50%, 30%?
_________________

I know i have 6 legs. It's cuz I'm special.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
[VxE]



Joined: 07 Oct 2006
Posts: 3254
Location: Simi Valley, CA

PostPosted: Sun May 10, 2009 4:12 am    Post subject: Reply with quote

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!
Back to top
View user's profile Send private message
jak



Joined: 28 Feb 2006
Posts: 159

PostPosted: Sun May 10, 2009 7:34 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
SpiderGames



Joined: 09 Jun 2008
Posts: 936
Location: Canada

PostPosted: Sun May 10, 2009 1:44 pm    Post subject: Reply with quote

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.
_________________

I know i have 6 legs. It's cuz I'm special.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group