Sign in to follow this  
Followers 0

CustomBox (udf) (updated, new: ability to change buttons)

18 posts in this topic

#1 ·  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

Udf's:[topic="71394"]MiscConstants[/topic] - [topic="72249"]LangConstants[/topic] - [topic="70857"]Webcam Udf[/topic][topic="67425"]Set Walpaper[/topic] - [topic="71458"]Movie Udf[/topic] - [topic="74583"]Cmd Udf[/topic][topic="81662"]Find Lyrics Udf[/topic] - [topic="81935"]CustomBox Udf[/topic] - [topic="119885"]_Communicate UDF[/topic]Progs:[topic="71722"]HandyScript[/topic] - [topic="71148"]Basic Calc[/topic] - [topic="68178"]Cool win effect![/topic][topic="72535"]Easy Editor[/topic] - [topic="73070"]Billing[/topic] - [topic="73210"]Calculate energy cost[/topic][topic="74249"]Watch out![/topic] - [topic="74783"]WinHider[/topic] - [topic="75236"]SBA Task Manager[/topic][topic="119185"]Ultimate Talker[/topic] - [topic="119483"]Password Safer[/topic] - [topic="120223]FreeRider GameConsole[/topic][topic="125852"]Face regognizer[/topic]White Eagle Media Player: [topic="75854"]topic[/topic] downloadAll My Scripts[URL=http://swagbucks.com/?cmd=sb-register&rb=2427158][IMG]http://prodegebanners.sitegrip.com/images/swagbucks-468x60Alt4.jpg[/IMG][/URL](You'll get swagbucks and you can trade 'em in for prizes directly!)

Share this post


Link to post
Share on other sites



#2 ·  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?

Share this post


Link to post
Share on other sites

#3 ·  Posted

Just tried your example but disappear very fast the message box.


When the words fail... music speaks

Share this post


Link to post
Share on other sites

#4 ·  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

Udf's:[topic="71394"]MiscConstants[/topic] - [topic="72249"]LangConstants[/topic] - [topic="70857"]Webcam Udf[/topic][topic="67425"]Set Walpaper[/topic] - [topic="71458"]Movie Udf[/topic] - [topic="74583"]Cmd Udf[/topic][topic="81662"]Find Lyrics Udf[/topic] - [topic="81935"]CustomBox Udf[/topic] - [topic="119885"]_Communicate UDF[/topic]Progs:[topic="71722"]HandyScript[/topic] - [topic="71148"]Basic Calc[/topic] - [topic="68178"]Cool win effect![/topic][topic="72535"]Easy Editor[/topic] - [topic="73070"]Billing[/topic] - [topic="73210"]Calculate energy cost[/topic][topic="74249"]Watch out![/topic] - [topic="74783"]WinHider[/topic] - [topic="75236"]SBA Task Manager[/topic][topic="119185"]Ultimate Talker[/topic] - [topic="119483"]Password Safer[/topic] - [topic="120223]FreeRider GameConsole[/topic][topic="125852"]Face regognizer[/topic]White Eagle Media Player: [topic="75854"]topic[/topic] downloadAll My Scripts[URL=http://swagbucks.com/?cmd=sb-register&rb=2427158][IMG]http://prodegebanners.sitegrip.com/images/swagbucks-468x60Alt4.jpg[/IMG][/URL](You'll get swagbucks and you can trade 'em in for prizes directly!)

Share this post


Link to post
Share on other sites

#5 ·  Posted

Very Nice!! I like it!

Share this post


Link to post
Share on other sites

#6 ·  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.

When the words fail... music speaks

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

thnx :P

/edit

I did that andreik..

Edited by ludocus

Udf's:[topic="71394"]MiscConstants[/topic] - [topic="72249"]LangConstants[/topic] - [topic="70857"]Webcam Udf[/topic][topic="67425"]Set Walpaper[/topic] - [topic="71458"]Movie Udf[/topic] - [topic="74583"]Cmd Udf[/topic][topic="81662"]Find Lyrics Udf[/topic] - [topic="81935"]CustomBox Udf[/topic] - [topic="119885"]_Communicate UDF[/topic]Progs:[topic="71722"]HandyScript[/topic] - [topic="71148"]Basic Calc[/topic] - [topic="68178"]Cool win effect![/topic][topic="72535"]Easy Editor[/topic] - [topic="73070"]Billing[/topic] - [topic="73210"]Calculate energy cost[/topic][topic="74249"]Watch out![/topic] - [topic="74783"]WinHider[/topic] - [topic="75236"]SBA Task Manager[/topic][topic="119185"]Ultimate Talker[/topic] - [topic="119483"]Password Safer[/topic] - [topic="120223]FreeRider GameConsole[/topic][topic="125852"]Face regognizer[/topic]White Eagle Media Player: [topic="75854"]topic[/topic] downloadAll My Scripts[URL=http://swagbucks.com/?cmd=sb-register&rb=2427158][IMG]http://prodegebanners.sitegrip.com/images/swagbucks-468x60Alt4.jpg[/IMG][/URL](You'll get swagbucks and you can trade 'em in for prizes directly!)

Share this post


Link to post
Share on other sites

#8 ·  Posted

@OP to include them in binary, use FileOpen() With the Binary type, and then use FileRead, and then later use FileWrite(2+Binarymode) :P

Share this post


Link to post
Share on other sites

#9 ·  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!


Udf's:[topic="71394"]MiscConstants[/topic] - [topic="72249"]LangConstants[/topic] - [topic="70857"]Webcam Udf[/topic][topic="67425"]Set Walpaper[/topic] - [topic="71458"]Movie Udf[/topic] - [topic="74583"]Cmd Udf[/topic][topic="81662"]Find Lyrics Udf[/topic] - [topic="81935"]CustomBox Udf[/topic] - [topic="119885"]_Communicate UDF[/topic]Progs:[topic="71722"]HandyScript[/topic] - [topic="71148"]Basic Calc[/topic] - [topic="68178"]Cool win effect![/topic][topic="72535"]Easy Editor[/topic] - [topic="73070"]Billing[/topic] - [topic="73210"]Calculate energy cost[/topic][topic="74249"]Watch out![/topic] - [topic="74783"]WinHider[/topic] - [topic="75236"]SBA Task Manager[/topic][topic="119185"]Ultimate Talker[/topic] - [topic="119483"]Password Safer[/topic] - [topic="120223]FreeRider GameConsole[/topic][topic="125852"]Face regognizer[/topic]White Eagle Media Player: [topic="75854"]topic[/topic] downloadAll My Scripts[URL=http://swagbucks.com/?cmd=sb-register&rb=2427158][IMG]http://prodegebanners.sitegrip.com/images/swagbucks-468x60Alt4.jpg[/IMG][/URL](You'll get swagbucks and you can trade 'em in for prizes directly!)

Share this post


Link to post
Share on other sites

#10 ·  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

Share this post


Link to post
Share on other sites

#11 ·  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

Udf's:[topic="71394"]MiscConstants[/topic] - [topic="72249"]LangConstants[/topic] - [topic="70857"]Webcam Udf[/topic][topic="67425"]Set Walpaper[/topic] - [topic="71458"]Movie Udf[/topic] - [topic="74583"]Cmd Udf[/topic][topic="81662"]Find Lyrics Udf[/topic] - [topic="81935"]CustomBox Udf[/topic] - [topic="119885"]_Communicate UDF[/topic]Progs:[topic="71722"]HandyScript[/topic] - [topic="71148"]Basic Calc[/topic] - [topic="68178"]Cool win effect![/topic][topic="72535"]Easy Editor[/topic] - [topic="73070"]Billing[/topic] - [topic="73210"]Calculate energy cost[/topic][topic="74249"]Watch out![/topic] - [topic="74783"]WinHider[/topic] - [topic="75236"]SBA Task Manager[/topic][topic="119185"]Ultimate Talker[/topic] - [topic="119483"]Password Safer[/topic] - [topic="120223]FreeRider GameConsole[/topic][topic="125852"]Face regognizer[/topic]White Eagle Media Player: [topic="75854"]topic[/topic] downloadAll My Scripts[URL=http://swagbucks.com/?cmd=sb-register&rb=2427158][IMG]http://prodegebanners.sitegrip.com/images/swagbucks-468x60Alt4.jpg[/IMG][/URL](You'll get swagbucks and you can trade 'em in for prizes directly!)

Share this post


Link to post
Share on other sites

#13 ·  Posted

updated it!: I added new function: _CustomInputBox!!!

@Zedna: wow that is way to complicated for me :P


Udf's:[topic="71394"]MiscConstants[/topic] - [topic="72249"]LangConstants[/topic] - [topic="70857"]Webcam Udf[/topic][topic="67425"]Set Walpaper[/topic] - [topic="71458"]Movie Udf[/topic] - [topic="74583"]Cmd Udf[/topic][topic="81662"]Find Lyrics Udf[/topic] - [topic="81935"]CustomBox Udf[/topic] - [topic="119885"]_Communicate UDF[/topic]Progs:[topic="71722"]HandyScript[/topic] - [topic="71148"]Basic Calc[/topic] - [topic="68178"]Cool win effect![/topic][topic="72535"]Easy Editor[/topic] - [topic="73070"]Billing[/topic] - [topic="73210"]Calculate energy cost[/topic][topic="74249"]Watch out![/topic] - [topic="74783"]WinHider[/topic] - [topic="75236"]SBA Task Manager[/topic][topic="119185"]Ultimate Talker[/topic] - [topic="119483"]Password Safer[/topic] - [topic="120223]FreeRider GameConsole[/topic][topic="125852"]Face regognizer[/topic]White Eagle Media Player: [topic="75854"]topic[/topic] downloadAll My Scripts[URL=http://swagbucks.com/?cmd=sb-register&rb=2427158][IMG]http://prodegebanners.sitegrip.com/images/swagbucks-468x60Alt4.jpg[/IMG][/URL](You'll get swagbucks and you can trade 'em in for prizes directly!)

Share this post


Link to post
Share on other sites

#14 ·  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

Share this post


Link to post
Share on other sites

#15 ·  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

Udf's:[topic="71394"]MiscConstants[/topic] - [topic="72249"]LangConstants[/topic] - [topic="70857"]Webcam Udf[/topic][topic="67425"]Set Walpaper[/topic] - [topic="71458"]Movie Udf[/topic] - [topic="74583"]Cmd Udf[/topic][topic="81662"]Find Lyrics Udf[/topic] - [topic="81935"]CustomBox Udf[/topic] - [topic="119885"]_Communicate UDF[/topic]Progs:[topic="71722"]HandyScript[/topic] - [topic="71148"]Basic Calc[/topic] - [topic="68178"]Cool win effect![/topic][topic="72535"]Easy Editor[/topic] - [topic="73070"]Billing[/topic] - [topic="73210"]Calculate energy cost[/topic][topic="74249"]Watch out![/topic] - [topic="74783"]WinHider[/topic] - [topic="75236"]SBA Task Manager[/topic][topic="119185"]Ultimate Talker[/topic] - [topic="119483"]Password Safer[/topic] - [topic="120223]FreeRider GameConsole[/topic][topic="125852"]Face regognizer[/topic]White Eagle Media Player: [topic="75854"]topic[/topic] downloadAll My Scripts[URL=http://swagbucks.com/?cmd=sb-register&rb=2427158][IMG]http://prodegebanners.sitegrip.com/images/swagbucks-468x60Alt4.jpg[/IMG][/URL](You'll get swagbucks and you can trade 'em in for prizes directly!)

Share this post


Link to post
Share on other sites

#16 ·  Posted

new update:

Now its possible to change the button names


Udf's:[topic="71394"]MiscConstants[/topic] - [topic="72249"]LangConstants[/topic] - [topic="70857"]Webcam Udf[/topic][topic="67425"]Set Walpaper[/topic] - [topic="71458"]Movie Udf[/topic] - [topic="74583"]Cmd Udf[/topic][topic="81662"]Find Lyrics Udf[/topic] - [topic="81935"]CustomBox Udf[/topic] - [topic="119885"]_Communicate UDF[/topic]Progs:[topic="71722"]HandyScript[/topic] - [topic="71148"]Basic Calc[/topic] - [topic="68178"]Cool win effect![/topic][topic="72535"]Easy Editor[/topic] - [topic="73070"]Billing[/topic] - [topic="73210"]Calculate energy cost[/topic][topic="74249"]Watch out![/topic] - [topic="74783"]WinHider[/topic] - [topic="75236"]SBA Task Manager[/topic][topic="119185"]Ultimate Talker[/topic] - [topic="119483"]Password Safer[/topic] - [topic="120223]FreeRider GameConsole[/topic][topic="125852"]Face regognizer[/topic]White Eagle Media Player: [topic="75854"]topic[/topic] downloadAll My Scripts[URL=http://swagbucks.com/?cmd=sb-register&rb=2427158][IMG]http://prodegebanners.sitegrip.com/images/swagbucks-468x60Alt4.jpg[/IMG][/URL](You'll get swagbucks and you can trade 'em in for prizes directly!)

Share this post


Link to post
Share on other sites

#17 ·  Posted

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]

Share this post


Link to post
Share on other sites

#18 ·  Posted

uhh.. Why are you talking about that in this topic?


Udf's:[topic="71394"]MiscConstants[/topic] - [topic="72249"]LangConstants[/topic] - [topic="70857"]Webcam Udf[/topic][topic="67425"]Set Walpaper[/topic] - [topic="71458"]Movie Udf[/topic] - [topic="74583"]Cmd Udf[/topic][topic="81662"]Find Lyrics Udf[/topic] - [topic="81935"]CustomBox Udf[/topic] - [topic="119885"]_Communicate UDF[/topic]Progs:[topic="71722"]HandyScript[/topic] - [topic="71148"]Basic Calc[/topic] - [topic="68178"]Cool win effect![/topic][topic="72535"]Easy Editor[/topic] - [topic="73070"]Billing[/topic] - [topic="73210"]Calculate energy cost[/topic][topic="74249"]Watch out![/topic] - [topic="74783"]WinHider[/topic] - [topic="75236"]SBA Task Manager[/topic][topic="119185"]Ultimate Talker[/topic] - [topic="119483"]Password Safer[/topic] - [topic="120223]FreeRider GameConsole[/topic][topic="125852"]Face regognizer[/topic]White Eagle Media Player: [topic="75854"]topic[/topic] downloadAll My Scripts[URL=http://swagbucks.com/?cmd=sb-register&rb=2427158][IMG]http://prodegebanners.sitegrip.com/images/swagbucks-468x60Alt4.jpg[/IMG][/URL](You'll get swagbucks and you can trade 'em in for prizes directly!)

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0