rbaguley 0 Posted April 23, 2010 Hey, I am using MsgBox to show a simple yes/no dialog for the user to click on. Is there a simple way to control where this box shows up? I am running on a dual monitor system, and I would like it to show on the secondary monitor rather than right bang in the middle of the primary one. Share this post Link to post Share on other sites
AdmiralAlkex 125 Posted April 23, 2010 Here's one way: Run(@AutoItExe & ' /AutoIt3ExecuteLine "WinMove(WinWait(''MsgBox to move'', ''Testing 123''), ''Testing 123'', 0, 0)"') MsgBox(0, "MsgBox to move", "Testing 123") .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Share this post Link to post Share on other sites
Melba23 3,457 Posted April 23, 2010 rbaguley,Or you could use this excellent UDF as a replacement for the MsgBox. M23 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: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Share this post Link to post Share on other sites