Jump to content

MsgBox - Change Button Names


SmOke_N
 Share

Recommended Posts

Would have to make sure there isn't an Icon ... if there is an icon, it would be static2.

Easy enough to fix, but the simple idea is getting a tad larger now :P

Already fixed it.

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

  • Moderators

Already fixed it.

Cool, going to bed, because I'm starting to see the Matrix!

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

Yes indeed - very nicely executed :nuke:

And, might i suggest, another candidate for a "Common Dialog Replacement Project" .. Smokey's InputBox replacement would be the first one - chronologically speaking.

Since each one echos a dialog that is familiar to most users, this kind of UDF provides valuable teething material for novices (such as myself) to the AU3-GUI, and could form an excellent tutorial. Either for distribution with the AU3 setup, or as an entirely new forum (perhaps under "Scripts and Scraps").

Meantime - thanks a ton - it was a very valuable learning experience!

:P

Link to comment
Share on other sites

Nice. Seems to work very well now. I would say that non english users would especially adore this msgbox. :P

Probably wouldn't be a bad Idea to pass the message string (Optional) for the Time out message then.

Something Like:

Global $ChangeText[4] = ['', '&Leave', '&Disable', '&Quit']
$iMsg = _MsgBoxEx(51, 'Mission', 'Impossible', 10, "Self Destruct In %s Second(s)", $ChangeText)
MsgBox(64, 'Info', 'The Return Was: ' & $iMsg)
oÝ÷ ØÌ­­©ì«b¢{&Êz-^­÷µ»­Ê zÛaz'^i«­¢+Ø(ì͵½¹±ä¥¸Éµ¸)±½°ÀÌØí
¡¹QáÑlÑtôlÌäìÌäì°ÌäìµÀíUɱÕÌäì°ÌäìµÀíMÁÉɸM¥Ìäì°ÌäìµÀí   ¹¥ÐÌäít(ÀÌØí¥5Íô}5Í   ½áà ÔÄ°Ìäí5¥ÍÍ¥½¸Ìäì°ÌäíU¹·Ù±¥ Ìäì°ÄÀ°ÅÕ½ÐíM±ÍÑéÉÍÓÙÉÕ¹%¹¹¸ÌM­Õ¹¸ÅÕ½Ðì°ÀÌØí
¡¹QáФ)5Í ½à ØаÌäí%¹¼Ìäì°Ìäí¥Kñ­­¡È]ÈèÌäìµÀìÀÌØí¥5ͤ(oÝ÷ Ù«­¢+Ø(ì͵½¹±ä¥¸%ѱ¥¸)±½°ÀÌØí
¡¹QáÑlÑtôlÌäìÌäì°ÌäìµÀíAɵÍͼÌäì°ÌäìµÀí%¹¥±¥Ñ¤Ìäì°ÌäìµÀíI¥¹Õ¹¥Ñ¼Ìäít(ÀÌØí¥5Íô}5Í    ½áà ÔÄ°Ìäí5¥ÍÍ¥½¹Ìäì°Ìäí%µÁ½ÍÍ¥¥±Ìäì°ÄÀ°ÅÕ½ÐíÍÑÉÕФÕѼ¹ÑɼÌM½¹¤ÅÕ½Ðì°ÀÌØí
¡¹QáФ)5Í ½à ØаÌäí%¹¼Ìäì°Ìäí%°I¥Ñ½É¹¼ÉèÌäìµÀìÀÌØí¥5ͤ(oÝ÷ Ù«­¢+Ø(ì͵½¹±ä¥¸É¹ )±½°ÀÌØí
¡¹QáÑlÑtôlÌäìÌäì°ÌäìµÀí
½¹¤Ìäì°ÌäìµÀí9ÕÑɱ¥ÍèÌäì°ÌäìµÀíMѽÁäÌäít(ÀÌØí¥5Íô}5Í ½áà ÔÄ°Ìäí5¥ÍÍ¥½¸Ìäì°Ìäí%µÁ½ÍÍ¥±Ìäì°ÄÀ°ÅÕ½ÐíÍÑÉÕÑ¥½¸ÌäíÉаÌäíÕѼµÁ½ÉÑɥйÌÌM½¹¡Ì¤ÅÕ½Ðì°ÀÌØí
¡¹QáФ)5Í ½à ØаÌäí%¹¼Ìäì°Ìäí1IѽÕÈ%Ñ¥ÐèÌäìµÀìÀÌØí¥5ͤ(oÝ÷ Ù«­¢+Ø)Õ¹}5Í   ½áà ÀÌØí¥±°ÀÌØíÍQ¥Ñ±°ÀÌØíÍQáаÀÌØí¥Q¥µ½ÕÐôÀ°ÀÌØíÍQ¥µ½ÕÐôÅÕ½ÐìÅÕ½Ðì°ÀÌØíÍ
%
¡¹ôÌäìÌäì¤(%%ÀÌØíÍQ¥µ½ÕÐôÅÕ½ÐìÅÕ½ÐìQ¡¸ÀÌØíÍQ¥µ½ÕÐôÅÕ½ÐíQ¥µ½ÕÐ¥¸ÌM½¹¡Ì¤ÅÕ½Ðì(%1½°ÀÌØíMÑÑ¥ôÅÕ½ÐíMÑÑ¥ÄÅÕ½Ðì($(%%    ¥Ñ9 ÀÌØí¥±°Äؤ=È   ¥Ñ9 ÀÌØí¥±°ÌȤ=È   ¥Ñ9 ÀÌØí¥±°Ðà¤=È   ¥Ñ9 ÀÌØí¥±°ØФQ¡¸ÀÌØíMÑÑ¥ôÅÕ½ÐíMÑÑ¥ÈÅÕ½Ðì(%1½°ÀÌØí}5Í    ½á|(%%ÀÌØí¥Q¥µ½ÕÐQ¡¸($$ÀÌØí}5Í   ½á|ôÌäìÅÕ½ÐìÌäìµÀìÅÕ½Ðí
½¹Í½±]ɥѡ5Í  ½à ÅÕ½ÐìµÀìÀÌØí¥±µÀìÌäì°ÅÕ½ÐìÅÕ½ÐìÌäìµÀìÀÌØíÍQ¥Ñ±µÀìÌäìÅÕ½ÐìÅÕ½Ðì°ÅÕ½ÐìÅÕ½ÐìÌäìµÀìÀÌØíÍQáеÀì1µÀì1µÀì1µÀìÌäìÅÕ½ÐìÅÕ½Ðì°ÌäìµÀìÀÌØí¥Q¥µ½ÕеÀìÌäìÅÕ½Ð줤Ìäì(%±Í($$ÀÌØí}5Í  ½á|ôÌäìÅÕ½ÐìÌäìµÀìÅÕ½Ðí
½¹Í½±]ɥѡ5Í  ½à ÅÕ½ÐìµÀìÀÌØí¥±µÀìÌäì°ÅÕ½ÐìÅÕ½ÐìÌäìµÀìÀÌØíÍQ¥Ñ±µÀìÌäìÅÕ½ÐìÅÕ½Ðì°ÅÕ½ÐìÅÕ½ÐìÌäìµÀìÀÌØíÍQáеÀìÌäìÅÕ½ÐìÅÕ½Ðì°ÌäìµÀìÀÌØí¥Q¥µ½ÕеÀìÌäìÅÕ½Ð줤Ìäì(%¹%(%1½°ÀÌØí¥A%ôIÕ¸¡Õѽ%ÑáµÀìÌäì½Õѽ%ÐÍáÕÑ1¥¹ÌäìµÀìÀÌØí}5Í    ½á|°ÌäìÌäì°M]}M!=°Ø¤(%¼($%M±À ÄÀ¤(%U¹Ñ¥°]¥¹á¥ÍÑÌ ÀÌØíÍQ¥Ñ±¤(%%%ÍÉÉä ÀÌØíÍ
%
¡¹¤Q¡¸($%½ÈÀÌØí¥
ôÄQ¼U    ½Õ¹ ÀÌØíÍ
%
¡¹¤´Ä($$%
½¹Ñɽ±MÑQáÐ ÀÌØíÍQ¥Ñ±°ÌäìÌäì°Ìäí    ÕÑѽ¸ÌäìµÀìÀÌØí¥
°ÀÌØíÍ
%
¡¹lÀÌØí¥

t¤($%9áÐ(%±Í($%
½¹Ñɽ±MÑQáÐ ÀÌØíÍQ¥Ñ±°ÌäìÌäì°Ìäí    ÕÑѽ¸ÄÌäì°ÀÌØíÍ
%
¡¹¤(%¹%(%%ÀÌØí¥Q¥µ½ÕÐQ¡¸}
½Õ¹Ñ½Ý¸ ÀÌØíÍQ¥Ñ±°ÀÌØíÍQáаÀÌØí¥Q¥µ½ÕаÀÌØíÍQ¥µ½ÕаÀÌØí¥A%°ÀÌØíMÑÑ¥¤(%1½°ÀÌØí¥MÑ=ÕÐôMѽÕÑI ÀÌØí¥A%¤ìݥѥ¹¸¸¸(%%9ÕµÈ ÀÌØí¥MÑ=ÕФQ¡¸IÑÕɸÀÌØí¥MÑ=ÕÐ(%%%ÍÉÉä ÀÌØíÍ
%
¡¹¤Q¡¸IÑÕɸMÑÉÉ½È Ä°À°È¤(%IÑÕɸMÑÉÉ½È Ä°À°Ä¤)¹Õ¹ìôôÐí}5Í    ½áà()Õ¹}
½Õ¹Ñ½Ý¸ ÀÌØíÍQ¥Ñ±°ÀÌØíÍQáаÀÌØí¥Q¥µ½ÕаÀÌØíÍQ¥µ½ÕаÀÌØí¥A%°ÀÌØíMÑÑ¥¤(%1½°ÀÌØí½É¥}ÑáÐôÀÌØíÍQáаÀÌØí¹½Üô´äää°ÀÌØí¹½ÜôM(%
½¹Ñɽ±MÑQáÐ ÀÌØíÍQ¥Ñ±°ÅÕ½ÐìÅÕ½Ðì°ÀÌØíMÑÑ¥°ÀÌØí½É¥}ÑáеÀì1µÀì1µÀìMÑÉ¥¹½ÉµÐ ÀÌØíÍQ¥µ½ÕаÀÌØí¥Q¥µ½ÕФ°Ä¤(%]¡¥±9½Ð9յȡMѽÕÑI ÀÌØí¥A%°È°QÉÕ¤¤($%%ÀÌØí¹½Ü±ÐìÐìMQ¡¸($$$ÀÌØí¥Q¥µ½ÕдôÄ($$$ÀÌØí¹½ÜôM($$%%ÀÌØí¥Q¥µ½ÕÐQ¡¸
½¹Ñɽ±MÑQáÐ ÀÌØíÍQ¥Ñ±°ÅÕ½ÐìÅÕ½Ðì°ÀÌØíMÑÑ¥°ÀÌØí½É¥}ÑáеÀì1µÀì1µÀìMÑÉ¥¹½ÉµÐ ÀÌØíÍQ¥µ½ÕаÀÌØí¥Q¥µ½ÕФ°Ä¤($%¹%($%M±À ÄÀ¤(%]¹)¹Õ¹ìôôÐí}
½Õ¹Ñ½Ý¸(
Edited by gafrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

  • 8 months later...

@gafrost

Just found this thread and I like it. Small error in your _CountDown Function

If $iTimeout Then ControlSetText($sTitle, "", $Static, $orig_text & @LF & @LF & StringFormat($sTimeout,$iTimeout), 1)

should be

If $iTimeout Then ControlSetText($sTitle, "", $Static, $orig_text & @LF & @LF & StringFormat("%s %d", $sTimeout,$iTimeout), 1)

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Link to comment
Share on other sites

@gafrost

Just found this thread and I like it. Small error in your _CountDown Function

If $iTimeout Then ControlSetText($sTitle, "", $Static, $orig_text & @LF & @LF & StringFormat($sTimeout,$iTimeout), 1)

should be

If $iTimeout Then ControlSetText($sTitle, "", $Static, $orig_text & @LF & @LF & StringFormat("%s %d", $sTimeout,$iTimeout), 1)

Follow $sTimeout, you´ll see it´s a formated string.

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...