Jump to content

Recommended Posts

  • Moderators
Posted

HeinrichA,

Welcome to the AutoIt forums.

If you search the forum there are a few ways you can do this. But it is much easier to use my ExtMsgBox UDF which gives you a lot of options, including position - the link is in my sig below.

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted (edited)

The MsgBox function provided by AutoIt does not provide this feature.
But please have a look at the ExtMsgBox written by Melba.

Edited by water

My UDFs and Tutorials:

  Reveal hidden contents

 

  • Moderators
Posted

HeinrichA,

The AutoIt MsgBox function just calls the Windows API to produce a standard Windows dialog, which is always centred on the screen, so there is no way to pass location parameters.

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted

According to the help file "AutoIt v3 is a freeware BASIC-like scripting language ...".
The Visual Basic MsgBox function as well centers the dialog and has no location parameters.

So: Works as designed.

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted
  On 5/27/2015 at 2:35 PM, Melba23 said:

The AutoIt MsgBox function just calls the Windows API to produce a standard Windows dialog, which is always centred on the screen, so there is no way to pass location parameters.

But it shouldn't be difficult to attach another API call, should it ? For example, calling the SetWindowPos function

  On 5/27/2015 at 2:40 PM, water said:

According to the help file "AutoIt v3 is a freeware BASIC-like scripting language ...".
The Visual Basic MsgBox function as well centers the dialog and has no location parameters.

So: Works as designed.

​Well, that's an argument for another day, but BASIC-like, doesn't mean BASIC-same.

Posted

Correct.

My UDFs and Tutorials:

  Reveal hidden contents

 

  • Moderators
Posted

HeinrichA,

If you feel it is such a lacuna in the language, why not make a feature request in Trac?

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

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
  • Recently Browsing   0 members

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