Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

How can i close all apps that are running with autoit?

$
0
0

How can i close all apps that are running with autoit?

Sometimes script goes wrong due to other running windows.Therefore i want to close everything firstly.

 

First method

$DELAY = 200 Send("!{F4}") Send("!{F4}") Sleep($DELAY) Send("!{F4}") Send("!{F4}") Sleep($DELAY) Send("{ESc}")

Second

Run("taskmgr.exe") WinWait("Windows Task Manager","","SysListView321") ControlSend("Windows Task Manager","","SysListView321","+{DOWN 15}") sleep(200) ControlSend("Windows Task Manager","","SysListView321","!e") Sleep(100) ControlSend("Windows Task Manager","","SysListView321","!f") Sleep(100) ControlSend("Windows Task Manager","","SysListView321","x")

Can anyone help me please???????


Viewing all articles
Browse latest Browse all 12506

Trending Articles