<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="14">
  <CheatEntries>
    <CheatEntry>
      <ID>0</ID>
      <Description>"Initialization"</Description>
      <Options moHideChildren="1"/>
      <Color>80000008</Color>
      <VariableType>Auto Assembler Script</VariableType>
      <AssemblerScript>[ENABLE]
alloc(fwnd,2048)
registersymbol(fwnd)
label(classname)
registersymbol(classname)
label(wndname)
registersymbol(wndname)
label(hwnd)
registersymbol(hwnd)

fwnd:
 lea eax,[wndname]
 push eax
 lea eax,[classname]
 push eax
 call findwindowa //findWindoww
 mov [hwnd],eax
 ret 4
hwnd:
 dd 00
wndname:{string:'Cheat Engine Tutorial v3'}
 db 43 68 65 61 74 20 45 6E 67 69 6E 65 20 54 75 74 6F 72 69 61
 db 6C 20 76 33 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
classname: {string:'Window'}
 db 57 69 6E 64 6F 77 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 db 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00


[DISABLE]
dealloc(fwnd)

</AssemblerScript>
      <CheatEntries>
        <CheatEntry>
          <ID>3</ID>
          <Description>"WndName"</Description>
          <Color>80000008</Color>
          <VariableType>String</VariableType>
          <Length>40</Length>
          <Unicode>0</Unicode>
          <ZeroTerminate>1</ZeroTerminate>
          <Address>wndname</Address>
        </CheatEntry>
        <CheatEntry>
          <ID>2</ID>
          <Description>"ClassName"</Description>
          <Color>80000008</Color>
          <VariableType>String</VariableType>
          <Length>40</Length>
          <Unicode>0</Unicode>
          <ZeroTerminate>1</ZeroTerminate>
          <Address>classname</Address>
        </CheatEntry>
      </CheatEntries>
    </CheatEntry>
    <CheatEntry>
      <ID>4</ID>
      <Description>"FindWindow"</Description>
      <Color>80000008</Color>
      <VariableType>Auto Assembler Script</VariableType>
      <AssemblerScript>[ENABLE]
createthread(fwnd)

[DISABLE]

</AssemblerScript>
      <CheatEntries>
        <CheatEntry>
          <ID>1</ID>
          <Description>"hWindow"</Description>
          <ShowAsHex>1</ShowAsHex>
          <Color>80000008</Color>
          <VariableType>4 Bytes</VariableType>
          <Address>hwnd</Address>
        </CheatEntry>
      </CheatEntries>
    </CheatEntry>
  </CheatEntries>
  <UserdefinedSymbols>
    <SymbolEntry>
      <Name>classname</Name>
      <Address>01B70048</Address>
    </SymbolEntry>
    <SymbolEntry>
      <Name>wndname</Name>
      <Address>01B70020</Address>
    </SymbolEntry>
    <SymbolEntry>
      <Name>hwnd</Name>
      <Address>01B7001C</Address>
    </SymbolEntry>
  </UserdefinedSymbols>
</CheatTable>
