Tin2tin Posted October 25, 2012 Share Posted October 25, 2012 How do I move an existing window to new position? (I want a hidden gui to show up under the mouse cursor position over the main gui - I know I can get the position of the cursor by GUIGetCursorInfo(), but not the command to move the hidden gui?) DVD slideshow GUI Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 25, 2012 Moderators Share Posted October 25, 2012 Tin2tin,Perhaps a cursory glance at the Help file might throw up a few possibilities. I would try combinations of the words "Move" and "Win" if I were you. 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 Link to comment Share on other sites More sharing options...
Tin2tin Posted October 25, 2012 Author Share Posted October 25, 2012 Thanks. I've honestly been searching the help file for a solution, in order to move the position of a child gui in relation to the main gui. Is the simplest way to get the position of the main gui and add those values to the position of the cursor for placing the child gui under the cursor? DVD slideshow GUI Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 25, 2012 Moderators Share Posted October 25, 2012 Tin2tin, Why not post the code you are using - it is always easier with an example and anything we write is unlikely to be close to what you already have. 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 Link to comment Share on other sites More sharing options...
Tin2tin Posted October 25, 2012 Author Share Posted October 25, 2012 I guess I originally was looking for an "internal" solution using the gui handles instead of using "external" window titles, but whatever works ;-) And this works fine for me: Local $a $a = GUIGetCursorInfo() Local $size = WinGetPos("Eyeframe Converter "&$version) WinMove("Time code for selection","",$a[0]+$size[0]-90,$a[1]+$size[1]-15) DVD slideshow GUI Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 25, 2012 Moderators Share Posted October 25, 2012 Tin2tin,You can always use a handle in place of the title in any AutoIt function which requires it - look in the Help file under <Using AutoIt - Window Titles and Text (Advanced) and scroll to the bottom of the page. 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 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