Sign in to follow this  
Followers 0
testingtest

Sticky your desktop

9 posts in this topic

heres a cute script

#include <GUIConstants.au3>
#include <Misc.au3>
HotKeySet("{F2}" , "_Stickey")
Global $Name , $Text , $Trans 
$GUI = GUICreate("Stickey", 413, 302, 303, 219)
$Text = GUICtrlCreateEdit("", 0, 0, 409, 273)
GUICtrlSetData(-1, StringFormat("Type a reminder here\r\n\r\nNote when finished hit F2"))
$Name = GUICtrlCreateInput("name for the reminder", 0, 280, 121, 21)
$Trans = GUICtrlCreateInput("150", 128, 280, 121, 21)
$Label1 = GUICtrlCreateLabel("set the transparenty", 256, 280, 97, 17)
GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
            EndSwitch
WEnd

Func _Stickey()

$Msg = MsgBox(4,"","Are you sure you want the stickey to say this...")
Select
    Case $Msg = 6 ;Yes
        GUISetState(@SW_HIDE)
        MsgBox(0 , "" , "Choose the background colour")
        $color = _ChooseColor (2, 0xFF0000, 2)
        MsgBox(0 , "" , "Choose the text colour")
        $color2 = _ChooseColor (2, 0xFF0000, 2)
        $Stickey = GUICreate(GUICtrlRead($Name) , 250 , 250)
        GUISetBkColor($color)
        GUICtrlCreateLabel(GUICtrlRead($Text), 0, 0, 250, 250)
        GUICtrlSetColor(-1, $color2)
        WinSetTrans($Stickey , "" , GUICtrlRead($Trans))
        GUISetState(@SW_SHOW)
        GUIDelete($GUI)
        While 1
            $nMsg = GUIGetMsg()
            Switch $nMsg
                Case $GUI_EVENT_CLOSE
            Exit
        EndSwitch
        WEnd
        EndSelect
    EndFunc

only problem is how do you hide it from task bar

Share this post


Link to post
Share on other sites



Maybe....

#include <GUIConstants.au3>
#include <Misc.au3>
#NoTrayIcon
HotKeySet("{F2}", "_Stickey")
Global $Name, $Text, $Trans
$Dummy = GUICreate("")
$GUI = GUICreate("Stickey", 413, 302, 303, 219, -1, -1, $Dummy)
$Text = GUICtrlCreateEdit("", 0, 0, 409, 273)
GUICtrlSetData(-1, StringFormat("Type a reminder here\r\n\r\nNote when finished hit F2"))
$Name = GUICtrlCreateInput("name for the reminder", 0, 280, 121, 21)
$Trans = GUICtrlCreateInput("150", 128, 280, 121, 21)
$Label1 = GUICtrlCreateLabel("set the transparenty", 256, 280, 97, 17)
GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
    EndSwitch
WEnd

Func _Stickey()

    $Msg = MsgBox(4, "", "Are you sure you want the stickey to say this...")
    Select
        Case $Msg = 6 ;Yes
            GUISetState(@SW_HIDE)
            MsgBox(0, "", "Choose the background colour")
            $color = _ChooseColor(2, 0xFF0000, 2)
            MsgBox(0, "", "Choose the text colour")
            $color2 = _ChooseColor(2, 0xFF0000, 2)
            $Stickey = GUICreate(GUICtrlRead($Name), 250, 250, -1, -1, -1, -1, $Dummy)
            GUISetBkColor($color)
            GUICtrlCreateLabel(GUICtrlRead($Text), 0, 0, 250, 250)
            GUICtrlSetColor(-1, $color2)
            WinSetTrans($Stickey, "", GUICtrlRead($Trans))
            GUISetState(@SW_SHOW)
            GUIDelete($GUI)
            While 1
                $nMsg = GUIGetMsg()
                Switch $nMsg
                    Case $GUI_EVENT_CLOSE
                        Exit
                EndSwitch
            WEnd
    EndSelect
EndFunc   ;==>_Stickey

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Maybe....

#include <GUIConstants.au3>
#include <Misc.au3>
#NoTrayIcon
HotKeySet("{F2}", "_Stickey")
Global $Name, $Text, $Trans
$Dummy = GUICreate("")
$GUI = GUICreate("Stickey", 413, 302, 303, 219, -1, -1, $Dummy)
$Text = GUICtrlCreateEdit("", 0, 0, 409, 273)
GUICtrlSetData(-1, StringFormat("Type a reminder here\r\n\r\nNote when finished hit F2"))
$Name = GUICtrlCreateInput("name for the reminder", 0, 280, 121, 21)
$Trans = GUICtrlCreateInput("150", 128, 280, 121, 21)
$Label1 = GUICtrlCreateLabel("set the transparenty", 256, 280, 97, 17)
GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
    EndSwitch
WEnd

Func _Stickey()

    $Msg = MsgBox(4, "", "Are you sure you want the stickey to say this...")
    Select
        Case $Msg = 6 ;Yes
            GUISetState(@SW_HIDE)
            MsgBox(0, "", "Choose the background colour")
            $color = _ChooseColor(2, 0xFF0000, 2)
            MsgBox(0, "", "Choose the text colour")
            $color2 = _ChooseColor(2, 0xFF0000, 2)
            $Stickey = GUICreate(GUICtrlRead($Name), 250, 250, -1, -1, -1, -1, $Dummy)
            GUISetBkColor($color)
            GUICtrlCreateLabel(GUICtrlRead($Text), 0, 0, 250, 250)
            GUICtrlSetColor(-1, $color2)
            WinSetTrans($Stickey, "", GUICtrlRead($Trans))
            GUISetState(@SW_SHOW)
            GUIDelete($GUI)
            While 1
                $nMsg = GUIGetMsg()
                Switch $nMsg
                    Case $GUI_EVENT_CLOSE
                        Exit
                EndSwitch
            WEnd
    EndSelect
EndFunc   ;==>_Stickey

8)

wow thanks val , but how does it do it with --> $Dummy or was that for me :whistle:

[edited] just say I want more on my desktop would the title and transparent be the same for every window ... illl check

Edited by testingtest

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

heres a cute script

only problem is how do you hide it from task bar

Nice and useful.

EDIT:

To make it so that your taskbar won't see it do this:

GuiCreate('', -1, -1, -1, -1, '', $WS_EX_TOOLWINDOW)

The "toolwindow" part makes so that you can't see it, but it also changes the layout a little bit.

Edited by Piano_Man

My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Nice and useful.

wow really thanks

[edited] thinking of adding a timer incase you have to go some were you set the reminder with a timer and it will beep or play sound waves

Edited by testingtest

Share this post


Link to post
Share on other sites

not bad I like the style. If you don't mind may I use the GUI of yours I think I could make a cool tool bar like vista's :whistle: with credit for your GUI of course

Sure, testingtest, go ahead and make something nice.

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

Sure, testingtest, go ahead and make something nice.

thanks...

I think a nice addition to the tool bar would be the slider script

I also might add a input box to run commands :whistle:

Edited by testingtest

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