Title: Message from webpage
Windows Text: Do you want to delete this time period?
Buttons: OK and Cancel
Called this script Kill32770.ahk - it lurks in the background killing all #32770 by clicking on ok.
Code: Select all
titleOption:="ahk_exe iexplore.exe ahk_class #32770", GW_OWNER:=4
Loop
{
WinWait, % titleOption
WinGet, procName, ProcessName
, % "ahk_id "DllCall("GetWindow", "Ptr", hWnd:=WinExist(titleOption)
, "UInt", GW_OWNER
, "Ptr")
If % procName=="IEXPLORE.EXE"
ControlClick, % "Button1", % "ahk_id "hWnd
Sleep, 250
Main script end - this kills all command windows
Code: Select all
SendMessage,0x10,,,,C:\WINDOWS\system32\cmd.exe
ExitApp ; closes AutoHotKey forcefully.
Code: Select all
@echo
:loop
start "C:\Program Files\AutoHotkey\AutoHotkey.exe" "C:\Users\me\Desktop\company\Tools\AHK\production\Mass Clearvision Closing Cases\kill32770.ahk"
start "C:\Program Files\AutoHotkey\AutoHotkey.exe" "C:\Users\me\Desktop\company\Tools\AHK\production\Mass Clearvision Closing Cases\mainscript.ahk"
timeout /t 180 >null
taskkill /f /im autohotkey.exe >nul
taskkill /f /t /im iexplore.exe >nul
goto loop