CFlux.ahk - Let the colors flow!!! :D

Post your working scripts, libraries and tools for AHK v1.1 and older
User avatar
joedf
Posts: 8953
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

CFlux.ahk - Let the colors flow!!! :D

16 Oct 2013, 15:38

IM too lazy to optimize it, well it's for fun! Try it :D
It's an old script I made... A while ago... :P

Code: Select all

;___[Settings]___;

	rate:=8
	delay:=10
	startwait:=200
	fullscreen:=1
	
;___[Settings]___;

setbatchlines, -1
start:
if fullscreen
	gui +ToolWindow -Caption +AlwaysOnTop
else
	gui, +Resize +MinSize160x25
gui, color, % dec2hex(255*16*16*16*16)
gui, add, text, y4 x4 vtxt gGUI_Move,hello
gui, font, bold s16
gui, add, text, y18 x18 h50 w150 c1a1a1a ,Esc=Quit
gui, font
gui, show, h50 w150, cFlux - Colors FTW!
if fullscreen
{
	PID := DllCall("GetCurrentProcessId")
	WinMove, ahk_pid %PID%,,0,0,A_ScreenWidth,A_ScreenHeight
	WinSet, AlwaysOnTop, On, ahk_pid %PID%
}
tot:=floor(255/rate)
sleep, %startwait%
goto run
return

run:
Loop
{
	loop, %tot%
	{
		k:=dec2hex((A_index*rate*16*16)+(255*16*16*16*16))
		gui, color, %k%
		guicontrol,,txt,%k%
		sleep, %delay%
	}
	loop, %tot%
	{
		k:=dec2hex((255*16*16*16*16)-(A_index*rate*16*16*16*16)+(255*16*16))
		gui, color, %k%
		guicontrol,,txt,%k%
		sleep, %delay%
	}
	loop, %tot%
	{
		k:=dec2hex((A_index*rate)+(255*16*16))
		gui, color, %k%
		guicontrol,,txt,%k%
		sleep, %delay%
	}
	loop, %tot%
	{
		k:=dec2hex((255*16*16)-(A_index*rate*16*16)+(255))
		gui, color, %k%
		guicontrol,,txt,%k%
		sleep, %delay%
	}
	loop, %tot%
	{
		k:=dec2hex((255)+(A_index*rate*16*16*16*16))
		gui, color, %k%
		guicontrol,,txt,%k%
		sleep, %delay%
	}
	loop, %tot%
	{
		k:=dec2hex((255*16*16*16*16)+(255)-(A_index*rate))
		gui, color, %k%
		guicontrol,,txt,%k%
		sleep, %delay%
	}
}
return

GUI_Move:
PostMessage 0xA1,2
return

GuiSize:
GuiControl, Move, txt, w%A_GuiWidth% h%A_GuiHeight%
return

dec2hex(x)
{
	a:=A_FormatInteger
	SetFormat, integer, hex
	x+=0
	setFormat, integer, %a%
	return x
}

q::
Escape::
Guiclose:
exitapp 
Cheers! ;)
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
User avatar
smorgasbord
Posts: 493
Joined: 30 Sep 2013, 09:34

Re: CFlux.ahk - Let the colors flow!!! :D

17 Oct 2013, 03:09

beautiful!
It should help it checking Color Blindness etc.
John ... you working ?
User avatar
joedf
Posts: 8953
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: CFlux.ahk - Let the colors flow!!! :D

17 Oct 2013, 09:29

Haha haha!!! :D
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
User avatar
smorgasbord
Posts: 493
Joined: 30 Sep 2013, 09:34

Re: CFlux.ahk - Let the colors flow!!! :D

17 Oct 2013, 22:52

@joedf i am serious!! it is a use!!

please wait. i shall confirm and tell the details
i know some-one who has color blindness, I shall ask him to see your script in action and tell the results.

Hope it helps :)
John ... you working ?
User avatar
joedf
Posts: 8953
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: CFlux.ahk - Let the colors flow!!! :D

17 Oct 2013, 23:13

@smorgasbord hahah ok ;)
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
User avatar
xZomBie
Posts: 256
Joined: 02 Oct 2013, 02:57

Re: CFlux.ahk - Let the colors flow!!! :D

20 Oct 2013, 02:43

I think I'm experiencing some severe eye problems :?

Return to “Scripts and Functions (v1)”

Who is online

Users browsing this forum: No registered users and 255 guests