BobMandel Posted July 24, 2013 Share Posted July 24, 2013 Forgive me for asking a basic question, but how does one use AutoIt to move a window created by another application? Ihave a game that runs and the game window is always half off the screen, and I would like to fix that using Auto It. Also, I would like to be about to move and resize File Explorer windows I have under Windows 8 (in Windows 8, if you resize a File Explorer window, it resizes all File Explorer windows to that size). Thanks for any help you can provide! Take Care, Bob Link to comment Share on other sites More sharing options...
MilesAhead Posted July 24, 2013 Share Posted July 24, 2013 (edited) http://www.autoitscript.com/autoit3/docs/functions/WinMove.htm See window classes CabinetWClass and ExploreWClass for explorer file windows. (basically you need to test for both to make sure you detect Explorer windows.) Edited July 24, 2013 by MilesAhead BobMandel 1 My Freeware Page Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted July 24, 2013 Moderators Share Posted July 24, 2013 BobMandel,Welcome to the AutoIt forum. You appear to have missed the Forum rules on your way in. Please read them now (there is also a link at bottom right of each page) - particularly the bit about not discussing game interaction. Although you do explain that you want to move other GUIs as well, asking about moving the game GUI is getting perilously close to the limits and I would not want you to get into anything more complicated later on. 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...
BobMandel Posted July 26, 2013 Author Share Posted July 26, 2013 Dear M23, Thanks! I will avoid this in the future! Bob Link to comment Share on other sites More sharing options...
BobMandel Posted July 26, 2013 Author Share Posted July 26, 2013 Dear MilesAhead, Thanks SO much! I will try this tonight.... Can you possibly help with my only other need, wanting to play a music file behind an application? I have a command-line music player, but using a Windows batch file (not AutoIt) it waits until the music is done playing before running the application.... Thanks again for everything! Take Care, Bob Link to comment Share on other sites More sharing options...
iamtheky Posted July 26, 2013 Share Posted July 26, 2013 double posting is also frowned upon ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
BobMandel Posted July 26, 2013 Author Share Posted July 26, 2013 oops! I guess I will not do that again either.... I am not used to such tight forum rules, but I appreciate them and will abide by them.... Bob 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