Skip to content

MarsInsanity/rzctl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rzctl

Compilable version of: https://github.com/Sadmeme/rzctl

ChatGPT was used to rewrite rzctl.h (I don't know C++ yet sorry)

Once compiled, implementation is easy as such:

  1. Put rzctl.dll in your directory

  2. Put these outside of loading:

[DllImport("rzctl.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern bool init();
[DllImport("rzctl.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern void mouse_move(int x, int y, bool starting_point);
[DllImport("rzctl.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern void mouse_click(int up_down);
  1. Call the functions

Initialize and check if rzctl can be used

if (init())
{
  System.Windows.MessageBox.Show(":joesus:");
}
else if (!init())
{
  System.Windows.MessageBox.Show(":joesad:");
}

Move mouse left/right by x amount, up/down by y amount

mouse_move(0, 0, true);

Click Mouse Down:

mouse_click(1);

Click Mouse Up:

mouse_click(2);

Hope you enjoy 😊