nimbus42 Posted May 7, 2022 Share Posted May 7, 2022 i need to send enter to two window the app title changes everytime you launch them.. is there way to controlsend by exe name?? i cant seem make it to work, i hope you can help me, thank you! ControlSend("C:\ChoboboApp\Chobobo1.exe", "", "", "{enter}") sleep(2500) ControlSend("C:\ChoboboApp\Chobobo2.exe", "", "", "{enter}") Link to comment Share on other sites More sharing options...
Developers Jos Posted May 7, 2022 Developers Share Posted May 7, 2022 3 hours ago, nimbus42 said: is there way to controlsend by exe name?? no... it is a windows messages send to a Window handle. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
InnI Posted May 7, 2022 Share Posted May 7, 2022 (edited) 12 hours ago, nimbus42 said: way to controlsend by exe name #include <WinAPIProc.au3> $iPid = Run("Notepad.exe") Sleep(777) $aWin = _WinAPI_EnumProcessWindows($iPid) ;~ WinActivate($aWin[1][0]) ControlSend($aWin[1][0], "", "", "Test" & "{enter}") Edited May 7, 2022 by InnI 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