DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: IDEA: Make your monitor corners look round  (Read 21,979 times)

Coeluh

  • Family Guy ^^
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 273
IDEA: Make your monitor corners look round
« on: April 23, 2009, 01:59 PM »
Maybe kind of useless, but I really wonder what my pc looks like when the corners are overlay with a black image of an outer corner.

Like this.

So 4 times this image, and later on maybe multiple monitor support. Maybe with the ability to set the radius of the rounded corner?

raybeere

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 94
Re: IDEA: Make your monitor corners look round
« Reply #1 on: April 23, 2009, 06:18 PM »
It sounds like a cool effect, although it might get annoying if it covered up the Close button on maximised windows.

Coeluh

  • Family Guy ^^
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 273
Re: IDEA: Make your monitor corners look round
« Reply #2 on: April 24, 2009, 09:32 PM »
It sounds like a cool effect, although it might get annoying if it covered up the Close button on maximised windows.
Well I think it wouldn't totally cover the close button.

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • Participated in NANY Challenge Twice
    • Coding Snacks
Re: IDEA: Make your monitor corners look round
« Reply #3 on: April 26, 2009, 08:49 PM »
:) Try RoundedCorners, a quick script that shows four images in the corners of the screen.

Download the four images and save them as 1.gif, 2.gif, 3.gif and 4.gif in the same folder as the script.

Skrommel

Code
;RoundedCorners.ahk
;Skrommel @ 2009

#NoEnv
#SingleInstance,Force
SetWorkingDir %A_ScriptDir% 
SetWinDelay,0
SetBatchLines,-1

Gui,Color,FFFFFF
Gui,+AlwaysOnTop +TopMost -Caption +E0x20 +Border +ToolWindow 
x=0
y=0
Gui,Add,Picture,x%x% y%y%,1.gif
x:=A_ScreenWidth-37
y=0
Gui,Add,Picture,x%x% y%y%,2.gif
x:=A_ScreenWidth-37
y:=A_ScreenHeight-37
Gui,Add,Picture,x%x% y%y%,3.gif
x=0
y:=A_ScreenHeight-37
Gui,Add,Picture,x%x% y%y%,4.gif
Gui,+LastFound
guiid:=WinExist()
Gui,Show,x0 y0 w%A_ScreenWidth% h%A_ScreenHeight% NoActivate
WinSet,TransColor,FFFFFF,ahk_id %guiid%
WinSet,AlwaysOnTop,On,ahk_id %guiid%
SetTimer,TOP,1000
Return


TOP:
WinSet,Top,,ahk_id %guiid%
Return
« Last Edit: April 26, 2009, 08:51 PM by skrommel »

Coeluh

  • Family Guy ^^
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 273
Re: IDEA: Make your monitor corners look round
« Reply #4 on: April 27, 2009, 03:35 PM »
:) Try RoundedCorners, a quick script that shows four images in the corners of the screen.

Download the four images and save them as 1.gif, 2.gif, 3.gif and 4.gif in the same folder as the script.

Skrommel

Code
;RoundedCorners.ahk
;Skrommel @ 2009

#NoEnv
#SingleInstance,Force
SetWorkingDir %A_ScriptDir% 
SetWinDelay,0
SetBatchLines,-1

Gui,Color,FFFFFF
Gui,+AlwaysOnTop +TopMost -Caption +E0x20 +Border +ToolWindow 
x=0
y=0
Gui,Add,Picture,x%x% y%y%,1.gif
x:=A_ScreenWidth-37
y=0
Gui,Add,Picture,x%x% y%y%,2.gif
x:=A_ScreenWidth-37
y:=A_ScreenHeight-37
Gui,Add,Picture,x%x% y%y%,3.gif
x=0
y:=A_ScreenHeight-37
Gui,Add,Picture,x%x% y%y%,4.gif
Gui,+LastFound
guiid:=WinExist()
Gui,Show,x0 y0 w%A_ScreenWidth% h%A_ScreenHeight% NoActivate
WinSet,TransColor,FFFFFF,ahk_id %guiid%
WinSet,AlwaysOnTop,On,ahk_id %guiid%
SetTimer,TOP,1000
Return


TOP:
WinSet,Top,,ahk_id %guiid%
Return
Alright, that looks cool! Trying to mod it to work with png files and tinier corners... It shows white :(.
« Last Edit: April 27, 2009, 03:41 PM by Coeluh »

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • Participated in NANY Challenge Twice
    • Coding Snacks
Re: IDEA: Make your monitor corners look round
« Reply #5 on: April 27, 2009, 11:16 PM »
:) Try saving the png files with a white background, or change the lines
Code
Gui,Color,FFFFFF
WinSet,TransColor,FFFFFF,ahk_id %guiid%
to something else.
I guess you've already changed the lines with gif in them to png.

Skrommel

Coeluh

  • Family Guy ^^
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 273
Re: IDEA: Make your monitor corners look round
« Reply #6 on: April 28, 2009, 08:00 AM »
:) Try saving the png files with a white background, or change the lines
Code
Gui,Color,FFFFFF
WinSet,TransColor,FFFFFF,ahk_id %guiid%
to something else.
I guess you've already changed the lines with gif in them to png.

Skrommel
Thanks! ill check that out

Coeluh

  • Family Guy ^^
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 273
Re: IDEA: Make your monitor corners look round
« Reply #7 on: April 29, 2009, 09:15 AM »
Does not really work, but I learned a lot of this thing! (AHK coding regarding)

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • Participated in NANY Challenge Twice
    • Coding Snacks
Re: IDEA: Make your monitor corners look round
« Reply #8 on: April 30, 2009, 12:14 AM »
:) The code doesn't work with transparent or alpha blended images, it just turns white color transparent.

Skrommel

jdd

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 214
Re: IDEA: Make your monitor corners look round
« Reply #9 on: May 06, 2009, 12:53 PM »
This is pretty cool!  Would it be possible to edit the script so the .gif's can be embedded within the script, instead of the the folder?

Coeluh

  • Family Guy ^^
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 273
Re: IDEA: Make your monitor corners look round
« Reply #10 on: May 06, 2009, 01:12 PM »
They still look a bit white to me:(

Original address: https://www.donationcoder.com/forum/index.php?topic=18013.0