-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy patheditbox_user_input.CT
More file actions
91 lines (81 loc) · 2.82 KB
/
editbox_user_input.CT
File metadata and controls
91 lines (81 loc) · 2.82 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
<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="26">
<Forms>
<CETrainer Class="TTrainerForm" Encoding="Ascii85">MUKHv!!Qhn)]0Kp+mmH.YXEzJLDUJPNvl+#TnVdLqm]s]EDhe8M/83L%?[NZ^aN2#CInQghbaJA:aE*^z9+)Ur[ma{Siv{dMYn5N^Rsu3S1udByM_k{%)SsRyWsOHG(P,:(llu($QNScO(22Sn@Q}6=Y@i(bjLS)-iLZih}6XwX.!!4?aDnB^fi{CM1JlL[BRR+rYsxBdT5U*Q}7ZgmG=)axg0cQRe:56P:h4J2:Iq/@_V,NHFh.yVyPx,T%,HmTaoG=</CETrainer>
</Forms>
<CheatEntries>
<CheatEntry>
<ID>2</ID>
<Description>"Step 2"</Description>
<LastState Value="7" RealAddress="01740448"/>
<VariableType>4 Bytes</VariableType>
<Address>["Tutorial-i386.exe"+1FD5D0]+480</Address>
</CheatEntry>
<CheatEntry>
<ID>3</ID>
<Description>"Set step 2 to editbox value"</Description>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>[ENABLE]
["Tutorial-i386.exe"+1FD5D0]+480:
{$lua}
-- make sure trainer is visible for user to set timer
if not CETrainer.visible then CETrainer.show() end
-- create timer to autodisable script CE 6.7+
if memrec then
tmr = createTimer()
tmr.OnTimer = function(timer)
memrec.Active = false
timer.destroy()
end
tmr.Interval = 100
end
-- get and parse value
value = tonumber(CETrainer.CEEdit1.Text) -- defaults to base 10
-- return aa script to set value, because why not
if value then
return "dd #" .. value
else
-- store original color if we haven't done so before
if not ogcolor then ogcolor = CETrainer.CEEdit1.Color end
-- set editbox to be red
CETrainer.CEEdit1.Color = 0x0000FF
-- create timer to reset color
tmr = createTimer()
tmr.OnTimer = function(timer)
CETrainer.CEEdit1.Color = ogcolor
timer.destroy()
end
tmr.Interval = 1000
end
[DISABLE]
</AssemblerScript>
</CheatEntry>
</CheatEntries>
<UserdefinedSymbols/>
<LuaScript>--TRAINERGENERATORSTART--
--This is autogenerated code. Changing code in this block will
--get erased and rewritten if you regenerate the trainer code
--Uncomment the following line if this is a Cheat Table format trainer and you don't want CE to show (Tip, save as .CETRAINER alternatively)
--hideAllCEWindows()
RequiredCEVersion=6.7
if (getCEVersion==nil) or (getCEVersion()<RequiredCEVersion) then
messageDialog('Please install Cheat Engine '..RequiredCEVersion, mtError, mbOK)
closeCE()
end
getAutoAttachList().add("Tutorial-i386.exe")
gPlaySoundOnAction=false
CETrainer.show()
function AboutClick()
showMessage(gAboutText)
end
gAboutText=[[This trainer was made by Cheat Engine
www.cheatengine.org]]
function CloseClick()
--called by the close button onClick event, and when closing the form
closeCE()
return caFree --onClick doesn't care, but onClose would like a result
end
--TRAINERGENERATORSTOP--
</LuaScript>
</CheatTable>