Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Set the screen Position for FileSelectFolder?


  • Please log in to reply
3 replies to this topic
99freddo
  • Members
  • 3 posts
  • Last active: Jul 09 2018 01:46 AM
  • Joined: 13 Jul 2011

I have an Autohotkey script in which I want to be able to position the "FileSelectFolder" window on the screen instead of its default position.  There are no position parameters for the command and I am not sure how do achieve this.

Thanks



faqbot
  • Members
  • 997 posts
  • Last active:
  • Joined: 10 Apr 2012
You could use the same trick as here with the MsgBox http://www.autohotke...een/#entry62860 - settimer + winmove

mrmike
  • Members
  • 45 posts
  • Last active: Jun 07 2014 04:38 PM
  • Joined: 20 Jan 2007
SetTimer, moveFileSelectFolder, 50
FileSelectFolder, OutputVar, , 3

if OutputVar =
MsgBox, You didn't select a folder.
else
Run, %Outputvar%
return

moveFileSelectFolder:
IfWinActive, Browse For Folder
{
WinMove, Browse For Folder, , 50, 50
SetTimer, moveFileSelectFolder, off
}
return
Posted Image
Vista 32 Home Premium SP2

99freddo
  • Members
  • 3 posts
  • Last active: Jul 09 2018 01:46 AM
  • Joined: 13 Jul 2011

Thanks mrmike - your solution works just fine