Jump to content

Recommended Posts

Posted

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}")

 

Posted (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 by InnI

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...