here is an updated example. the script opens several windows and arranges 
them on the desktop.



#NoEnv  ; Recommended for performance and compatibility with future 
AutoHotkey releases.
#Warn  ; Enable warnings to assist with detecting common errors.
;SendMode Input  ; Recommended for new scripts due to its superior speed 
and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.


; FUNCTIONS
ResizeWin(xpos = 0, ypos = 0,width = 0,height = 0)
    {
        WinGetPos,X,Y,W,H,A
        WinMove,A,,%xpos%,%ypos%,%width%,%height%
  }

 
    
^F3::
Run "X:\MLO portable\MLO.exe" "X:\Dropbox\MLO\MLO.ml"

; open help window
WinWaitActive, MLO.ml - MyLifeOrganized ahk_class TfrmMyLifeMain
SendInput, ^!+h
SendInput, ^!g
SendInput, {F3}
Sleep, 500
ResizeWin(3,3,234,261)

;open Hierarchy tree
IfWinNotActive, MLO.ml - MyLifeOrganized ahk_class TfrmMyLifeMain, , 
WinActivate, MLO.ml - MyLifeOrganized ahk_class TfrmMyLifeMain
WinWaitActive, MLO.ml - MyLifeOrganized ahk_class TfrmMyLifeMain
SendInput, ^!+o
SendInput, ^{Numpad9}
SendInput, {F3}
Sleep, 500
ResizeWin(3,266,234,601)

;open Review window
IfWinNotActive, MLO.ml - MyLifeOrganized ahk_class TfrmMyLifeMain, , 
WinActivate, MLO.ml - MyLifeOrganized ahk_class TfrmMyLifeMain
WinWaitActive, MLO.ml - MyLifeOrganized ahk_class TfrmMyLifeMain
SendInput, ^!+o
SendInput, ^{Numpad3}
SendInput, {F3}
Sleep, 500
ResizeWin(241,3,760,463)

return


to get the window coordinates and ahk_class i used "AutoIt3 Window Spy" 
application which comes with Autohotkey
Best regards,
Andrew


воскресенье, 19 мая 2013 г., 2:28:26 UTC+3 пользователь Andrei написал:
>
> Hello !
>
> I have placed on the desktop many separate MLO windows (i used F3 key to 
> create them).
>
> When i relaunch MLO, i shall recreate all those windows manually.
> If somebody knows how to create them with a script, please help.
>
> Thank you
> Best regards,
> Andrew
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"MyLifeOrganized" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mylifeorganized+unsubscr...@googlegroups.com.
To post to this group, send email to mylifeorganized@googlegroups.com.
Visit this group at http://groups.google.com/group/mylifeorganized?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to