redfive19 Posted August 9, 2007 Posted August 9, 2007 First of all, thank you all for your help in my previous two posts. I apologize for spamming the forums. I am trying to rewrite something that one of my colleagues wrote in WinBatch (and entire deployment script, about 600 lines of CODE!) and I am 99.9% done (and might I add that AutoIt is MUCH more efficient than WinBatch at basically everything) There is one function in WinBatch that I really like though. It's called Display. It basically looks like a MsgBox without an OK button. To me, it's a better way to echo things than SplashTextOn because it auto resizes to your text like MsgBox does. Is there a way to replicate this in AutoIt? thanks again everyone for all of your help, redfive
Zedna Posted August 9, 2007 Posted August 9, 2007 (edited) First of all, thank you all for your help in my previous two posts. I apologize for spamming the forums. I am trying to rewrite something that one of my colleagues wrote in WinBatch (and entire deployment script, about 600 lines of CODE!) and I am 99.9% done (and might I add that AutoIt is MUCH more efficient than WinBatch at basically everything)There is one function in WinBatch that I really like though. It's called Display. It basically looks like a MsgBox without an OK button. To me, it's a better way to echo things than SplashTextOn because it auto resizes to your text like MsgBox does. Is there a way to replicate this in AutoIt?thanks again everyone for all of your help,redfiveLook at SplashTextOn()If it will not fit your needs then you may make your own GUI for dialog with GUICreate() and GUICtrlCreateLabel(). Look at great Koda - Autoit GUI form designer. Edited August 9, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
ChrisL Posted August 9, 2007 Posted August 9, 2007 (edited) Somewhat crude but does the trick _MsgboxNoOK("Test","I am a message box with no OK button, Its a little bit crude but it works" & @crlf & "And you can still do multiple lines etc") Func _MsgboxNoOK($title = "", $text="") Opt("WinWaitDelay",1) Run('"' & @AutoItExe & '" /AutoIt3ExecuteLine "MsgBox(0, ''' & $title & ''', '' ' & $text & ''')"') WinWait($title,$text) ControlHide($title,$text,"Button1") ControlMove($title,$text,"Static1",15,25) Opt("WinWaitDelay",250) EndFunc Edit: Moved the label down a bit and made it faster too Edited August 9, 2007 by ChrisL [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire
redfive19 Posted August 10, 2007 Author Posted August 10, 2007 dude thank you!!! that's very nice and pretty much exactly what I needed!
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