Jump to content

Msgbox Q

Recommended Posts

You could have used InputBox instead of MsgBox, but it

wouldn't be the same though...

Though if you choose InputBox you get a "Ok/Cancel"-option

plus that you can define the positioning...

Yeah... I know... :whistle:

Stupid suggestion...

Link to post
Share on other sites

This won't work, as AutoIt will not do anything until you close the MSGbox

Not even Adlib functions.



WinMove("title","text",100, 100)

You can however have the script write an autoit script, or copy out a premade autoit compiled exe and run that to move your box.

such as:

FileInstall ( "/temp/mymover.exe", "mymove.exe") 
; some script
run("mymove.exe "&$title &" "& $text &" " & $locx&" "&$locy)

; end of script

;mymover.au3  before compile
if $cmdline[0]=4 then

Not tested, but you get the idea.

Edited by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

Link to post
Share on other sites

OR you could something ever better then on ScriptKitty's example :whistle:

In my example you just need one single file :

If $CmdLine[0] = 1 AND $CmdLine[1] = "move"  Then
WinWaitActive("MsgBox title")
WinMove ("MsgBox title", "", 100, 100)

Run("MyScript.exe " & "move")
MsgBox(64, "MsgBox title", "This window will be moved to the upper left corner..")

I've tested it, and it works !

Though you can see the standard position a little time..

Link to post
Share on other sites

You could use imputbox and just remove the imput box with the external program.

; hide inputbox.au3
; hides the Edit1 control on box starting with _e_ and removes the _e_
ControlHide ( "_e_", "", "Edit1" )
$x=WinGetTitle ( "_e_")

No commandline, and you can call out all your size and location in inputbox()

AutoIt3, the MACGYVER Pocket Knife for computers.

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

    No registered users viewing this page.

  • Create New...