[Snippet] Window Box

Ninja FTW

Well-Known Member
Joined
Aug 11, 2017
Messages
61
Likes
0
Points
6
Location
Saturn
5
#1
Code:
:SCM_MessageBox // 0AB1: /* [SP/MP] */ call_scm_func @SCM_MessageBox params 4 | hWnd [email protected] lpText [email protected] lpCaption [email protected] uType [email protected] | _errorCode [email protected] |
0AA2: [email protected] = load_library "User32.DLL"
0AA4: [email protected] = get_proc_address "MessageBoxA" library [email protected]
0AA7: call_function [email protected] num_params 4 pop FALSE | uType [email protected] lpCaption [email protected] lpText [email protected] hWnd [email protected] | _errorCode [email protected] |
0AA3: free_library [email protected]
0AB2: RET 1 | _errorCode [email protected] |
Example:

Code:
{$CLEO}
0AC6: [email protected] = label @lpText offset
0AC6: [email protected] = label @lpCaption offset

WHILE TRUE
0001: WAIT FALSE
    IF 0ADC:   test_cheat "1"
    THEN
    0AB1: /* [SP/MP] */ call_scm_func @SCM_GetForegroundWindow params FALSE || HWND [email protected] |
    0AB1: /* [SP/MP] */ call_scm_func @SCM_MessageBox params 4 | hWnd [email protected] lpText [email protected] lpCaption [email protected] uType 0x00000000 | _errorCode [email protected] |
    END
END

:SCM_GetForegroundWindow // 0AB1: /* [SP/MP] */ call_scm_func @SCM_GetForegroundWindow params FALSE || HWND [email protected] |
0AA2: [email protected] = load_library "User32.DLL"
0AA4: [email protected] = get_proc_address "GetForegroundWindow" library [email protected]
0AA7: call_function [email protected] num_params 0 pop FALSE || HWND [email protected] |
0AA3: free_library [email protected]
0AB2: RET 1 | HWND [email protected] |

:SCM_MessageBox // 0AB1: /* [SP/MP] */ call_scm_func @SCM_MessageBox params 4 | hWnd [email protected] lpText [email protected] lpCaption [email protected] uType [email protected] | _errorCode [email protected] |
0AA2: [email protected] = load_library "User32.DLL"
0AA4: [email protected] = get_proc_address "MessageBoxA" library [email protected]
0AA7: call_function [email protected] num_params 4 pop FALSE | uType [email protected] lpCaption [email protected] lpText [email protected] hWnd [email protected] | _errorCode [email protected] |
0AA3: free_library [email protected]
0AB2: RET 1 | _errorCode [email protected] |

:lpText
HEX
    "MessageBox" 0
END

:lpCaption
HEX
    "Fuckyou" 0
END
Tested 100% work!
 
Top