SendKey Win app - Forum

Forum Navigation
You need to log in to create posts and topics.

SendKey Win app

Buenas tardes! Tengo una aplicación en la cual envía una combinación de tecla con la función "SendKeys".

Lo que quiero hacer es comprobar si ese aplicación esta abierta o no, antes de ejecutar el comando "SendKeys". Hay alguna forma?

Google translate

Good afternoon! I have an application in which it sends a key combination with the "SendKeys" function. What I want to do is check if that application is open or not, before executing the "SendKeys" command. Is there a way?

 

Muchas Gracias!!

Uploaded files:
  • You need to login to have access to uploads.

Hello!

Here is one way (using the Viber window search example):

.find Viber window id
zmFindWindow "Viber" "" "[ViberHWND]"

.check if Viber is running
If "[ViberHWND]" "=" "0"
AlertBox "Result" "Viber not detected!"
Else
AlertBox "Result" "Viber launched!"
EndIF

 

Used plugin zmFunctions (Пётр Павлов)

Uploaded files:
  • You need to login to have access to uploads.