Jump to content

Need help to emulate keyboard and mouse


Recommended Posts

Hello autoit forum,

I hope somone can help me; I am trying to call winring0.dll from from openlibsys.org

so I can send keyboard and mouse( I/O device) click to another program , here is what I am trying to do atm:

Dim $init
Dim $stroke
Dim $SendInfoPort
$pt = "port"
$val = "value"


$init = DllCall("WinRing0.dll", "bool", "InitializeOls") 
$statut = DllCall("WinRing0.dll", "dword", "GetDllStatus")
$SendInfoPort = DllCall("WinRing0.dll", "none", "WriteIoPortByte", "ushort", $pt, "byte", $val); Iam not sure in this line if its correct and how to put the parametre port an value
; and Iam wondering how I can use command like this  ControlSend("Program","","","{Tab}") MouseMove(500, 500, 3) MouseDown("right")     
through this dll
Link to comment
Share on other sites

Here is the Synthx for the function WriteIoPortByte

VOID WriteIoPortByte(
    WORD port,
    BYTE value);

How I can find the port adress so I can send Data to it? and can I for exemple intercepte data from this commande MouseMove(500, 500, 3) to send it to the port with writeIoPortByte?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...