Jump to content
Sign in to follow this  
kabda

Need help to emulate keyboard and mouse

Recommended Posts

kabda

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

Share this post


Link to post
Share on other sites
kabda

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?

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.