-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAuthyCopyHelper.au3
More file actions
53 lines (35 loc) · 1.16 KB
/
AuthyCopyHelper.au3
File metadata and controls
53 lines (35 loc) · 1.16 KB
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
42
43
44
45
46
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Icon=_Icon.ico
#AutoIt3Wrapper_UseX64=y
#AutoIt3Wrapper_Res_Description=AuthyHelper
#AutoIt3Wrapper_Res_Fileversion=1.0.0.9
#AutoIt3Wrapper_Res_Fileversion_AutoIncrement=y
#AutoIt3Wrapper_Res_SaveSource=y
#AutoIt3Wrapper_Res_Language=1033
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
; Authy does not have that ability to copy the one time code using just the keyboard
; This script helps add a ctrl+c hotkey that will copy the one time token currently on screen
Opt("TrayAutoPause", 0)
Opt("MouseCoordMode", 2)
TraySetIcon ("%USERPROFILE%\AppData\Local\authy\Authy Desktop.exe")
$WinTitle = "Twilio Authy"
$HotKetSet = False
While 1
If WinActive($WinTitle) And Not $HotKetSet Then
_ConsoleWrite("Set")
HotKeySet("^c","AuthClickCopy")
$HotKetSet = True
Elseif Not WinActive($WinTitle) And $HotKetSet Then
_ConsoleWrite("Unset")
HotKeySet("^c")
$HotKetSet = False
EndIf
Sleep(100)
Wend
Func AuthClickCopy()
_ConsoleWrite("AuthClickCopy")
ControlClick($WinTitle, "", "", "Left", 1, 350, 510)
Endfunc
Func _ConsoleWrite($Text)
ConsoleWrite(@CRLF&$Text)
EndFunc