Giter VIP home page Giter VIP logo

autoit-interception's Introduction

AutoIt-Interception

AutoIt3 wrapper for oblitum/Interception

This allows you to send keystrokes to DirectX games which sometimes listen to keyboard drivers directly. This is done by sending the key events directly to driver level so the game picks it up. (This is also why it requires installing the driver)

Driver Installation

Follow instructions at http://oblita.com/interception.html

Usage

#include <Interception.au3>

Interception_Create_Context()

_SendText("Hello World!")
Interception_SendKey($SC_RETURN, $INTERCEPTION_KEY_DOWN)
Interception_SendKey($SC_RETURN, $INTERCEPTION_KEY_UP)
_SendText("Bye!")

Interception_Destroy_Context()

autoit-interception's People

Contributors

2yangk23 avatar kochirasu avatar

Watchers

 avatar  avatar  avatar

autoit-interception's Issues

Not working for me.

i try but it's not working. Can you help me?. two example x2y.exe and cap2esc.exe are working.

#RequireAdmin
#include <StaticConstants.au3>
#include <Interception.au3>
#include <Misc.au3>

While 1
HotKeySet("^{r}", "_reload")
  HotKeySet("^{t}", "_test")
  Sleep(100)
WEnd
$counter=0
global $counter
Global $IsAuto = False

Func _test()
  Interception_Create_Context()
  Interception_SendKey($SC_F, $INTERCEPTION_KEY_DOWN)
  Sleep(10)
  Interception_SendKey($SC_F, $INTERCEPTION_KEY_UP)
  Interception_Destroy_Context()

EndFunc

Func _class()

while $IsAuto
   

WEnd

EndFunc
DllClose($dll)

How can I send a mouse click?

Hello and thank you! I love Autoit and your code helps me. Everything works great with the keyboard. But I couldn’t figure out how I can send a left mouse click, could you give me an example? :)

Mousemove / click

Hi I want to use mousemove and click via interception as the task I am using it for blocks winapi and autoit's built in mousemove / click

crash when use interception_set_filter dll function

Hi Ochi-rasu,
my program was crahed when use this Interception_Set_Filter function. Can you show me an example?
Thanks you.

Func Interception_Set_Filter ($predicate, $filter)
   Local $aRet = DllCall($DLL_HANDLE, "none:cdecl", "interception_set_filter", _
	"ptr", $CONTEXT, _
	"ptr", $predicate, _
	"int", $filter)
   If @error Then Return SetError(@error, @extended, 0)
EndFunc

Func Interception_Is_Keyboard($device)
   Local $aRet = DllCall($DLL_HANDLE, "int:cdecl", "interception_is_keyboard","int", $device)
   If @error Then Return SetError(@error, @extended, 0)

   Return $aRet[0]
EndFunc

Global Const $interception_is_keyboard = DllCallbackGetPtr(DllCallbackRegister("Interception_Is_Keyboard", "int", "device"))
Interception_Set_Filter( $interception_is_keyboard,  BitOR($INTERCEPTION_FILTER_KEY_DOWN, $INTERCEPTION_FILTER_KEY_UP))

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.