Jump to content

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

Open Windows explorer then maximise after it is opened.


  • Please log in to reply
1 reply to this topic
nadamoriarty
  • Members
  • 1 posts
  • Last active: Jun 06 2014 12:30 AM
  • Joined: 05 Jun 2014

Hi, 

 

Really struggling with this simple thing.

I need to open an explorer at a specified location and maximise it after it has been opened.

I have tried many variations of the following.

 

I almost got it working with WinGetTitle BUT it uses an 'illegal' character for autohotkey ....
 

#::
{
WinGet, old_active, ID, A
Run, explore C:\Users\Nathan\Documents\Test FDA
loop{
WinGet, new_active, ID, A
if(ahk_id %new_active% != ahk_id %old_active%)
{
WinMaximize, A
break
}
}
return
}


Jackie Sztuk _Blackholyman
  • Spam Officer
  • 3757 posts
  • Last active: Apr 03 2016 08:47 PM
  • Joined: 28 Feb 2012
Run has an option to get the PID of a window try using that and your if statement needs a little more work ;)
Helping%20you%20learn%20autohotkey.jpg?d

[AHK] Version. 1.1+ [CLOUD] DropBox ; Copy [WEBSITE] Blog ; About