tdash Posted May 12, 2022 Share Posted May 12, 2022 I am working on a program that will bring a window to the front but the name of the window changes based on what is opened (only 1 instance is open at a time). How would I get the name from the prosses EG "explore.exe) that need for winactivate() Here Is what I have if ProcessExists("explorer.exe") Then winactivate("Name of explorer window") Else Run("C:\Windows\explorer.exe") EndIf Link to comment Share on other sites More sharing options...
Luke94 Posted May 13, 2022 Share Posted May 13, 2022 _WinActiveByExe by @SmOke_N may work? Link to comment Share on other sites More sharing options...
mikell Posted May 13, 2022 Share Posted May 13, 2022 _WinAPI_EnumProcessWindows Link to comment Share on other sites More sharing options...
Deye Posted May 13, 2022 Share Posted May 13, 2022 If WinExists("wintitle", "") Then WinActivate(WinGetHandle("wintitle", "")) 😊 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now