-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspeed.lua
More file actions
71 lines (64 loc) · 1.75 KB
/
speed.lua
File metadata and controls
71 lines (64 loc) · 1.75 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
--=== V 1.0 ===--
addresses = include("addresses.lua");
include("functions/attach.lua")
include("classes/statemanager.lua");
include("functions/update.lua")
attach(getWin());
local proc = getProc()
keyboardBufferClear();
function Ftext()
return (memoryReadRepeat("int", proc, addresses.Finteraction) ~= 0)
--[[
if (memoryReadRepeat("int", proc, addresses.Finteraction) ~= 0) then
for i = 0x54,0x134,0x20 do
if memoryReadIntPtr(proc,addresses.FtextAddress, {0x0, i, 0x14, 0x0}) == 1650426113 then
return memoryReadUStringPtr(proc,addresses.FtextAddress, {0x0, i, 0x14, 0x22})
end
end
if memoryReadIntPtr(proc,addresses.FtextAddress, {0x0, 0x84, 0x0}) == 1650426113 then
return memoryReadUStringPtr(proc,addresses.FtextAddress, {0x0, 0x84, 0x22})
end
return ""
else
return ""
end]]
end
function main()
print("Numpad 1: Normal Speed")
print("Numpad 2: Fast Speed")
print("Numpad 3: Super Fast Speed")
local tt = ""
local _time = os.time()
while(true) do
if Ftext() and os.time() - _time >= 1 then keyboardPress(key.VK_F8) _time = os.time() end
--[[
local Ftext = Ftext()
if Ftext ~= "" then
if tt ~= Ftext then
tt = Ftext
print(Ftext)
end
if string.find(Ftext,"Search") then
keyboardPress(key.VK_F)
yrest(1000)
end
end]]
if( keyPressed(key.VK_NUMPAD1) ) then
speed("norm")
yrest(1000)
setWindowName(getHwnd(),speed("get"))
end
if( keyPressed(key.VK_NUMPAD2) ) then
speed(speed("get")*1.33)
yrest(1000)
setWindowName(getHwnd(),speed("get"))
end
if( keyPressed(key.VK_NUMPAD3) ) then
speed(30)
yrest(1000)
setWindowName(getHwnd(),speed("get"))
end
yrest(10)
end
end
startMacro(main, true);