Sign in to follow this  
Followers 0
Pakku

Set the transparency of a window just by hitting a key!

9 posts in this topic

#1 ·  Posted (edited)

Hi all,

I was a bit bored so i made this, it is an app which allows you to make a window (the one who is activated) transparent on a level of you choice.

just run this script, activate a window an hit ctrl + shift + (one of the number 1,2,3,4,5,6,7,8,9,0 (1 = almost invisible and 0 = solid))

For $i = 0 To 9
    HotKeySet("+^" & $i,"_trans")
Next

While 1
    Sleep(10)
WEnd

Func _trans()
    If StringTrimLeft(@HotKeyPressed, 2) = "0" Then
        $x = 9
    Else
        $x = StringTrimLeft(@HotKeyPressed, 2) - 1
    EndIf
    WinSetTrans("", "", 255 / 9 * $x)
EndFunc

EDIT

updated the code, way shorter thanks to Helge

Edited by Pakku

Share this post


Link to post
Share on other sites



#4 ·  Posted (edited)

@Helge

i didn't know that that would work in hotkeys, thanks

For $i = 0 To 9
    HotKeySet("+^" & $i,"_trans")
Next
@gafrost

i havn't seen that one, but mine is (also thanks to Helge) a bit shorter

EDIT

@Helge

if ctrl + shift + 0 is pressed than the window is invisible so i edited yours, see 1st post

Edited by Pakku

Share this post


Link to post
Share on other sites

Nice. I wonder if its gonna be really useful. :lmao:

Makes the comp a bit slower though.

Share this post


Link to post
Share on other sites

Nice. I wonder if its gonna be really useful. :lmao:

Makes the comp a bit slower though.

Well it is just for fun and for some people useful

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

I can have a look at that...

Edited by Pakku

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

That is not a Script it is a noobie :lmao: script only 4 liner, :geek:

One Forum Script better more than 10 lines I supousse or make something, different that in the Help Samples.

As you mean bored, another script in the same direction:

when the mouse is:

-over one window:

-and almost over you get a less transparent window

as TransparencyOnOver($howmuch transparent, $howmuchsolid,$Whatwindow,$seconsIntoSolid,$secondsintoTrans)

you coud do even that when it stays some seconds it slowly make the wanted transparency/solid state.

I do not know if somebody already made it. :ph34r:

Edited by BasicOs

Autoit.es - Foro Autoit en Español Word visitors Image Clustrmap image: - Football Spanish team - Spanish team: Casillas, Iniesta, Villa, Xavi, Puyol, Campdevilla, etc..Programando en Autoit+Html - Coding Autoit-Html - Arranca programas desde Internet - Preprocesador de Autoit a http

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0