notepad - How to press "ALT+F4" using AutoIt -


i new in autoit. have run notepad using following code in autoit:

run("notepad.exe") 

now want quit application using "alt+f4". how press "alt+f4" autoit tool?

you'll want check out documentation autoit - pretty good.

the 1 you're looking is: https://www.autoitscript.com/autoit3/docs/functions/send.htm

keep in mind want make sure window active or you're targeting window.

with that, recommend using : https://www.autoitscript.com/autoit3/docs/functions/controlsend.htm

controlsend() works in similar way send() can send key strokes directly window/control, rather active window.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -