-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkillJournalOpenDialogue.au3
41 lines (37 loc) · 1.28 KB
/
killJournalOpenDialogue.au3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#cs ----------------------------------------------------------------------------
AutoIt Version: 3.3.14.2
Copyright: Licenced under the terms of GPL v3 or later version
Author: Dietmar Malli
Version: v1.0.2
Script Function:
Kill nonsense with nonsense! I <3 M$!
This script is intended to say YES to the question wheter to open a .jnt
file or not and wait for such questions in the background.
#ce ----------------------------------------------------------------------------
While 0 <> 1 ;forever
While 0 <> 1 ;more forever
Sleep(100) ;wait 100ms between tries..
$handle = 0
$english = WinExists("[REGEXPTITLE:(.*Windows Journal*)]", "contain security hazards")
; Yes Microsoft, ust add a small dash in the title to annoy people trying to automate that thing :D
$german = WinExists("[REGEXPTITLE:(.*Windows-Journal*)]", "Sicherheitsrisiken enthalten")
If $english <> 0 Then
$handle = $english
EndIf
If $german <> 0 Then
$handle = $german
EndIf
If $handle <> 0 Then
ExitLoop
EndIf
WEnd
While 0 <> 1
WinActivate($handle)
$succeeded = WinWaitActive($handle, "", 1)
If $succeeded <> 0 Then
ExitLoop
EndIf
WEnd
Send("{j}")
Sleep(100) ;wait 100ms.. programm won't start again within I guess
WEnd