just import ghTools.GH.
Methods:
returns true if the key is pressed and false otherwise.
simulate a full key press and release.
simulate a key press.
simulate a key release.
set the position of the cursor to the specified position.
returns an int array whit 2 elements. where the first element is the x-coordinate and the second value is the y-coordinate of the cursor.
Same as setCursorPos but transforms the x and y relative to the conext of the game window instead of absulute values.
Same as getCursorPos but the values are relative to the game window.
Sends a full left mouse click.
Sends a full right mouse click.
Open a handle to the process with this window name to be able to access its memory. Returns true if it was successful and false otherwise.
Used to set the architecture to the architecture of the game to use the correct pointer size.
calculates the runtime address from the static pointer provided.
Checks if the handle to the game is still open. Will return true if the handle is still open and false if its closed.
Used to read a single bit from memory. Return true if its 1 or false if its 0.
Returns the byte that can be found at the provided address in the memory.
Returns the short that can be found at the provided address in the memory.
Returns the char that can be found at the provided address in the memory.
Returns the int that can be found at the provided address in the memory.
Returns the long that can be found at the provided address in the memory.
Returns the float that can be found at the provided address in the memory.
Returns the double that can be found at the provided address in the memory.
Returns the String that can be found at the provided address in the memory.
Returns the byte[] that starts at the provided address with the provided length.
Write a single bit to memory (true for 1 and false for 0) to the specified position in the byte that can be found at the specified address.
Will return true if successful and false otherwise.
Write a single byte to the specified address in memory.
Will return true if successful and false otherwise.
Write a short to the specified address in memory.
Will return true if successful and false otherwise.
Write a single char to the specified address in memory.
Will return true if successful and false otherwise.
Write an int to the specified address in memory.
Will return true if successful and false otherwise.
Write a long to the specified address in memory.
Will return true if successful and false otherwise.
Write a float to the specified address in memory.
Will return true if successful and false otherwise.
Write a double to the specified address in memory.
Will return true if successful and false otherwise.
Write a String to the specified address in memory.
Will return true if successful and false otherwise.
Write a byte[] to memory starting at the provided address.
Will return true if successful and false otherwise.
Sleep method with exception handeling.
Returns the process ID of the currently opened process.
Return true if the game window is visible and false otherwise.
Returns the height of the game window in pixels.
Returns the width of the game window in pixels.
Returns the x-position of the upper left corner of the game window on the sreeen.
Returns the y-position of the upper left corner of the game window on the sreeen.
Used to hold information about the static pointer and the offsets of a value.
Constructor:
Methods:
WIP: HERE WILL BE A FULL GUIDE SOON
for a more in depth example please have a look at the example hack i have provided.
- Rake - for running guidedhacking.com and his great tutorials. Without him this repo would probably not exist.