RogerRabbitsClone Posted August 27, 2010 Posted August 27, 2010 hey autoiters i have a ascii picture that i want to add to a message box. the picture is 50 characters wide, and it gets all screwed up when i run the msgbox. is there a way to resize the actual box? weather its pixels or whatever. also, doing this has made me realize i dont know how to have a line break within scite. this is just one continuous line. i didnt look to hard to find a way, and im not really worried about it, but if anybody know the answer off the top of their head that would be cool. heres my code, MsgBox (48, "The laughing man", @LF & @LF & @LF & @LF & @LF & @LF & @LF & @LF & @LF & @LF & @LF & " `.:/osyhhdddddhhyyo+/-. " & @LF & " ./oydhyo+/:+-......--:/osydhy+:` " & @LF & " `:ohdy+:.`s. y/ysh-yy-h+o:++`+--/ohdy+. " & @LF & " -ohhs:`./. +s /sooh:ss:hs+ysy/yh:s: .+ydy/` " & @LF & " :ydy/`./+/so: `+` ..--ohho-../+-o+ooo -o:`.+hho. " & @LF & " :yds-`/y:yss-/..:+shhhdddddddhhhyo/-`-`.hyho:s-/hdo. " & @LF & " .sdy- /ss+s/-.:ohhddddddhhyyyyhhddddddhs/.`+/osy/.`/hh/ " & @LF & " :hh/`:++oso.-ohddddhs+:-``````````-/oshdddhs:`-oo+ys`.sds. " & @LF & " +dh- oyss+`-sddddho-` ``:ohdddy:`/soos/ /dh- " & @LF & " +dy- //o:.oddddy/` `/yddds.`+-.:+/:dh- " & @LF & " /dy`/o+o.`-hdddh/` `/hddh/ -+:.+.:dh. " & @LF & " -dh.`ssoo.:hddds. .yddd+ `+oso:+dy " & @LF & " yd+ -o+s:-hdddo` `sddd/ ++:-``yd/ " & @LF & "-dh``syo+`yddddsoooooooooooooooooooooooooooooooooooosdddhoooossoydhoo+:. " & @LF & "odo-+oos.:dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddhs- " & @LF & "hd:`osss -:::::::::::::://:::::::::::::::://:::::::://///////////////sdddh:" & @LF & "dd- .--- osss: .+ssso:` .+ssso:` /dddh" & @LF & "dd- syoo hddd+ -+:...-++ -o:...-/+` /dddh" & @LF & "hd: +/ys yddds ----:-------::--------:-------::---- --------------:ohddh:" & @LF & "odo /o/o`/dddd` odddddddddddddddddddddddddddddddddd+ -dddddddddddddddddhs- " & @LF & "-dh``sss+`hdddo `yddddyooooooooooooooooooooooyddddy` sdddoshsysohdhso+:. " & @LF & " yd+ -oss-:dddd/ .ydddh/` `/hdddy. oddd+`+sos.`hd/ " & @LF & " -dd-:ysoo./dddd+``ohdddy/.` `./ydddho``odddo`--``- ody " & @LF & " /dh-:o+/.`/hddds. -shdddhs+:-.````.-:+yddddhs- -yddd+`.++/. /dh. " & @LF & " +dy..-/oo--yddddo.`-+yhddddddhhhhddddddhy+.`-odddh:`o+-.o//dh- " & @LF & " +dh:/:osy+`/hdddds:``-/oyhhhhddhhhhyo/.`./sdddh+:.-osy:.+dh- " & @LF & " :hd+`:+-`/+-/yddddhs+:.``..----..``.:+yddddy+.-yy+``/:sds. " & @LF & " .sdy: yss+o--+yhdddddhyssoooossyhddddhho:..:soss-`+hh/ " & @LF & " :yds:.-/ysso+:.:oshhdddddddddddhhyo/-./:sho/s``+hdo. " & @LF & " :ydy/.-:/yy: so-/:-:://///:::.:::oss/y/+/`-ohho. " & @LF & " -ohds/.-. :ss/hs:hsh- y-`hsosoh-yy-/:-+ydy/` " & @LF & " `:ohdyo/-.`-++:ohs- y: sss.+:.`-+shdy+. " & @LF & " ./oyddyso/::--..+:-/+/+oyhdhy+:` " & @LF & " `.:/osyhhdddddhhyyo+/-. ") <--a good way to start you day
apstanto Posted August 28, 2010 Posted August 28, 2010 (edited) To stretch one line of code on multiple lines, use underscores everywhere you want a new line. MsgBox(1, "Multiple Lines Example", "This is an example" & _ " of code on" & _ " multiple lines!") Edited August 28, 2010 by apstanto
RogerRabbitsClone Posted August 28, 2010 Author Posted August 28, 2010 awesome! now only if i could figure out how to resize the messagebox <--a good way to start you day
BrewManNH Posted August 28, 2010 Posted August 28, 2010 On 8/28/2010 at 12:24 AM, 'RogerRabbitsClone said: awesome! now only if i could figure out how to resize the messageboxCheck out the Extended Message Box by Melba23. It's a message box with a lot more options. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! Reveal hidden contents I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator
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