Forum Discussion

jjcaleiscool's avatar
14 years ago

Save window size and position

Hello!

First, I would just like to say that soapUI is fantastic! Thank you for such a wonderful and useful tool.

I just have one feature request - would it be possible to add functionality to save the size and position of the main window? Without this, I have to reposition and resize each time I launch the app. This sounds minor, but it would be a great addition!

Thanks,
Tristan

1 Reply

  • It seems like such a simple feature that all apps should have. SoapUI and many other great apps don't have it.

    I use an AutoHotKey script to do it for me. You may need to adjust the path, the amount of sleep, the coordinates and the width/height for your system.


    ; See http://www.autohotkey.com/docs/commands/SetTitleMatchMode.htm
    ; 2 = A window's title can contain WinTitle anywhere inside it to be a match.
    SetTitleMatchMode, 2

    ; Launch the app.
    Run,"C:\Program Files (x86)\SmartBear\soapUI-4.5.0\bin\soapUI-4.5.0.exe"

    ; Wait long enough for the app to appear.
    Sleep 5000

    ; See http://www.autohotkey.com/docs/commands/WinMove.htm
    ; WinMove, WinTitle, WinText, X, Y [, Width, Height, ExcludeTitle, ExcludeText]
    WinMove,soapUI,,200,0,1500,A_ScreenHeight-30

    WinActivate,soapUI