WinActivate or Run and Activate

Get help with using AutoHotkey and its commands and hotkeys
Posts: 34
Joined: 30 May 2017, 09:24

WinActivate or Run and Activate

21 Nov 2019, 08:35

Hi All,

Sorry for this very basic level question putting here. I tried to search on the forum and Gooble but no luck!

What I just want to do is, if a specific excel document is already open then it should be activated. If it is not open then it shoud be open and then activated.

Below is the code which I am using as of now. Which is opening the document everytime.

Please help. Thanks in advance.

Code: Select all


InputBox, var1, , Enter project,,,,,,,, .prj 1
Sleep, 200

Run, %A_Desktop%\%var1%\Standard Format.xls
Sleep, 300


Return to “Ask For Help”

Who is online

Users browsing this forum: chubbychub, Justinxmusic, MysticHonda, Nixcalo, PuzzledGreatly, RickC, Splongus, tee_rock and 128 guests