Announcement

Collapse
No announcement yet.

Side by Side Windows Alignment

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Side by Side Windows Alignment

    Hi Forum, I need some code to launch Firefox window and an opened folder Side By Side.
    Actually I use a workaround based on two .bat files an a .vbs file.

    The .vbs file called "Snap" contains:
    Code:
    dim objShell
    set objShell = CreateObject("Shell.Application")
    objShell.TileVertically
    set objShell = nothing
    First .bat file called "Firefox" contains:
    Code:
    start firefox.exe
    Second .bat file called "Align" contains:
    Code:
    start Firefox.bat
    timeout /t 5
    explorer "C:\Folder"
    timeout /t 2
    start snap.vbs

    Finally, can someone suggest me a way to do all this with an AMS code.
    Thanks as usual

  • #2
    Ok, now I have this situation, a button with the following code:

    Code:
    Window.Minimize(Application.GetWndHandle());
    
    ExFF = Shell.Execute("C:\\Program Files\\Mozilla Firefox\\firefox.exe", "open", "", "", SW_SHOWNORMAL, false);
    Application.Sleep(2000);
    
    ViewFol = Shell.Execute("C:\\Folder", "explore", "", "", SW_SHOWNORMAL, false);
    Application.Sleep(2000);
    
    ExVBS = Shell.Execute("C:\\Snap.vbs", "open", "", "", SW_SHOWNORMAL, false);
    Any suggestion to include the VBScript into the AMS code?

    Comment


    • #3
      Thanks anyway, I solved using Luacom plugin.
      I think AMS is still usable and perfect for many particular situation.
      If only this forum would be like in the past ...

      Comment

      Working...
      X
      😀
      🥰
      🤢
      😎
      😡
      👍
      👎