GG脚本中文文档-GG脚本便捷库-API-www.proyy.com
GG脚本便捷库-帮助文档-[GG-luaz Library]
- 使用这个库,你可能需要一些lua基础,还有了解gameguardian的一些官方函数的使用,了解他们的限制。
- lua官方文档(英文)
- gameguardian官方文档(英文)
- lua教程|菜鸟教程
版本相关
V3.0
- 新增
- 指针跳转(默认只取一个结果进行指针跳转)
- 数据存储 快速修改:搜索过一次的代码会被保存在table中,当第二次搜索(全相同)相同的代码时,省略搜索,直接修改(清理结果不影响该功能)!
- 增加搜索用时返回和修改用时返回 获取返回用searchtime和edittime
- 优化精确修改(可以选定修改第几个和第几个 例:z:e(‘999_D:{3,6,9}’,true,nil) –修改搜索结果的第三个第六个第九个)type:{number,number,…)
- 修复
- 修复2.4 zsearch如果无修改就会报错的bug
- 修复2.4优化搜索F:number的错误判断
- 修复不保存数据就不能冻结的bug(ps:由于冻结数据必须使用addListItems,而它会保存结果到列表,如果冻结期间删除保存列表,冻结将失效。所以如有需要请使用gg.clearList() 清理保存列表[写在当脚本退出时 or GGUI在搜索修改时被打开时])
- 其他
- 冻结数据如果不用,不要设置false,设置nil(不写[‘冻结数据’])
![图片[1]-GG脚本中文文档-GG脚本便捷库-API-一一网](http://gg.zzerx.cn/imges/stem.png)
加载方法
方法一
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
|
--[[ 不用每次加载网络 不同脚本 不同库版本 不同应用 都可以 相比之前的方法会好很多 ]] function loadFrame(version,forc) local Code= "" ; local nowtime= os.time (); local cfgpath= "/sdcard/.zlib.cfg" ; local PACKAGE=(gg.getTargetInfo(gg.getTargetPackage()).packageName); local libpath=gg.EXT_STORAGE.. "/Android/data/" ..PACKAGE.. "/files/.zlibrary" ..version.. ".lib" ; local isfile= loadfile(libpath); local iscfg= loadfile(cfgpath); local lver= tostring (version):gsub( "%." , "_" ); local lpak=PACKAGE:gsub( "%." , "_" ); local lpaklver=lpak.. "_" ..lver; local tableprint = function (data) local tstr= "" ; if data == nil then print ( "table data is nil" ); end for k, v in pairs (data) do tstr=tstr.. "[\"" .. k.. "\"]=" ..v.. "; " ; end return "lib_updatetime={" ..tstr.. "}" ; end if not version then version= "new" ; end if not forc then forc=nowtime; end function writeCfg() if not lib_updatetime then lib_updatetime={}; end lib_updatetime[lpaklver]=nowtime; cfginfo= io.open (cfgpath, "w+" ); cfginfo:write(tableprint(lib_updatetime)); end function getlibraryfornet() isfile= io.open (libpath, "w+" ); Code=gg.makeRequest(libraryWeb, nil , 'v=' ..version).content or gg.makeRequest(libraryBakWeb, nil , 'v=' ..version).content; writeCfg(); if ( Code== '' ) then Code= 'gg.toast("Get error!! gg-lua库获取失败")' ; end isfile:write(Code); isfile:close();cfginfo:close(); return Code; end function dolibfile() getlibraryfornet(); dofile (libpath); dofile (cfgpath); end ; if not isfile or not iscfg then getlibraryfornet(); dofile (libpath); dofile (cfgpath); else dofile (libpath); dofile (cfgpath); end if not zsearch then print ( "#1 :Load error" ); dolibfile(); elseif not lib_updatetime or not lib_updatetime[lpaklver] then print ( "#2 :No configuration " ); dolibfile(); elseif nowtime-lib_updatetime[lpaklver]>forc*86400 then print ( "#3 :Be overdue" ); dolibfile(); end end -------------上面看不懂就不用看------ loadFrame( "3.1" ,11); --这里才是加载库版本方法 --和检查更新间隔 --检查更新不会提升版本! --参数1设置nil默认加载最新版 --参数2设置-1则每次都加载网络 |
方法二
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
|
--(无需每次加载网络) --(不同脚本调用不同库的时候会失效/ps:比如你自己加载的是3.1 别人脚本用的是3.0 他会默认加载你的 ,所以可能会导致一些不可预知的错误) function loadFrame(vision,forc) function refile(path) io.open (path, "w" ):write([[ function zdc() ]]..getLibrary(vision)..[[ function tocheckz() to_check_z= ' ]]..os.time()..[[' return to_check_z end end ; io.open (]].. string.format ( '%q' ,path)..[[, "w" ):write( string.dump (zdc, false ));io.close()]]) io.close(); pcall (loadfile(path)); pcall (loadfile(path)); end function getLibrary(vision) if not vision then vision= "new" end local Code=gg.makeRequest( 'http://www.proyy.com/library.php' , nil , 'v=' ..vision).content or gg.makeRequest( 'http://www.proyy.com/library.php?v=' ..vision).content if ( Code== '' ) then Code= 'gg.alert("load error!! gg-lua库加载失败")' ; end return Code; end if ( not forc) then forc= os.time () end local path= "/sdcard/.zlibrary.cfg" ; --如果GG读取你的手机路径不是/sdcard/xxx 且导致此代码失效的情况 就修改这个路径(或者如果服务器出现问题直接复制群文件库版本代码到这个文件里面,在最后添加代码 function tocheckz() to_check_z=os.time() return to_check_z end ) if ( not loadfile(path) or io.open (path, "r" ):read( '*a' )== '' ) then refile(path) else pcall (loadfile(path)); if not zsearch or not tocheckz or os.time ()-tocheckz()>forc*86400 then refile(path) end end end loadFrame( nil ,15) --loadFrame(版本号,检查间隔). |
方法三
1
2
3
4
5
6
7
8
|
-- (需要每次加载网络) --[[只要涉及makeRequest获取gg.zzerx.cn的 数据,都有可能因服务器问题而获取失败。 ]] pcall ( load (gg.makeRequest( 'http://gg.zzerx.cn/library.php' , nil , 'v=3.0' ).content or gg.makeRequest( 'http://gg.zzerx.cn/library.php?v=new' ).content)) -- v=版本号 -- v=nwe 默认加载最新版库 |
API文档列表
Before reading the documents, you need to know what these things represent,Maybe not.
1
2
|
英文符号 ' | ' 在库中,一般是用来进行不同的项目操作分隔 英文符号 ' _ ' 在库中,一般是用来进行一个项目内的不同参数分隔 |
1
|
z 和 _z 在库中是关键字变量 脚本中如重定义了此变量,库会报错(为什么用这么让人不愉快的一个变量当关键字?当时脑抽) |
1
2
3
4
5
6
7
8
9
10
|
数值类型>> D= 'DWROD' = 4 E= 'DOUBLE' = 64 Q= 'QWORD' = 32 F= 'FLOAT' = 16 W= 'WORD' = 2 B= 'BYTE' = 1 A= 'AUTO' = 127 X= 'XOR' = 8 |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
内存范围简写>> B= 'REGION_BAD' ; A= 'REGION_ANONYMOUS' ; As= 'REGION_ASHMEM' ; Ca= 'REGION_C_ALLOC' ; Cb= 'REGION_C_BSS' ; Cd= 'REGION_C_DATA' ; Ch= 'REGION_C_HEAP' ; Xa= 'REGION_CODE_APP' ; Xs= 'REGION_CODE_SYS' ; J= 'REGION_JAVA' ; Jh= 'REGION_JAVA_HEAP' ; O= 'REGION_OTHER' ; PS= 'REGION_PPSSPP' ; S= 'REGION_STACK' ; |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
SIGN简写>> SIGN和RAN之间用 ';' 隔开 同样不要有空格 SIGN:E= 'SIGN_EQUAL' ; =536870912 SIGN:FE= 'SIGN_FUZZY_EQUAL' ; =536870912 SIGN:FG= 'SIGN_FUZZY_GREATER' ; =67108864 SIGN:FL= 'SIGN_FUZZY_LESS' ; =134217728 SIGN:FNE= 'SIGN_FUZZY_NOT_EQUAL' ; =268435456 SIGN:GOE= 'SIGN_GREATER_OR_EQUAL' ; =67108864 SIGN:LOE= 'SIGN_LESS_OR_EQUAL' ; =134217728 SIGN:NE= 'SIGN_NOT_EQUAL' ; =268435456 [ '搜索修改' ]= '[SIGN:E]12345D;123F::500_F' RAN简写>> RAN:搜索内存地址开始~搜索内存地址结束 默认 0~-1 [ '搜索修改' ]= '[SIGN:E;RAN:0x000066ff~0xffffffff]12345D;123F::500_F' |
目录∙∙∙∙∙∙
addListItems():添加项目到列表中alert() : 警告框
BUILD :建立
bytes() :字节CACHE_DIR : gg
choice() :选择、选定clearList() :清除列表clearResults() :清除结果
copyMemory() :复制数据、内存copyText() :将文本复制到剪贴板dumpMemory() :丢、转到内存editAll() :编辑所有EXT_CACHE_DIR : 缓存目录EXT_FILES_DIR : 文件目录FILES_DIR :文件夹目录
FREEZE_IN_RANGE :冻结在这个范围里FREEZE_MAY_DECREASE : 冻结可以减少的值FREEZE_MAY_INCREASE :冻结可以增加的值FREEZE_NORMAL :冻结正常、常态的值
getFile() :获取文件名getLine() :获取行数getListItems() : getLocale() :获取地点~~~
getRanges() :获取内存区域内的getRangesList() :获取内存区域列表getResultCount() :获取结果计数getResults() : 获取结果并加载getSpeed() :获取加速getTargetInfo() :获取目标信息getTargetPackage() : 获取进程包名getValues() : 获取值getValuesRange() : 获取值的范围gotoAddress() :转到内存地址isPackageInstalled() :检查包名安装isProcessPaused() :进程是否暂停isVisible() : UI是否可见LOAD_APPEND : 加载附加LOAD_VALUES :加载值LOAD_VALUES_FREEZE : 加载值冻结
loadList() :加载列表multiChoice() : 多种选择PACKAGE :包名
processKill() :杀死、结束进程
GG脚本中文文档(www.proyy.com)
processPause() : 暂停进程processResume() :恢复进程processToggle() :切换进程prompt() :提示REGION_ANONYMOUS : gg REGION_ASHMEM : gg REGION_BAD : gg REGION_C_ALLOC : gg REGION_C_BSS : gg REGION_C_DATA : gg REGION_C_HEAP : gg REGION_CODE_APP : gg REGION_CODE_SYS : gg REGION_JAVA : gg REGION_JAVA_HEAP : gg REGION_OTHER : gg REGION_PPSSPP : gg REGION_STACK : gg
removeListItems() : 删除列表中的项目removeResults() :移除列表中的结果require() : gg
SAVE_AS_TEXT :保存as?文件saveList() :保存列表searchAddress() : 搜索地址
GG脚本中文文档(www.proyy.com)
searchFuzzy() : 未知搜索searchNumber() :指定数值搜索setRanges() :设置范围setSpeed() :设置速度setValues() : 设置值setVisible() : gg
SIGN_EQUAL :标志、标记相同SIGN_FUZZY_EQUAL :标记_未知_相同SIGN_FUZZY_GREATER : gg SIGN_FUZZY_LESS : gg SIGN_FUZZY_NOT_EQUAL : gg SIGN_GREATER_OR_EQUAL : gg SIGN_LESS_OR_EQUAL : gg SIGN_NOT_EQUAL : gg
skipRestoreState() :跳跃恢复声明? sleep() :休眠
startFuzzy() :开始模糊搜索timeJump() : 时 间 跳 跃 toast() :显示消息TYPE_AUTO :类型自动TYPE_BYTE :类型字节TYPE_DOUBLE :类型DOUBLE TYPE_DWORD :类型DWORD TYPE_FLOAT : gg
GG脚本中文文档(www.proyy.com)
– a –
addListItems():添加项目到列表中
官方解释:将项添加到保存列表中。Add items to the saved list.
其他解释:暂无
用法 |
mixed addListItems(table items) //add=添加 //list=列表 //Items=项目、数组 |
参数 items |
A table with a list of items to add. Each element is a table with the following fields: ad constants TYPE_*, required), name (string, optional), freeze(boolean, optional, default default FREEZE_NORMAL), freezeFrom (string, optional), freezeTo (string, optional). |
返回值 returns |
//TRUE或字符串错误。 True or string with error. |
实例 | — 从另一个调用检索表 |
Examples | gg.searchNumber(’10’, gg.TYPE_DWORD) |
t = gg.getResults(5) — load items | |
t[1].value = ’15’ | |
t[1].freeze = true | |
print(‘addListItems: ‘, gg.addListItems(t)) | |
— 创建一个表作为一个项目列表 | |
t = {} | |
t[1] = {} | |
t[1].address = 0x18004030 — 一些所需的地址 | |
t[1].flags = gg.TYPE_DWORD | |
t[1].value = 12345 | |
t[2] = {} | |
t[2].address = 0x18004040 — 另一个所需的地址 | |
t[2].flags = gg.TYPE_BYTE | |
t[2].value = ‘7Fh’ | |
t[2].freeze = true | |
t[3] = {} |
GG脚本中文文档(www.proyy.com)
t[3].address = 0x18005040 — 另一个所需的地址t[3].flags = gg.TYPE_DWORD t[3].value = ‘777’ t[3].freeze = true t[3].freezeType = gg.FREEZE_MAY_INCREASE t[4] = {} t[4].address = 0x18007040 — 另一个所需的地址t[4].flags = gg.TYPE_DWORD t[4].value = ‘7777’ t[4].freeze = true t[4].freezeType = gg.FREEZE_IN_RANGE t[4].freezeFrom = ‘6666’ t[4].freezeTo = ‘8888’ print(‘addListItems: ‘, gg.addListItems(t)) |
alert() : 警告框
官方解释:显示一个有几个按钮的对话框。返回结果取决于按钮的哪一个被按下。对话框可以用“后退”按钮取消(返回代码0)。
Displays a dialog with several buttons.
The return result depends on which of the buttons was pressed. The dialog can be canceled with the “Back” button (return code 0).
其他解释:方法用于显示带有一条指定消息和一个 确认 按钮的警告框
用法 | int alert(string text,string positive = ‘ok’,string negative = nil,string neutral = nil ) //alert=警报 |
参数 items |
text Text message. //文本消息 positive Text for positive button. This button return code 1. //正面按钮的文本。negative Text for negative button. This button return code 2. neutral Text for neutral button. This button return code 3. //positive=正的 //negative=负的 //neutral=中立 |
返回值 returns |
//如果对话框取消- 0,否则:1为正,2为负,3为中性按钮。 if dialog canceled – 0, else: 1 for positive, 2 for negative, 3 for neutral buttons. |
实例 Examples |
gg.alert(‘Script ended’) — Show alert with single ‘ok’ button //用单“OK”按钮显示警报gg.alert(‘Script ended’, ‘Yes’) — Show alert with single ‘Yes’ button //用单“是”按钮显示警报gg.alert(‘A or B?’, ‘A’, ‘B’) — Show alert with two buttons //用两个按钮显示警报gg.alert(‘A or C?’, ‘A’, nil, ‘C’) — Show alert with two buttons //用两个按钮显示警报gg.alert(‘A or B or C?’, ‘A’, ‘B’, ‘C’) — Show alert with three buttons //用三个按钮显示警报 |
GG脚本中文文档(www.proyy.com)
– b –
BUILD :建立
官方解释:在GG模拟器建立数字?? Number build of the GameGuardian.
其他解释:build 方法 重新连编项目,或者根据项目创建一个应用程序文件 (.app)、动态链接库 (.dll) 或可执行文件 (.exe)
用法 | int BUILD //BUILD=建立 |
例如 E.g. |
4546 |
bytes() :字节
官方解释:获取指定编码中的文本字节。
Gets the text bytes in the specified encoding.
其他解释:数据存储是以“字节”(Byte)为单位,数据传输是以大多是以“位”(bit,又名“比特”)为单位,一个位就代表一个0或1(即二进制),每8个位(bit,简写为b)组成一个字节(Byte,简写为B),是最小一级的信息单位。
用法 |
string bytes(string text, string encoding = ‘UTF-8’ ) //bytes=字节。由八个比特组成。可以理解为8个计算机中的回路 //encoding=编码 |
参数 items |
text encoding Possible values: ‘ISO-8859-1’, ‘US-ASCII’, ‘UTF-16’, ‘UTF-16BE’, ‘UTF-16LE’, ‘U |
返回值 returns |
//具有指定编码中的一组字节的表。 A table with a set of bytes in the specified encoding. |
print(‘UTF-8’, gg.bytes(‘example’)) | |
实例 | print(‘UTF-8’, gg.bytes(‘example’, ‘UTF-8’)) |
Examples | print(‘UTF-16’, gg.bytes(‘example’, ‘UTF-16LE’)) |
//print打印的意思 |
– c –
CACHE_DIR : gg
官方解释:GameGuardian特定缓存目录在文件系统上的绝对路径。 这些文件将是在设备存储空间不足时被首先删除的文件。 这些文件将被删除时无法保证。 注意:你不应该依赖系统为你删除
GG脚本中文文档(www.proyy.com)
这些文件; 对于缓存文件占用的空间量,应始终具有合理的最大值(如1 MB),并在超过该空间时修剪这些文件。 如果您的应用程序需要更大的缓存(大于1 MB),则应该使用
EXT_CACHE_DIR。 放在内存中。 其他应用程序不可见。 可以由用户清除。
The absolute path to the GameGuardian specific cache directory on the filesystem. These files will be ones that get deleted first when the device runs low on storage. There is no guarantee when these files will be deleted.
Note: you should not rely on the system deleting these files for you; you
should always have a reasonable maximum, such as 1 MB, for the amount of space you consume with cache files, and prune those files when exceeding that space. If your app requires a larger cache (larger than 1 MB), you should
use EXT_CACHE_DIR instead.
Placed in internal memory. Not visible for other apps. Can be cleared by user.
其他解释:
用法 | string CACHE_DIR |
例如 E.g. |
‘/data/data/catch_.me_.if_.you_.can_/cache’ |
choice() :选择、选定
官方解释:显示列表中的选择对话框。列表是由项目表组成的。选定设置默认情况下将选择的表的索引。项目必须是数字阵列,如果你想在指定的顺序显示项目。
Displays the selection dialog from the list.
The list is made up of the items table. Selected sets the index of the table that will be selected by default. Items must be numberic-array if you want show items in specified order.
其他解释:从列表,元组或字符串返回一个随机项。
用法 |
mixed choice(table items, string selected = nil, string message = nil ) |
参数 items |
items Table with items for choice. selected Is not specified or is specified as nil, then the list will be without the default message Specifies the optional title of the dialog box. |
返回值 returns |
//如果对话框已取消,或选定项的索引,则为0。 nil if the dialog has been canceled, or the index of the selected item. |
实例 Examples |
print(‘1: ‘, gg.choice({‘A’, ‘B’, ‘C’, ‘D’})) — show list of 4 items //显示列表选定的4个项目 |
GG脚本中文文档(www.proyy.com)
目
clearList() :清除列表官方解释:清除保存列表。Clear the saved list.
其他解释:
用法 | mixed clearList() |
参数 items |
|
返回值 returns |
//TRUE或字符串错误。 true or string with error. |
实例 Examples |
print(‘clearList:’, gg.clearList()) |
clearResults() :清除结果官方解释:清除搜索结果列表。Clear the list of search results.
其他解释:
用法 | clearResults() |
copyMemory() :复制数据、内存
官方解释:复制内存Copy memory.
其他解释:将一块内存的数据从一个位置复制到另一个位置
GG脚本中文文档(www.proyy.com)
int bytes ) |
|
参数 items |
from Address for source of copy. //Address=地址 source=来源to Address for destination of copy. //destination=目的地 bytes Amount bytes to copy. //Amount=数量。 要复制的字节数。 |
返回值 returns |
TRUE或字符串错误。 true or string with error. |
实例 Examples |
print(‘copyMemory:’, gg.copyMemory(0x9000, 0x9010, 3)) — copies 3 bytes 0x9000-0x9002 to 0x9010-0x9012 //拷贝3字节0x9000-0x9002到0x9010- |
copyText() :将文本复制到剪贴板
官方解释:将文本复制到剪贴板。如果第二个参数为真或未指定,则文本将从英文区域转换为选定的数字。
Copy text to the clipboard.
If the second parameter is true or not specified, the text will be converted as a number from the English locale to the selected one.
其他解释:
。
– d –
dumpMemory() :丢、转到内存官方解释:将内存转储到磁盘上的文件。Dump memory to files on disk.
其他解释:存一个当时内存的副本,可以用工具打开复原当时的情况。因为东西都在内存里
用法 | mixed dumpMemory(long from,long to,string dir ) |
GG脚本中文文档-GG脚本便捷库-API(www.proyy.com)
录
– e –
editAll() :编辑所有
官方解释:编辑所有搜索结果。在调用此方法,你必须通过负载的结果得到的结果。值只适用于指定类型的结果。
Edit all search results.
Before call this method you must load results via getResults. Value will be applied only for results with specified type.
其他解释:
用法 | mixed editAll(string value,int type ) |
参数 items |
value String with data for edit. //用于编辑数据的值字符串。 type One constant from TYPE_*. //一个_ *型等类型。 constant=常数 |
返回值 returns |
//带有错误的更改或字符串计数的int。 Int with count of changes or string with error. |
实例 Examples |
gg.searchNumber(’10’, gg.TYPE_DWORD) gg.getResults(5) gg.editAll(’15’, gg.TYPE_DWORD) — with float: //具有浮点型的gg.searchNumber(‘10.1’, gg.TYPE_FLOAT) gg.getResults(5) gg.editAll(‘15.2’, gg.TYPE_FLOAT) — with XOR mode //具有XOR模式的gg.searchNumber(’10X4′, gg.TYPE_DWORD) gg.getResults(5) gg.editAll(’15X4′, gg.TYPE_DWORD) |
//searchNumber=搜索数字 //getResults=获取结果 //editAll=编辑所有 //TYPE_DWORD=双字(四字节)类型。32位整数 //TYPE_FLOAT=浮点(四字节)类型 。有效位数6~7位、指数长度8位、尾数长度23位 |
EXT_CACHE_DIR : 缓存目录
gg
官方解释:绝对路径的gameguardian特定目录的主要共享/外部存储设备,gameguardian可以缓存文件拥有。如果共享存储当前不可用作为cache_dir返回相同的值。通常放在外部存储器中。 其他应用程序可见。可以由用户清除。
The absolute path to the GameGuardian specific directory on the primary shared/external storage device where the GameGuardian can place cache files it owns.
May return same value as CACHE_DIR if shared storage is not currently available. Usually placed in external memory. Visible for other apps. Can be cleared by user.
其他解释:
用法 |
string EXT_CACHE_DIR //DIR=目录 //CACHE=缓存 |
例如 E.g. |
‘/sdcard/Android/data/catch_.me_.if_.you_.can_/files’ |
EXT_FILES_DIR : 文件目录
gg
官方解释:绝对路径的目录在初级共享/外部存储设备,gameguardian可以持久文件拥有。如果共享存储当前不可用作为files_dir返回相同的值。通常放在外部存储器中。其他应用程序可见。 The absolute path to the directory on the primary shared/external storage device where the GameGuardian can place persistent files it owns.
May return same value as FILES_DIR if shared storage is not currently available. Usually placed in external memory. Visible for other apps.
其他解释:
用法 | string EXT_FILES_DIR //FILES=文件 |
例如 E.g. |
‘/sdcard/Android/data/catch_.me_.if_.you_.can_/files’ |
– f –
FILES_DIR :文件夹目录
gg
官方解释:目录的控股gameguardian文件的路径。放置在内存中。其他应用程序不可见。The path of the directory holding GameGuardian files.
Placed in internal memory. Not visible for other apps.
其他解释:
用法 | string FILES_DIR //FILES=文件夹 |
例如 E.g. |
‘/sdcard/Android/data/catch_.me_.if_.you_.can_/files’ |
FREEZE_IN_RANGE :冻结在这个范围里
gg
官方解释:标志字段“freezetype”中添加项目,是GetListItems。允许值仅在指定范围内更改。
Flag for field “freezeType” in addListItems, getListItems. Allows the value to change only within specified range.
其他解释:
用法 |
int FREEZE_IN_RANGE //FREEZE=冻结 //RANGE=范围 |
FREEZE_MAY_DECREASE : 冻结可以减少的值
gg
官方解释:标志字段“freezetype”中添加项目,是GetListItems。允许值减小,但不允许增加。
Flag for field “freezeType” in addListItems, getListItems. Allows the value to increase, but does not allow to decrease.
其他解释:
//DECREASE=减少 |
FREEZE_MAY_INCREASE :冻结可以增加的值
gg
官方解释:标志字段“freezetype”中添加项目,是GetListItems。允许值增加,但不允许减少。
Flag for field “freezeType” in addListItems, getListItems. Allows the value to increase, but does not allow to decrease.
其他解释:
用法 |
int FREEZE_MAY_INCREASE //FREEZE=冻结 //INCREASE=增加 |
FREEZE_NORMAL :冻结正常、常态的值
gg
官方解释:标志字段“freezetype”中添加项目,是GetListItems。冻结值,不允许它改变。默认使用。
Flag for field “freezeType” in addListItems, getListItems. Freezes the value, not allowing it to change. Used by default.
其他解释:
用法 | int FREEZE_NORMAL //NORMAL=正常、常态 |
– g –
getFile() :获取文件名
gg
官方解释:获取当前正在运行的脚本的文件名。
Gets the filename of the currently running script.
其他解释:
的
getLine() :获取行数
gg
官方解释:获取正在执行脚本的当前行数。
Gets the current line number of the script being executed.
其他解释:
用法 | int getLine() //Line=行数 |
返回值 returns |
The current line number of the script being executed. //正在执行脚本的当前行号。 |
例如 E.g. |
24 |
getListItems() :
gg
官方解释:将保存列表的内容作为表返回。
Return the contents of the saved list as a table.
其他解释:
用法 |
mixed getListItems() //List=列表 //Items=数组 |
返回值returns | Table with results or string with error. Each element is a table with the following fields address (long), value (string with a value), flags (one of the constants TYPE_*), name ( freeze (boolean), freezeType (one of the constants FREEZE_*), freezeFrom (string), free |
实例 Examples |
local r = gg.getListItems() print(‘Items: ‘, r) print(‘First item: ‘, r[1]) print(‘First item address: ‘, r[1].address) print(‘First item value: ‘, r[1].value) |
getLocale() :获取地点~~~
gg
官方解释:获取与当前选定的地点在gameguardian字符串。
Gets the string with the currently selected locale in the GameGuardian.
其他解释:
在
getRanges() :获取内存区域内的
gg
官方解释:返回内存区域作为标志region_ *的位掩码。
Return memory regions as bit mask of flags REGION_*.
其他解释:读取指定主键范围内的数据。
用法 | int getRanges() |
返回值 returns |
Bit mask of flags REGION_*. |
getRangesList() :获取内存区域列表
gg
官方解释:获取所选进程的内存区域列表。
Get the list of memory regions of the selected process.
其他解释:
e a
getResultCount() :获取结果计数
gg
官方解释:获取结果的个数。
Get the number of found results.
其他解释:
用法 | long getResultCount() |
返回值 returns |
//发现结果的个数。 The number of found results. |
gg.searchNumber(’10’, gg.TYPE_DWORD) | |
print(‘Found: ‘, gg.getResultCount()) | |
实例 | 注释:搜索数字10,他是一个双字类型。打印出来,打印格式是 |
Examples | 找到: gg.getResultCount返回的XX结果个数 |
//search=搜索 | |
//Found=找到 |
getResults() : 获取结果并加载
gg
官方解释:将结果加载到结果列表中,并将其返回为表。
Load results into results list and return its as a table.
其他解释:
用法 |
mixed getResults(int maxCount) //mixed=混合型 //max=最大 //Count=计数 |
参数 items |
maxCount Max count of loaded results. //最大加载结果计数。 |
返回值 returns |
//带结果的表或带有错误的字符串。 Table with results or string with error. Each element is a table with three keys: address |
实例 Examples |
gg.searchNumber(’10’, gg.TYPE_DWORD) local r = gg.getResults(5) print(‘First 5 results: ‘, r) print(‘First result: ‘, r[1]) print(‘First result address: ‘, r[1].address) print(‘First result value: ‘, r[1].value) print(‘First result type: ‘, r[1].flags) |
getSpeed() :获取加速
gg
官方解释:从加速获取当前速度。
Get the current speed from the speedhack.
其他解释:
用法 |
double getSpeed() //double=加倍、双倍 //Speed=加速 |
返回值 returns |
//从目前的速度加速。 The current speed from the speedhack. |
getTargetInfo() :获取目标信息
gg
官方解释:如果可能的话,获取有关所选进程的信息的表。字段集可以是不同的。打印结果表以查看可用字段。
Get a table with information about the selected process if possible.
The set of fields can be different. Print the resulting table to see the available fields.
Possible fields: firstInstallTime, lastUpdateTime, packageName, sharedUserId, sharedUserLabel, versionCode, versionName, activities (name, label), installer, enabledSetting, backupAgentName, className, dataDir, descriptionRes, flags, icon, labelRes, logo, manageSpaceActivityName, name, nativeLibraryDir, packageName, permission, processName, publicSourceDir, sourceDir, targetSdkVersion, taskAffinity, theme, uid, label.
Google about PackageInfo and ApplicationInfo in Android for means each field.
其他解释:
用法 |
mixed getTargetInfo() //Target=目标 //Info=信息 |
返回值 returns |
//包含所选进程或零的信息的表。 A table with information about the selected process or nil. |
实例 Examples |
— check for game version //检查是游戏版local v = gg.getTargetInfo() if v.versionCode ~= 291 then print(‘This script only works with game version 291. You have game version ‘, v.versionCod os.exit() end 解释:定义变量v等于getTargetInfo这个函数,如果这个目标信息的版本号约等于291则打印:xxxx |
//version=版本 //Code=代码、号 |
getTargetPackage() : 获取进程包名
gg
官方解释:如果可能的话,获取所选进程的包名。
Get the package name of the selected process, if possible.
其他解释:
用法 |
mixed getTargetPackage() //Package=包名 //包名主要用于系统识别应用,几乎不会被最终用户看到。 //包名的命名规则:可以包含大写字母(A到Z)、小写字母(a到z)、数字和下划线,可以用点(英 //例如:com.163.WoDeYouXiang |
返回值 returns |
//所选进程的包名为字符串或零。 The package name of the selected process as string or nil. |
例如 E.g. |
‘com.blayzegames.iosfps’ |
getValues() : 获取值
gg
官方解释:获取项目列表的值。
Gets the values for the list of items.
其他解释:
用法 | mixed getValues(table values) //Values=值 |
参数 items |
values The table as a list of tables with address and flags fields (one of the constants |
返回值 returns |
//带有错误的结果或字符串的新表。每个元素是三个键的表:地址(长)、价值(价值的字符串), A new table with results or string with error. Each element is a table with three keys: a |
实例 Examples |
gg.searchNumber(’10’, gg.TYPE_DWORD) local r = gg.getResults(5) — load items //加载项 r = gg.getValues(r) — refresh items values //刷新项目值print(‘First 5 results: ‘, r) print(‘First result: ‘, r[1]) print(‘First result address: ‘, r[1].address) print(‘First result value: ‘, r[1].value) print(‘First result type: ‘, r[1].flags) local t = {} t[1] = {} t[1].address = 0x18004030 — some desired address //一些所需的地址t[1].flags = gg.TYPE_DWORD t[2] = {} t[2].address = 0x18004040 — another desired address //另一个所需的地址t[2].flags = gg.TYPE_BYTE t = gg.getValues(t) print(t) |
//TYPE_BYTE=字节。 字节长度1字节,范围0~255 |
getValuesRange() : 获取值的范围
gg
官方解释:获取传递值表的内存区域。
Get the memory regions for the passed value table.
其他解释:
//Range=范围 | |
参数 items |
values The table can be either an address list or a list of tables with the address field. |
返回值 returns |
//一个表,其中每一个键,从原始表,将与一个短区域代码(例如,CH)相关联。或带错误的字符串 A table where each key, from the original table, will be associated with a short region |
实例 Examples |
print(‘1: ‘, gg.getValuesRange({0x9000, 0x9010, 0x9020, 0x9030})) — table as a list of addresses //表作为地址列表gg.searchNumber(’10’, gg.TYPE_DWORD) local r = gg.getResults(5) print(‘2: ‘, r, gg.getValuesRange(r)) — table as a list of tables with the address field //表作为具有地址字段的表的列表 |
gotoAddress() :转到内存地址
gg
官方解释:转到内存编辑器中的地址。
Go to the address in the memory editor.
其他解释:
用法 |
gotoAddress(long address) //goto=跳转、转到 //Address=地址 |
参数 items |
pkg String with package name. //pkg包名称的字符串。 |
返回值 returns |
//如果安装了包,则为true;否则为false。 True if package installed or false otherwise. |
实例 Examples |
print(‘Game installed:’, gg.isPackageInstalled(‘com.blayzegames.iosfps’)) |
– i –
isPackageInstalled() :检查包名安装
gg
官方解释:检查指定的应用程序是否通过软件包名称安装在系统上。
Check whether the specified application is installed on the system by the package name.
其他解释:
//bool=布尔。布尔型变量的值只有真true和假false。 //Package=包名 //Installed=安装 |
|
参数 items |
pkg String with package name. //pkg包名称的字符串。 |
返回值 returns |
//如果安装了包,则为true;否则为false。 True if package installed or false otherwise. |
实例 Examples |
print(‘Game installed:’, gg.isPackageInstalled(‘com.blayzegames.iosfps’)) //Game=游戏 |
isProcessPaused() :进程是否暂停
gg
官方解释:获取所选进程的暂停状态。 Get pause state of the selected process.
其他解释:
用法 |
bool isProcessPaused() //bool=布尔 //Process=进程 //Paused=暂停 |
返回值 returns |
//如果进程暂停,则为true;否则为false。 True if the process paused or false otherwise. |
isVisible() : UI是否可见
gg
官方解释:检查GameGuardian UI是否打开。Check if the GameGuardian UI is open.
其他解释:
用法 |
bool isVisible() //bool=布尔 //Visible=可见 |
返回值returns | //如果GameGuardian UI打开,则为true;否则为false。True if the GameGuardian UI open or false otherwise. //UI=User Interface(用户界面)的简称 |
– l –
LOAD_APPEND : 加载附加
gg
官方解释:标志为loadList。 追加到列表中。Flag for loadList.
Append to list.
其他解释:
用法 | int LOAD_APPEND //APPEND=附加 |
LOAD_VALUES :加载值
gg
官方解释:标志为loadList。 加载值。Flag for loadList.
Load values.
其他解释:
用法 |
int LOAD_VALUES //LOAD=加载 //VALUES=值 |
LOAD_VALUES_FREEZE : 加载值冻结
官方解释:标志为loadList。 加载值并冻结。Flag for loadList.
Load values and freeze.
其他解释:
用法 |
int LOAD_VALUES_FREEZE //VALUES=值 //FREEZE=冻结 |
loadList() :加载列表
gg
官方解释:从文件加载保存的列表。Load the saved list from the file.
其他解释:
用法 | mixed loadList(string file,int flags = 0 ) //List=列表 |
参数 items |
file File for load. //加载文件flags Set of flags LOAD_*. //Set=设置 //flags=属性 |
返回值 returns |
//真或字符串错误。 true or string with error. |
print(‘loadList:’, gg.loadList(‘/sdcard/Notes/gg.victim.txt’)) | |
实例 Examples |
print(‘loadList:’, gg.loadList(‘/sdcard/Notes/gg.victim.txt’, 0)) print(‘loadList:’, gg.loadList(‘/sdcard/Notes/gg.victim.txt’, gg.LOAD_APPEND)) print(‘loadList:’, gg.loadList(‘/sdcard/Notes/gg.victim.txt’, gg.LOAD_VALUES_FREEZE)) |
print(‘loadList:’, gg.loadList(‘/sdcard/Notes/gg.victim.txt’, gg.LOAD_APPEND | gg.LOAD_VALU |
– m –
multiChoice() : 多种选择
gg
官方解释:显示多选对话框。 如果您希望按指定顺序显示项目,则项目必须是数字小阵列。Displays the multiple choice dialog.
Items must be numberic-array if you want show items in specified order.
其他解释:
用法 |
mixed multiChoice(table items,table selection = {},string message = nil ) //multi=多种 //Choice=选择 //table=表、表格 //selection=选择 //message=消息、信息 |
参数items |
items Table with items for choice. //表与项目的选择。 selection The table specifies the selection status for each item from items by same k 中每个项目的选择状态。如果没有找到键,则该元素将被取消选中。 message Specifies the optional title of the dialog box. //指定对话框的可选标题。 |
a
项
– p –
PACKAGE :包名
gg
官方解释:GameGuardian的包名称。Package name of the GameGuardian.
其他解释:
用法 | string PACKAGE //PACKAGE=包名 |
例如 E.g. |
‘catch_.me_.if_.you_.can_’ |
processKill() :杀死、结束进程
gg
官方解释:强制杀死选定的进程。Force kill the selected process.
其他解释:
用法 |
bool processKill() //bool=布尔值(真假) //process=进程 //Kill=杀死、结束 |
注意 | 这可能会导致数据丢失。 |
返回值returns | //真则成功、否则相反的 True on success or false otherwise. //success=成功 (常用词) |
//otherwise=相反、否则、反之 |
processPause() : 暂停进程
gg
官方解释:暂停选定的过程。Pauses the selected process.
其他解释:
用法 |
bool processPause() //process=进程 //Pause=暂停 |
返回值 returns |
//否则成功或失败。 True on success or false otherwise. |
processResume() :恢复进程
gg
官方解释:如果暂停,继续所选进程。Resumes the selected process if it paused.
其他解释:
用法 |
bool processResume() //process=进程 //Resume=恢复 |
返回值 returns |
//否则成功或失败。 True on success or false otherwise. |
processToggle() :切换进程
gg
官方解释:切换所选进程的暂停状态。 如果进程暂停,则会恢复,否则将暂停。Toggle the pause state of the selected process. If process paused then it will be resumed else it will be paused.
其他解释:
用法 | bool processToggle() //process=进程 //Toggle=切换 |
返回值 | //否则成功或失败。 True on success or false otherwise. |
returns |
prompt() :提示
gg
官方解释:显示数据输入的对话框。对于字段提示的顺序必须是数字阵列Displays the dialog for data entry.
For respect order of fields prompts must be numeric-array.
其他解释:
o
– r –
REGION_ANONYMOUS : gg
官方解释:
Flag for getRanges, setRanges.
其他解释:
用法 |
int REGION_ANONYMOUS //REGION=地区 //ANONYMOUS=匿名 |
REGION_ASHMEM : gg
官方解释:
Flag for getRanges, setRanges.
其他解释:
用法 | int REGION_ASHMEM |
REGION_BAD : gg
官方解释:
Flag for getRanges, setRanges.
其他解释:
用法 | int REGION_BAD //BAD=坏 |
REGION_C_ALLOC : gg
官方解释:
Flag for getRanges, setRanges.
其他解释:
用法 | int REGION_C_ALLOC |
REGION_C_BSS : gg
官方解释:
Flag for getRanges, setRanges.
其他解释:
用法 | int REGION_C_BSS |
REGION_C_DATA : gg
官方解释:
Flag for getRanges, setRanges.
其他解释:
用法 | int REGION_C_DATA //DATA=数据、资料 |
REGION_C_HEAP : gg
官方解释:
Flag for getRanges, setRanges.
其他解释:
用法 | int REGION_C_HEAP |
REGION_CODE_APP : gg
官方解释:
Flag for getRanges, setRanges.
其他解释:
用法 | int REGION_CODE_APP |
REGION_CODE_SYS : gg
官方解释:
Flag for getRanges, setRanges.
其他解释:
用法 | int REGION_CODE_SYS |
REGION_JAVA : gg
官方解释:
Flag for getRanges, setRanges.
其他解释:
用法 | int REGION_JAVA //JAVA=一种开发语言 |
REGION_JAVA_HEAP : gg
官方解释:
其他解释:
用法 |
int REGION_JAVA_HEAP //JAVA=一种开发语言 //HEAP=累积 |
REGION_OTHER : gg
官方解释:
Flag for getRanges, setRanges.
其他解释:
用法 | int REGION_OTHER //OTHER=其它 |
REGION_PPSSPP : gg
官方解释:
Flag for getRanges, setRanges.
其他解释:
用法 | int REGION_PPSSPP |
REGION_STACK : gg
官方解释:
Flag for getRanges, setRanges.
其他解释:
用法 | int REGION_STACK //STACK=码、堆放 |
removeListItems() : 删除列表中的项目
gg
官方解释:从保存的列表中删除项目。Remove items from the saved list.
其他解释:
用法 |
mixed removeListItems(table items) //remove=删除、移除 //Items=项目、数组 |
|
参数 items |
items The table as a list of tables with address. Or the table as a list of adresses. | //该 |
返回值 returns |
//错误或字符串错误。 True or string with error. |
|
实例 | — retrieving a table from another call //从另一个呼叫中检索表格 | |
Examples | t = gg.getListItems() | |
print(‘removeListItems: ‘, gg.removeListItems(t)) | ||
— creating a table as a list of items //创建一个表作为项目列表 | ||
t = {} | ||
t[1] = {} | ||
t[1].address = 0x18004030 — some desired address //一些希望的地址 | ||
t[2] = {} | ||
t[2].address = 0x18004040 — another desired address | ||
print(‘removeListItems: ‘, gg.removeListItems(t)) | ||
— creating a table as a list of adresses //创建一张表作为地址列表 | ||
t = {} | ||
t[1] = 0x18004030 — some desired address |
removeResults() :移除列表中的结果
gg
官方解释:从找到的结果列表中移除结果。Remove results from the list of results found.
其他解释:
t[2] = 0x18004040 — another desired address print(‘removeListItems: ‘, gg.removeListItems(t)) |
用法 | mixed removeResults(table results) //Results=结果 |
参数 items |
results The table as a list of tables with address and flags fields (one of the constants |
返回值 returns |
//错误或字符串错误。 True or string with error. |
实例 Examples |
gg.searchNumber(’10’, gg.TYPE_DWORD) local r = gg.getResults(5) print(‘Remove first 5 results: ‘, gg.removeResults(r)) |
require() : gg
官方解释:检查GameGuardian的版本。 如果版本或内部版本号低于要求,脚本将以更新GameGuardian的消息结束。
Checks the version of GameGuardian.
If the version or build number is lower than required, the script will be ended with the message to update GameGuardian.
其他解释:
用法 |
require(string version = nil,int build = 0 ) //require=要求、需求 //version=版本 //build=编译 |
参数 items |
version Minimal version of GameGuardian to run the script. //GameGuardian 的 最build Minimal build number to run the script. Optional. //最小的内部版本号来运行 //run=运行 //script=脚本 //Minimal=最小的 //Optional=可选的 |
实例 | gg.require(‘8.31.1’) gg.require(‘8.31.1’, 5645) |
– s –
SAVE_AS_TEXT :保存as?文件
gg
官方解释:标记为saveList。 保存为文本列表。Flag for saveList.
Save list as text.
其他解释:
用法 |
int SAVE_AS_TEXT //SAVE=保存 //TEXT=文件 |
saveList() :保存列表
gg
官方解释:将保存的列表保存到文件中。Save the saved list to the file.
其他解释:
用法 | mixed saveList(string file,int flags = 0 ) //save=保存 |
参数 items |
file File to save. flags Set of flags SAVE_*. //flags=属性 |
返回值 returns |
//真或字符串错误。 true or string with error. |
实例 Examples |
print(‘saveList:’, gg.saveList(‘/sdcard/Notes/gg.victim.txt’)) print(‘saveList:’, gg.saveList(‘/sdcard/Notes/gg.victim.txt’, 0)) print(‘saveList:’, gg.saveList(‘/sdcard/Notes/gg.victim.txt’, gg.SAVE_AS_TEXT)) |
searchAddress() : 搜索地址
gg
官方解释:用指定的参数进行地址搜索。 如果结果列表中没有结果,则执行新的搜索,否则优化搜索。
Perform an address search with the specified parameters.
If no results in results list then perform new search else refine search.
其他解释:
d
searchFuzzy() : 未知搜索
gg
官方解释:用指定的参数细化模糊搜索。
Refine fuzzy search, with the specified parameters.
其他解释:
=
返回值 returns |
//错误或字符串错误 True or string with error. |
gg.searchFuzzy() | |
— value not changed //值没有改变 | |
gg.searchFuzzy(‘0’, gg.SIGN_FUZZY_NOT_EQUAL) | |
— value changed //值改变了 | |
gg.searchFuzzy(‘0’, gg.SIGN_FUZZY_GREATER) | |
— value increased //值增加了 | |
实例 Examples |
gg.searchFuzzy(‘0’, gg.SIGN_FUZZY_LESS) — value decreased //值下减少了 gg.searchFuzzy(’15’) |
— value increased by 15 //值增加了15 | |
gg.searchFuzzy(‘-115’) | |
— value decreased by 115 //值下减少了115 | |
//changed=改变 | |
//reased=增加 | |
//decreased=减少 |
searchNumber() :指定数值搜索
gg
官方解释:使用指定的参数执行一个数字搜索。 如果结果列表中没有结果,则执行新的搜索,否则优化搜索。
Perform a search for a number, with the specified parameters.
If no results in results list then perform new search else refine search.
其他解释:
用法 |
mixed searchNumber(string text,int type = gg.TYPE_AUTO,bool encrypted = false,int //encrypted=加密 //false=假 //ture=真 |
参数 items |
text String for search. The format same as the format for the search from the GameG type Type. One of the constants TYPE_*. //类型。其中一个常量TYPE_ *。encrypted Flag for run search encrypted values. //运行搜索加密值的标志。 sign Sign. One of the constants SIGN_*. //标志。其中一个常量SIGN_ *。memoryFrom Start memory address for the search. //开始搜索的内存地址。 memoryTo End memory address for the search. //结束内存地址进行搜索。 |
返回值 returns |
//错误或字符串错误 True or string with error. |
实例 Examples |
gg.searchNumber(’10’, gg.TYPE_DWORD) — number search //数字搜索gg.searchNumber(‘-10’, gg.TYPE_DWORD, true) — encrypted search //加密搜索 gg.searchNumber(’10~20′, gg.TYPE_DWORD, false, gg.SIGN_NOT_EQUAL) |
— range search //范围搜索gg.searchNumber(‘6~7;7;1~2;0;0;0;0;6~8::29’, gg.TYPE_DWORD) — group search with ranges //用范围进行组搜索 //EQUAL=相等 //range=范围 //group=组、小组 |
|
setRanges() :设置范围
gg
官方解释:将内存区域设置为标志REGION_ *所需的位掩码。Set memory regions to desired bit mask of flags REGION_*.
其他解释:
用法 | setRanges(int ranges) //Ranges=范围 |
参数 items |
ranges Bit mask of flags REGION_*. |
setSpeed() :设置速度
gg
官方解释:设置速度的速度。 如果speedhack没有加载,那么它将被加载。呼叫被阻止。脚本将等待速度满载。
Set the speed of the speedhack.
If speedhack was not loaded, then it will be loaded. The call is blocking. The script will wait for speedhack full load.
其他解释:
用法 |
mixed setSpeed(double speed) //Speed=速度 //double=双倍、倍 |
参数 items |
speed Desired speed. Must be in range [1.0E-9; 1.0E9]. //所需的速度。必须在范围[1.0E //Must=必须 //Desired=欲、要 |
返回值 returns |
//错误或字符串错误 True or string with error. |
setValues() : 设置值
gg
官方解释:设置项目列表的值
Set the values for the list of items.
其他解释:
用法 | mixed setValues(table values) |
参数 items |
values The table as a list of tables with three keys: address (long), value (string with a address(long),value(具有值的字符串),flags(常量TYPE_ *之一)。 |
返回值 returns |
//错误或字符串错误 True or string with error. |
gg.searchNumber(’10’, gg.TYPE_DWORD) | |
local r = gg.getResults(5) — load items //加载项目 | |
r[1].value = ’15’ | |
print(‘Edited: ‘, gg.setValues(r)) | |
local t = {} | |
t[1] = {} | |
实例 | t[1].address = 0x18004030 — some desired address //一些希望的地址 |
Examples | t[1].flags = gg.TYPE_DWORD |
t[1].value = 12345 | |
t[2] = {} | |
t[2].address = 0x18004040 — another desired address | |
t[2].flags = gg.TYPE_BYTE | |
t[2].value = ‘7Fh’ | |
print(‘Set’, t, gg.setValues(t)) |
setVisible() : gg
官方解释:打开或关闭GameGuardian用户界面。Open or close the GameGuardian UI.
其他解释:
用法 | setVisible(bool visible) //Visible=可见的 |
参数 items |
visible True for open GameGuardian UI or false for hide. //对于开放的GameGuardian |
SIGN_EQUAL :标志、标记相同
gg
官方解释:搜索地址的标志,搜索编号。Flag for searchAddress, searchNumber.
其他解释:
用法 | int SIGN_EQUAL //EQUAL=相同、相等 |
SIGN_FUZZY_EQUAL :标记_未知_相同
gg
官方解释:标记位未知搜索Flag for searchFuzzy.
其他解释:
用法 | int SIGN_FUZZY_EQUAL |
SIGN_FUZZY_GREATER : gg
官方解释:
Flag for searchFuzzy.
其他解释:
用法 | int SIGN_FUZZY_GREATER //GREATER=优胜、优越 |
SIGN_FUZZY_LESS : gg
官方解释:
Flag for searchFuzzy.
其他解释:
用法 | int SIGN_FUZZY_LESS //LESS=少、较少的 |
SIGN_FUZZY_NOT_EQUAL : gg
官方解释:
Flag for searchFuzzy.
其他解释:
用法 | int SIGN_FUZZY_NOT_EQUAL |
SIGN_GREATER_OR_EQUAL : gg
官方解释:
Flag for searchAddress, searchNumber.
其他解释:
用法 | int SIGN_GREATER_OR_EQUAL //OR=或 |
SIGN_LESS_OR_EQUAL : gg
官方解释:
Flag for searchAddress, searchNumber.
其他解释:
用法 | int SIGN_LESS_OR_EQUAL |
SIGN_NOT_EQUAL : gg
官方解释:
Flag for searchAddress, searchNumber.
其他解释:
用法 | int SIGN_NOT_EQUAL //NOT=不 |
skipRestoreState() :跳跃恢复声明?
gg
官方解释:脚本完成后,不要恢复GameGuardian的状态。 例如,默认情况下,一组内存区域在执行结束脚本后恢复。这个调用可以防止这个
Do not restore the state of the GameGuardian, after the script is completed. For example, by default, a set of memory regions restored after end script execution. This call allow prevent this.
其他解释:
如
sleep() :休眠
gg
官方解释:使当前正在执行的脚本在指定的毫秒数内休眠(暂时停止执行),这取决于系统定时器和调度程序的精度和准确性。
Causes the currently executing script to sleep (temporarily cease execution) for the specified number of milliseconds, subject to the precision and accuracy of system timers and schedulers.
其他解释:
用法 |
sleep(int milliseconds) //sleep=休眠 //milliseconds=毫秒 |
||
参数 items |
milliseconds | The length of time to sleep in milliseconds. | //以毫秒为单位的睡眠时间。 |
实例 | — 200 ms | ||
Examples | gg.sleep(200) | ||
— 300 ms | |||
local v = 300 |
startFuzzy() :开始模糊搜索
gg
官方解释:用指定的参数开始模糊搜索。
Start a fuzzy search, with the specified parameters.
其他解释:
mixed startFuzzy(int type = gg.TYPE_AUTO,long memoryFrom = 0,long memoryTo =
type Type. One of the constants TYPE_*. //类型。其中一个常量TYPE_ *。memoryFrom Start memory address for the search. //开始搜索的内存地址。memoryTo End memory address for the search. //结束内存地址进行搜索。
//错误或字符串错误。True or string with error. gg.startFuzzy() gg.startFuzzy(gg.TYPE_DWORD) gg.startFuzzy(gg.TYPE_FLOAT)
gg.startFuzzy(gg.TYPE_BYTE, 0x9000, 0xA09000)
– t –
timeJump() :时间跳跃
gg
官方解释:执行时间跳转。Performs a time jump.
其他解释:
用法 |
mixed timeJump(string time) //time=时间 //Jump=跳、跳跃 |
参数 items |
time String with time. The format is similar to the time format in the time jump dialo |
返回值 returns |
//错误或字符串错误。 True or string with error. |
实例 Examples |
print(‘jump 1:’, gg.timeJump(‘42345678’)) — jump for 1 year 125 days 2 hours 41 minutes 18 seconds //跳跃1年125天2小时41分1 print(‘jump 2:’, gg.timeJump(‘1:125:2:41:18’)) |
— same as above //同上print(‘jump 3:’, gg.timeJump(‘5:13’)) — jump for 5 minutes 13 seconds //跳5分钟13秒print(‘jump 4:’, gg.timeJump(‘7:3:1’)) — jump for 7 hours 3 minutes 1 seconds print(‘jump 5:’, gg.timeJump(‘3600’)) — jump for 1 hour //跳了1个小时print(‘jump 6:’, gg.timeJump(‘2:15:54:32’)) — jump for 2 days 15 hours 54 minutes 32 seconds print(‘jump 7:’, gg.timeJump(‘3600.15’)) — jump for 1 hour 0.15 seconds print(‘jump 8:’, gg.timeJump(‘7:3:1.519’)) — jump for 7 hours 3 minutes 1.519 seconds //year=年 days=天 hours=小时 minutes=分钟 seconds=秒 |
toast() :面包
gg
官方解释:显示敬酒。 如果第二个参数为true,则显示很短的时间。 吐司是一个视图,包含一个快速的小消息给用户。 向用户显示视图时,以浮动视图形式显示在应用程序上。 它永远不会得到重点。 用户可能正在输入其他内容。 这个想法是尽可能不显眼,同时仍然向用户显示你希望他们看到的信息。 两个例子是音量控制,简短的信息说你的设置已被保存。Show the toast.
If the second parameter is true, show the toast for a short period of time. A toast is a view containing a quick little message for the user.
When the view is shown to the user, appears as a floating view over the application. It will never receive focus. The user will probably be in the middle of typing something else. The idea is to be as unobtrusive as possible, while still showing the user the information you want them to see. Two examples are the volume control, and the brief message saying that your settings have been saved.
其他解释:Toast是包含用户点击消息。Toast类会帮助你创建和显示这些。
toast是没有焦点的,而且Toast显示的时间有限,过一定的时间就会自动消失。
用法 | toast(string text,bool fast = false ) //toast=Toast是包含用户点击消息。Toast类会帮助你创建和显示这些。 |
参数 items |
text The text for toast. //烤面包的文本。 fast Flag for show the toast for a short period of time. //举杯庆祝短暂的时间。 |
TYPE_AUTO :类型自动
gg
官方解释:类型自动。Type Auto.
其他解释:
用法 | int TYPE_AUTO //AUTO=自动 |
TYPE_BYTE :类型字节
gg
官方解释:类型字节Type Byte.
大小:1个字节。对齐:1个字节的边界Size: 1 byte. Align: 1 byte boundary.
其他解释:
用法 | int TYPE_BYTE //BYTE=字节 |
TYPE_DOUBLE :类型DOUBLE
gg
官方解释:类型DOUBLE Type Double.
大小:8字节。对齐:4(x86)或8(ARM)字节边界。Size: 8 byte. Align: 4 (x86) or 8 (ARM) byte boundary.
其他解释:
用法 | int TYPE_DOUBLE |
TYPE_DWORD :类型DWORD
gg
官方解释:类型Dword Type Dword.
Size: 4 byte. Align: 4 byte boundary.
其他解释:
用法 | int TYPE_DWORD |
TYPE_FLOAT : gg
官方解释:类型 Float Type Float.
Size: 4 byte. Align: 4 byte boundary.
其他解释:
用法 | int TYPE_FLOAT |
TYPE_QWORD : gg
官方解释:类型 Qword Type Qword.
Size: 8 byte. Align: 4 (x86) or 8 (ARM) byte boundary.
其他解释:
用法 | int TYPE_QWORD |
TYPE_WORD : gg
官方解释:类型Word Type Word.
Size: 2 byte. Align: 2 byte boundary.
其他解释:
TYPE_XOR : gg
官方解释:类型Xor Type Xor.
Size: 4 byte. Align: 4 byte boundary.
其他解释:
用法 | int TYPE_XOR |
– v –
VERSION : gg
官方解释:GameGuardian的文本版本。Text version of the GameGuardian.
其他解释:
用法 | string VERSION //VERSION=版本 |
例如 E.g. |
‘8.31.1’ |
VERSION_INT : gg
官方解释:GameGuardian的数字版本。Numeric version of the GameGuardian.
其他解释:
用法 | int VERSION_INT //INT=整数 |
例如 E.g. |
83101 |