James Posted December 23, 2006 Share Posted December 23, 2006 Well, I was thinking of this earlier. Basically, when a button is pressed or something, the status bar tells you what is happening. ;------------------------------------------------ ; ; Name: Toolbar example ; Author: Secure_ICT ; Description: Changes the toolbar text ; Credit: ; Version: n/a ; ;----------------------------------------------- #include <GUIConstants.au3> #Region ### START Koda GUI section ### Form= $window = GUICreate("Status Bar", 236, 177, 193, 115) $data = GUICtrlCreateInput("", 0, 152, 233, 21, BitOR($ES_AUTOHSCROLL,$ES_READONLY)) $open = GUICtrlCreateButton("Open", 64, 16, 113, 57, 0) $close = GUICtrlCreateButton("Close", 64, 80, 113, 57, 0) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $open GUICtrlSetData($data, "Open the CD/DVD drive") CDTray("E:", "open") Case $close GUICtrlSetData($data, "Close the CD/DVD drive") CDTray("E:", "close") EndSwitch WEnd Secure Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
_Kurt Posted December 23, 2006 Share Posted December 23, 2006 Not very useful.. I guess it's an experiment. Kurt Awaiting Diablo III.. Link to comment Share on other sites More sharing options...
James Posted December 23, 2006 Author Share Posted December 23, 2006 Yes it was. It might be useful to someone :smile: Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
James Posted December 23, 2006 Author Share Posted December 23, 2006 ;------------------------------------------------ ; ; Name: WinTitle example ; Author: Secure_ICT ; Description: Changes the WinTitle ; Credit: ; Version: n/a ; ;----------------------------------------------- #include <GUIConstants.au3> #Region ### START Koda GUI section ### Form= $window = GUICreate("", 236, 177, 193, 115) $open = GUICtrlCreateButton("Open", 64, 16, 113, 57, 0) $close = GUICtrlCreateButton("Close", 64, 80, 113, 57, 0) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $open WinSetTitle("", "", "Open the CD/DVD drive") CDTray("E:", "open") Case $close WinSetTitle("", "", "Close the CD/DVD drive") CDTray("E:", "close") EndSwitch WEnd Just a quick one. It changes the wintitle to the text instead. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
GaryFrost Posted December 23, 2006 Share Posted December 23, 2006 Well, I was thinking of this earlier. Basically, when a button is pressed or something, the status bar tells you what is happening. ;------------------------------------------------ ; ; Name: Toolbar example ; Author: Secure_ICT ; Description: Changes the toolbar text ; Credit: ; Version: n/a ; ;----------------------------------------------- #include <GUIConstants.au3> #Region ### START Koda GUI section ### Form= $window = GUICreate("Status Bar", 236, 177, 193, 115) $data = GUICtrlCreateInput("", 0, 152, 233, 21, BitOR($ES_AUTOHSCROLL,$ES_READONLY)) $open = GUICtrlCreateButton("Open", 64, 16, 113, 57, 0) $close = GUICtrlCreateButton("Close", 64, 80, 113, 57, 0) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $open GUICtrlSetData($data, "Open the CD/DVD drive") CDTray("E:", "open") Case $close GUICtrlSetData($data, "Close the CD/DVD drive") CDTray("E:", "close") EndSwitch WEnd Secure Why not use a real statusbar? _GuiCtrlStatusBarCreate etc... look in the UDFs of the help SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
James Posted December 23, 2006 Author Share Posted December 23, 2006 Oh, didn't. I'll edit the status bar in a minute then. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted December 23, 2006 Share Posted December 23, 2006 um dude theres no point in posting scripts that just use a simple GUICtrlSetData... and WinSetTitle , well thatll set the current window active what if ur script isnt the current window cuz they clicked the button then switched to something else quickly...., just please i beg of you in the kindest way stop making pointless topics Link to comment Share on other sites More sharing options...
James Posted December 23, 2006 Author Share Posted December 23, 2006 Theyr'e for experimental purposes, and its a basic way of doing it. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted December 23, 2006 Share Posted December 23, 2006 experiment but don't post it, you've showed how to change a window title.... congrats thats in the help file no need to waste peoples time posting this useless topic about how to change a window title, or Guictrlsetdata to change an input box Link to comment Share on other sites More sharing options...
BreakAzoid Posted December 24, 2006 Share Posted December 24, 2006 (edited) experiment but don't post it, you've showed how to change a window title.... congrats thats in the help file no need to waste peoples time posting this useless topic about how to change a window title, or Guictrlsetdata to change an input box Dude your a freaking cocky, and arrogant asshole! this forum is for others to share their scripts regardless of how useful they may be. [Edit] You're signature, avator and name says it all, "Anything you write is best written with the delete key" suggest you take your own word for it.. Edited December 24, 2006 by BreakAzoid Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted December 24, 2006 Moderators Share Posted December 24, 2006 Dude your a freaking cocky, and arrogant asshole! this forum is for others to share their scripts regardless of how useful they may be. [Edit] You're signature, avator and name says it all, "Anything you write is best written with the delete key" suggest you take your own word for it.. You've been a part of this forum for all of 45 minutes... maybe you should take your own advice and shut your pie hole, and leave others to take care of themselves or a Mod to do it for them. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
jesus2099 Posted January 1, 2007 Share Posted January 1, 2007 Sorry I'm new too but I registered just to say that I have learned some bits fro mthis script. Link to comment Share on other sites More sharing options...
James Posted January 1, 2007 Author Share Posted January 1, 2007 I'm glad to hear that. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
nobbe Posted January 10, 2007 Share Posted January 10, 2007 im using general status bar .. ;; statusbar Global $aStatusParts[2] = [420, -1] Global $aTempStatus[2] = ["", ""] $StatusBar = _GUICtrlStatusBarCreate($main, $aStatusParts, $aTempStatus, $SBARS_SIZEGRIP) _GUICtrlStatusBarSetMinHeight($StatusBar, 20) _GUICtrlStatusBarSetText($StatusBar, "...."); works nicely Link to comment Share on other sites More sharing options...
James Posted January 10, 2007 Author Share Posted January 10, 2007 Yes. But this is away if you wanted it to be quick and easy. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ 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