Jump to content



an idea MsgBox


  • Please log in to reply
11 replies to this topic

#1 Guest_Cubex_*

Guest_Cubex_*
  • Guests

Posted 17 January 2004 - 10:19 AM

please added next parameters for MsgBox - position message window to screen

MsgBox ( flag, "title", "text", [timeout], "xpos", "ypos" )

or

MsgBox ( flag, "title", "text", "xpos", "ypos", [timeout] )

Autoit3 is best :whistle:





#2 jpm

jpm

    a Real GUI/debug lover

  • Developers
  • 8,925 posts

Posted 17 January 2004 - 03:45 PM

please added next parameters for MsgBox - position message window to screen

MsgBox ( flag, "title", "text", [timeout], "xpos", "ypos" )

or

MsgBox ( flag, "title", "text", "xpos", "ypos", [timeout] )

Autoit3 is best    :whistle:

was already proposed to Jon will see if it react on this new ask

#3 scriptkitty

scriptkitty

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 1,274 posts

Posted 17 January 2004 - 04:23 PM

I don't want to change all my scripts, I would suggest:
MsgBox ( flag, "title", "text" [, timeout] [, xpos ][, ypos ] )
AutoIt3, the MACGYVER Pocket Knife for computers.

#4 GEOSoft

GEOSoft

    Sure I'm senile. What's your excuse?

  • MVPs
  • 10,563 posts

Posted 17 January 2004 - 06:10 PM

I don't want to change all my scripts, I would suggest:
MsgBox ( flag, "title", "text" [, timeout] [, xpos ][, ypos ] )

Agreed!! It is a feature I would seldom, if ever, use. I use the default center position and I would hate to change all of the scripts at this point. Adding the parameters at the end of the string would be a better choice. I would also like to see the ability to set the size of MsgBox (also added to the end).
GeorgeQuestion about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else."Old age and treachery will always overcome youth and skill!"

#5 jpm

jpm

    a Real GUI/debug lover

  • Developers
  • 8,925 posts

Posted 17 January 2004 - 11:24 PM

I don't want to change all my scripts, I would suggest:
MsgBox ( flag, "title", "text" [, timeout] [, xpos ][, ypos ] )

That the reason the proposal was with timeout optional at the end
it is part to the dbg-bastard stuff on Yahoo. Perhaps I will update it and put it as for the AutoItV2toV3 under www.hiddensoft.com at least the help file

#6 Dave in PNG

Dave in PNG

    Wayfarer

  • Active Members
  • Pip
  • 50 posts

Posted 05 February 2007 - 11:41 PM

I'd like to see this done also.

Thanks.

#7 MrCreatoR

MrCreatoR

    Must AutoIt!

  • MVPs
  • 3,241 posts

Posted 06 February 2007 - 12:22 AM

Hi to all!
I think that also in this function must be a $Hwnd param:

MsgBox ( flag, "title", "text" [, timeout] [, xpos ][, ypos ][, Hwnd])


It is possible to do this as UDf func, provided by amel27 (from topic about AutoIt on OSzone forum) :

Func _MsgBox ($MsgBoxType, $MsgBoxTitle, $MsgBoxText, $mainGUI)     $ret = DllCall ("user32.dll", "int", "MessageBox", _     "hwnd", $mainGUI, _     "str", $MsgBoxText , _     "str", $MsgBoxTitle, _     "int", $MsgBoxType)     Return $ret [0] EndFunc


But it will be great if the original function will have this extension :whistle: . Thanx!
Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1

Posted Image AutoIt Russian CommunityPosted Image Projects: ATT - Application Translate Tool [new] | BlockIt - Block files & folders [new] | SIP - Selected Image Preview [new] | SISCABMAN - SciTE Abbreviations Manager [new] | AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize ProgramPosted Image UDFs: OnAutoItErrorRegister - Handle AutoIt critical errors [new] | AutoIt Syntax Highlight [new] | Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDFPosted Image Examples: ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation DemoLike the examples/UDFs? Please rate the topic (up-right corner of the post header: Rating Posted Image)* === My topics === *

==========================================================Posted Image==========================================================

AutoIt is simple, subtle, elegant. © AutoIt Team


#8 MrCreatoR

MrCreatoR

    Must AutoIt!

  • MVPs
  • 3,241 posts

Posted 29 March 2007 - 11:51 AM

Also it will be great if the MsgBox will have more buttons - for example, a buttons "Yes to All" and "No to All". It will be usefull with Delete/Move/Copy operations (using in GUI program).

Because now i don't see any way to show MsgBox with 4 buttons (no mather what text on them), except build a msgbox from GUI :whistle:
Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1

Posted Image AutoIt Russian CommunityPosted Image Projects: ATT - Application Translate Tool [new] | BlockIt - Block files & folders [new] | SIP - Selected Image Preview [new] | SISCABMAN - SciTE Abbreviations Manager [new] | AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize ProgramPosted Image UDFs: OnAutoItErrorRegister - Handle AutoIt critical errors [new] | AutoIt Syntax Highlight [new] | Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDFPosted Image Examples: ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation DemoLike the examples/UDFs? Please rate the topic (up-right corner of the post header: Rating Posted Image)* === My topics === *

==========================================================Posted Image==========================================================

AutoIt is simple, subtle, elegant. © AutoIt Team


#9 MHz

MHz

    Just simple

  • MVPs
  • 5,400 posts

Posted 29 March 2007 - 12:33 PM

Also it will be great if the MsgBox will have more buttons - for example, a buttons "Yes to All" and "No to All". It will be usefull with Delete/Move/Copy operations (using in GUI program).

Because now i don't see any way to show MsgBox with 4 buttons (no mather what text on them), except build a msgbox from GUI :whistle:

If you want different text on a standard msgbox then visit here.

As for the postional parameters, they are adnormal and should not be considered. The only missing parameter to make Msgbox whole seems to be the HWnd parameter.

#10 MrCreatoR

MrCreatoR

    Must AutoIt!

  • MVPs
  • 3,241 posts

Posted 29 March 2007 - 03:10 PM

If you want different text on a standard msgbox then visit here.

I have seen this, thanks... but what i mean, is to have more then 3 buttons, so if i want to copy files, and ask user for choose "Yes" (meaning delete current file), "No" (meaning not delete current file), "Yes to All" (meaning delete all files), and "Cancel" (meaning not delete all next files) - and even more then 4 buttons, needed button for "Not to All" so program will "know" that there is no need to replace (if the operation is replacing files, not deleting) all files with the same name.

And yes, hWnd param needed, and the xPos/yPos to, because somtimes you like to show the msgbox at center of your program, not at center of the screen.

I realize that all this can be done by this way or another, but it will be much practical if the built-in function will have this parameters (AFAIK: built-in functions much faster then UDFs :whistle: ).
Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1

Posted Image AutoIt Russian CommunityPosted Image Projects: ATT - Application Translate Tool [new] | BlockIt - Block files & folders [new] | SIP - Selected Image Preview [new] | SISCABMAN - SciTE Abbreviations Manager [new] | AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize ProgramPosted Image UDFs: OnAutoItErrorRegister - Handle AutoIt critical errors [new] | AutoIt Syntax Highlight [new] | Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDFPosted Image Examples: ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation DemoLike the examples/UDFs? Please rate the topic (up-right corner of the post header: Rating Posted Image)* === My topics === *

==========================================================Posted Image==========================================================

AutoIt is simple, subtle, elegant. © AutoIt Team


#11 MHz

MHz

    Just simple

  • MVPs
  • 5,400 posts

Posted 29 March 2007 - 03:25 PM

I have seen this, thanks... but what i mean, is to have more then 3 buttons, so if i want to copy files, and ask user for choose "Yes" (meaning delete current file), "No" (meaning not delete current file), "Yes to All" (meaning delete all files), and "Cancel" (meaning not delete all next files) - and even more then 4 buttons, needed button for "Not to All" so program will "know" that there is no need to replace (if the operation is replacing files, not deleting) all files with the same name.

Trick that can work sometimes is to hold down the shift key on some dialogs and such as the OS picks it up as the yes/no to all.

And yes, hWnd param needed, and the xPos/yPos to, because somtimes you like to show the msgbox at center of your program, not at center of the screen.

If Msgboxes appear where ever they like then I would consider my system possessed by alien gremlins. Not normal at all to have them have a mind of their own when popping up. The centre of the screen gets maximun attention.

Thats is just my view. If gremlins were good then MS would have added them in as default for us.

Edited by MHz, 29 March 2007 - 03:26 PM.


#12 steve8tch

steve8tch

    Universalist

  • Active Members
  • PipPipPipPipPip
  • 288 posts

Posted 31 March 2007 - 10:18 AM

Some time ago - I created this.

enhanced MsgBox, _MsgBox and _Menu included in Menu.au3

It might help.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users