Jump to content

Recommended Posts

Posted (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 :P )

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 by ludocus
Posted

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?
Posted (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 by ludocus
Posted

@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.
Posted

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 :P..

But still, Thnx!

Posted

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"& _

"4f5s4df56f0f0f0f0f0f0f0f0ff0f0f0f0f0f0f0f0f0f00000000000000000000000000000000000000000000000000

00"& _

....Like so :P

Posted (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 by ludocus
Posted
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

Posted (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 by ludocus
  • 3 months later...
  • 4 months later...

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
×
×
  • Create New...