ludocus Posted October 4, 2008 Posted October 4, 2008 (edited) I made this custom msgbox! Pictures, Source, Example, Readme and old pictures: CustomBox.zip previous downloads: 35 Source alone: CustomBox.au3 Previous downloads: 5 Check out the new possibility of choosing options! I Changed the pictures.. looks different (maybe worse ) I added new function: _CustomInputBox!!! Now its possible to change the button names the options work the same as with normal msgbox: CODE Return Value - Button Pressed: 1 = OK 2 = Cancel 4 = RETRY 5 = IGNORE 6 = YES 7 = NO 10 = TRY AGAIN 11 = CONTINUE Opts - Result: 0 = OK button 1 = OK and Cancel 2 = Abort, Retry, and Ignore 3 = Yes, No, and Cancel 4 = Yes and No 5 = Retry and Cance 6 = Cancel, Try Again, Continue Enjoy:) Edited October 5, 2008 by ludocus
TehWhale Posted October 4, 2008 Posted October 4, 2008 I made this custom msgbox! Source: example: #include <CustomBox.au3> $msgbox = _CustomBox('Hello', 'Hello Ladies and gentlemen!', -1, -1, 0) if $msgbox = 1 then _CustomBox('Notification', 'You Clicked Ok') Else _CustomBox('Notification', 'You Clicked Close') EndIf exit You need the following pictures (in your temp directory): Titlebar.bmp Button.bmp Leave.bmp Enjoy:)Why don't you take the pictures, read them to binary, and have your script write them in the temp directory?
Andreik Posted October 4, 2008 Posted October 4, 2008 Just tried your example but disappear very fast the message box.
ludocus Posted October 4, 2008 Author Posted October 4, 2008 (edited) @Andreik: then you dont have the images in temp dir.. @SwiftBurns: Dude, I wanted to do that for a long time.. But I got no clue how?? please tell me.. Edited October 4, 2008 by ludocus
Andreik Posted October 4, 2008 Posted October 4, 2008 @Andreik: then you dont have the images in temp dir..@SwiftBurns: Dude, I wanted to do that for a long time.. But I got no clue how?? please tell me..Yeah, looks good but use FileInstall or other methods to put files in TempDir.
ludocus Posted October 4, 2008 Author Posted October 4, 2008 (edited) thnx /edit I did that andreik.. Edited October 4, 2008 by ludocus
TehWhale Posted October 4, 2008 Posted October 4, 2008 @OP to include them in binary, use FileOpen() With the Binary type, and then use FileRead, and then later use FileWrite(2+Binarymode)
ludocus Posted October 4, 2008 Author Posted October 4, 2008 New update!!... all options of a normal msgbox (flags).. @Swift: Dude I did this.. and it works (thnx!!!) but the lines I get are too big.. scite becomes really, really, really slow.. (like 1 min per character I type).. and when I press F5 (run) it errors: Unable to Parse Line.. so then I put these things: ' before and after the line.. and then it errors something about... I forgot.. Well it errors.. so this doen't work .. But still, Thnx!
TehWhale Posted October 4, 2008 Posted October 4, 2008 New update!!... all options of a normal msgbox (flags)..@Swift: Dude I did this.. and it works (thnx!!!) but the lines I get are too big.. scite becomes really, really, really slow.. (like 1 min per character I type)..and when I press F5 (run) it errors: Unable to Parse Line.. so then I put these things: ' before and after the line..and then it errors something about... I forgot.. Well it errors..so this doen't work ..But still, Thnx!Use$BinaryCode = "0xf44asf4f64f54f4f564a56sf456a4sf5f45f0f000f0f0f0f0f0f0f0f0f0f0ff0f0f0f0f0f0f0f0f0f0f0f0f0"& _"4f5s4df56f0f0f0f0f0f0f0f0ff0f0f0f0f0f0f0f0f0f0000000000000000000000000000000000000000000000000000"& _....Like so
ludocus Posted October 5, 2008 Author Posted October 5, 2008 (edited) Updated the pictures!!! @Swift: That will take ages.. cause the line I get returned is extremely long.. maybe ill make something that will do that automatic.. /edit: @Swift (again): I tried that with this: #Include <File.au3> $p = FileOpen('leave.bmp', 16) $txt = FileRead($p) FileClose($p) $length = StringLen($txt) $ret = @Tab&'$leave = ' msgbox(0, $length, $length/20) For $i = 20 to $length step 20 $left = StringLeft($txt, 20) $ret &= '"'&$left&'"& _'&@CRLF&@TAB $txt = StringReplace($txt, $left, '') Next ClipPut($ret) 1: for some reason it adds much to much lines.. but if I get rid of them its ok.. 2: when I create it for the code, and then open the file with Windows image Viewer it sais: unable to build up image.. Edited October 5, 2008 by ludocus
Zedna Posted October 5, 2008 Posted October 5, 2008 @ludocus: Take a look at my Resources UDF http://www.autoitscript.com/forum/index.php?showtopic=51103 Resources UDF Â ResourcesEx UDF Â AutoIt Forum Search
ludocus Posted October 5, 2008 Author Posted October 5, 2008 updated it!: I added new function: _CustomInputBox!!! @Zedna: wow that is way to complicated for me
ProgAndy Posted October 5, 2008 Posted October 5, 2008 Here i posted a script to make the AutoIt HEX source out of a file *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes
ludocus Posted October 5, 2008 Author Posted October 5, 2008 (edited) thnx.. tried it, and it worked! but: the titlebar.bmp is too big for a var.. it sais something bla bla.. overflow.. so I just am not going to do this anymore! Edited October 5, 2008 by ludocus
ludocus Posted October 5, 2008 Author Posted October 5, 2008 new update: Now its possible to change the button names
JavaScript_Freek Posted February 3, 2009 Posted February 3, 2009 Ok. I got CustomBox.au3 in /Includes/ but when I press Server than Client.. the cleint.au3 flashes for like a second. [center]Cookyx.com :: Simple LAN Chat[/center]
ludocus Posted June 25, 2009 Author Posted June 25, 2009 uhh.. Why are you talking about that in this topic?
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