PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV 25 → WX Winformatica, Example como mandar comandos do teclado sem teclar as teclas com os dedos
WX Winformatica, Example como mandar comandos do teclado sem teclar as teclas com os dedos
Iniciado por BOLLER, abr., 05 2019 3:30 PM - Sem resposta
Membro registado
3.655 mensagems
Popularité : +175 (223 votes)
Publicado em abril, 05 2019 - 3:30 PM
EXTERN "KeyConst.wl"
i is int
// Runs the Calculator application
ExeRun("Calc.exe", exeActive)
// Wait for the calculator to be loaded
Multitask(50)
// Defines the count loop
FOR i = 1 TO 100
// Send the keys to the Calculator application
SendKey(NumToString(i) + "{+}")
END
// Reads the final total
SendKey("=")

// Wait
Multitask(100)

// Sends Alt+F4 to close the Calculator application
SendKey("%{F4}")


--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 99949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/