This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#ifndef _VIRTUALKEYCODES_H_ | |
#define _VIRTUALKEYCODES_H_ | |
enum VK | |
{ | |
LBUTTON = 0x01, // Left mouse button | |
RBUTTON = 0x02, // Right mouse button | |
CANCEL = 0x03, // Control-break processing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
input = open("vk.txt", 'r') | |
Lines = input.readlines() | |
output = open("virtual_key_code.h", 'w') | |
output.writelines("#pragma once\n\n") | |
output.writelines("#ifndef _VIRTUALKEYCODE_H_\n") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local al = getAddressList() | |
local header = al.createMemoryRecord() | |
-- https://wiki.cheatengine.org/index.php?title=Lua:Class:MemoryRecord | |
header.Description = "Group 1" | |
header.isGroupHeader = true | |
header.type = 11 -- vtAutoAssembler |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local LAST_OFFSET_INDEX = 0 | |
function MonoMemRecordAppendFields(parent_memrc, classID, is_include_parents, is_debug) | |
if parent_memrc == nil or parent_memrc == 0 or classID == nil or classID == 0 then | |
return false | |
end | |
LaunchMonoDataCollector() | |
local addressList = getAddressList() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <shlobj.h> | |
PWSTR documentsDirPath{}; | |
if (HRESULT ret = SHGetKnownFolderPath(FOLDERID_Documents, KF_FLAG_DEFAULT, 0, &documentsDirPath); ret == S_OK) | |
{ | |
std::wcout << L"Documents directory path: " << documentsDirPath << '\n'; | |
} | |
else | |
{ | |
std::wcout << L"[SHGetKnownFolderPath] " << ret << '\n'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public struct Vector3 | |
{ | |
public float X { get; set; } | |
public float Y { get; set; } | |
public float Z { get; set; } | |
public Vector3(float x, float y, float z) | |
{ | |
X = x; | |
Y = y; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(T)Convert.ChangeType(value, typeof(T)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Windows.h> | |
bool GetWndWidthHeight(const HWND& hwnd, long* wnd_width, long* wnd_height) | |
{ | |
RECT rct; | |
if (!GetClientRect(hwnd, &rct)) | |
{ | |
return false; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
std::vector<Game> GetInstalledSteamGames() | |
{ | |
try | |
{ | |
const std::wstring STEAM_INSTALLED_GAMES_KEY = L"Software\\Valve\\Steam\\Apps\\"; | |
// Get list of user's steam games | |
winreg::RegKey installed_games_key{ HKEY_CURRENT_USER, STEAM_INSTALLED_GAMES_KEY }; | |
std::vector<std::wstring> subKeyNames = installed_games_key.EnumSubKeys(); | |
installed_games_key.Close(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Anti Anti-Adblocker - linkneverdie.net | |
// @namespace Violentmonkey Scripts | |
// @match https://linkneverdie.net/* | |
// @grant none | |
// @version 1.0 | |
// @author - | |
// @description 10/14/2022, 3:23:08 PM | |
// ==/UserScript== |