testingtest Posted March 16, 2007 Share Posted March 16, 2007 heres a cute script expandcollapse popup#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 Link to comment Share on other sites More sharing options...
Valuater Posted March 16, 2007 Share Posted March 16, 2007 Maybe.... expandcollapse popup#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) Link to comment Share on other sites More sharing options...
testingtest Posted March 16, 2007 Author Share Posted March 16, 2007 (edited) Maybe.... expandcollapse popup#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 [edited] just say I want more on my desktop would the title and transparent be the same for every window ... illl check Edited March 16, 2007 by testingtest Link to comment Share on other sites More sharing options...
Achilles Posted March 16, 2007 Share Posted March 16, 2007 (edited) heres a cute script only problem is how do you hide it from task barNice 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 March 16, 2007 by Piano_Man My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
testingtest Posted March 16, 2007 Author Share Posted March 16, 2007 (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 March 16, 2007 by testingtest Link to comment Share on other sites More sharing options...
jvanegmond Posted March 16, 2007 Share Posted March 16, 2007 (edited) This inspired me to create something alike. I've put it here: http://www.autoitscript.com/forum/blog/man...p?showentry=163. Edited March 16, 2007 by Manadar github.com/jvanegmond Link to comment Share on other sites More sharing options...
testingtest Posted March 16, 2007 Author Share Posted March 16, 2007 This inspired me to create something alike. I've put it here: http://www.autoitscript.com/forum/blog/man...p?showentry=163.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 with credit for your GUI of course Link to comment Share on other sites More sharing options...
jvanegmond Posted March 16, 2007 Share Posted March 16, 2007 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 with credit for your GUI of courseSure, testingtest, go ahead and make something nice. github.com/jvanegmond Link to comment Share on other sites More sharing options...
testingtest Posted March 16, 2007 Author Share Posted March 16, 2007 (edited) Sure, testingtest, go ahead and make something nice.thanks...I think a nice addition to the tool bar would be the slider scriptI also might add a input box to run commands Edited March 16, 2007 by testingtest Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now