Skip to content

Example basic_mod.md is out of date #5

@cakebread

Description

@cakebread

I'm trying to run the basic_mod example, but it seems out of date.

https://github.com/monkeyman192/NMS.py/tree/master/docs/examples/basic_mod.md

I changed the first line:

import nmspy.data.function_hooks as hooks

to:

import nmspy.data.functions.hooks as hooks

I can't figure out what 'main_loop' in the second line has been renamed to:
from pymhf.core.hooking import disable, main_loop, on_key_pressed, on_key_release

>>> import pymhf.core.hooking
>>> dir(pymhf.core.hooking)
['Any', 'CFUNCTYPE', 'CFuncPtr', 'Callable', 'DetourTime', 'FUNCDEF', 'FuncHook', 'HookFactory', 'HookManager', 'HookProtocol', 'ManualHookProtocol', 'ORIGINAL_MAPPING', 'Optional', 'Type', '__annotations__', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', '_detour_is_valid', '_internal', 'ast', 'cast', 'cyminhook', 'disable', 'find_pattern_in_binary', 'hook_logger', 'hook_manager', 'inspect', 'logging', 'manual_hook', 'module_data', 'on_key_pressed', 'on_key_release', 'one_shot', 'partial', 'pattern_cache', 'traceback']

Getting to line three, I'm stumped:

from nmspy.memutils import map_struct

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions