jftuga Posted May 12, 2006 Share Posted May 12, 2006 Is there a way to tell a MsgBox where to show up on the screen, or will it always show up in the middle? If not, any workarounds? Thanks, -John Admin_Popup, show computer info or launch shellRemote Manager, facilitates connecting to RDP / VNCProc_Watch, reprioritize cpu intensive processesUDF: _ini_to_dict, transforms ini file entries into variablesUDF: monitor_resolutions, returns resolutions of multiple monitorsReport Computer Problem, for your IT help deskProfile Fixer, fixes a 'missing' AD user profile Link to comment Share on other sites More sharing options...
Daniel W. Posted May 12, 2006 Share Posted May 12, 2006 Try this MsgBox( 0, "Test", "Test") WinMove("Test", 0, 0) Just try it with WinMove it should work nice as well --------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------[quote name='Helge' post='213117' date='Jul 26 2006, 10:22 AM']Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.[/quote] Link to comment Share on other sites More sharing options...
Valuater Posted May 12, 2006 Share Posted May 12, 2006 (edited) Try this MsgBox( 0, "Test", "Test") WinMove("Test", 0, 0) Just try it with WinMove it should work nice as well did you try that before posting???? there is a good one in here "Autoit Wrappers" http://www.autoitscript.com/forum/index.ph...70&hl=Valuater# 8) Edited May 12, 2006 by Valuater Link to comment Share on other sites More sharing options...
Daniel W. Posted May 12, 2006 Share Posted May 12, 2006 Hmm it worked with a GUI so i thought it would work here too --------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------[quote name='Helge' post='213117' date='Jul 26 2006, 10:22 AM']Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.[/quote] Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted May 13, 2006 Moderators Share Posted May 13, 2006 Hmm it worked with a GUI so i thought it would work here tooJust so you know, the MsgBox() command litterally pauses your script until an action is taken within the MsgBox() itself. Xandy 1 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 More sharing options...
jftuga Posted May 15, 2006 Author Share Posted May 15, 2006 Just so you know, the MsgBox() command litterally pauses your script until an action is taken within the MsgBox() itself.I did not know that, thanks for the tip.-John Admin_Popup, show computer info or launch shellRemote Manager, facilitates connecting to RDP / VNCProc_Watch, reprioritize cpu intensive processesUDF: _ini_to_dict, transforms ini file entries into variablesUDF: monitor_resolutions, returns resolutions of multiple monitorsReport Computer Problem, for your IT help deskProfile Fixer, fixes a 'missing' AD user profile Link to comment Share on other sites More sharing options...
jftuga Posted May 15, 2006 Author Share Posted May 15, 2006 did you try that before posting????there is a good one in here "Autoit Wrappers"http://www.autoitscript.com/forum/index.ph...70&hl=Valuater#Thanks.I found _MoveMsgBox() - post #23http://www.autoitscript.com/forum/index.ph...ndpost&p=156429It's pretty crazy, but it works. -John Admin_Popup, show computer info or launch shellRemote Manager, facilitates connecting to RDP / VNCProc_Watch, reprioritize cpu intensive processesUDF: _ini_to_dict, transforms ini file entries into variablesUDF: monitor_resolutions, returns resolutions of multiple monitorsReport Computer Problem, for your IT help deskProfile Fixer, fixes a 'missing' AD user profile Link to comment Share on other sites More sharing options...
MadDogZ Posted July 8, 2017 Share Posted July 8, 2017 I use InputBox instead of MsgBox ,it is the easiest for me! Just ignore the input field and the Return Value. InputBox Displays an input box to ask the user to enter a string. InputBox ( "title", "prompt" [, "default" [, "password char" [, width = -1 [, height = -1 [, left = Default [, top = Default [, timeout = 0 [, hwnd]]]]]]]] ) Parameters title The title of the input box. prompt A message to the user indicating what kind of input is expected. default [optional] The value that the input box starts with. password char [optional] The character to replace all typed characters with in the display. If you want the actual typed character to appear, define with an empty string ("") (default) or a space for the first character. If you provide a multi-character string, only the first character is used for character masking. There are special meanings for the second and subsequent characters. See Remarks. width [optional] The width of the window. height [optional] The height of the window. left [optional] The left side of the input box. By default, the box is centered. top [optional] The top of the input box. By default, the box is centered. timeout [optional] How many seconds to wait before automatically canceling the InputBox(). hwnd [optional] The window handle to use as the parent for this dialog. Link to comment Share on other sites More sharing options...
Developers Jos Posted July 8, 2017 Developers Share Posted July 8, 2017 @MadDogZ, Welcome, Not sure what made you decide to make your first post in the 11 years old thread to answer a question. Doubt people are still waiting for it. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
mikell Posted July 9, 2017 Share Posted July 9, 2017 Especially that it's absolutely not an answer to the initial question Link to comment Share on other sites More sharing options...
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