"Fossies" - the Fresh Open Source Software Archive

Member "AutoHotkey_L-1.1.33.09/source/input_object.h" (8 May 2021, 788 Bytes) of package /windows/misc/AutoHotkey_L-1.1.33.09.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "input_object.h" see the Fossies "Dox" file reference documentation.

    1 #pragma once
    2 
    3 class InputObject : public ObjectBase
    4 {
    5     input_type input;
    6 
    7 public:
    8     IObject *onEnd, *onKeyDown, *onChar, *onKeyUp;
    9 
   10     InputObject() : onEnd(NULL), onKeyDown(NULL), onChar(NULL), onKeyUp(NULL)
   11     {
   12         input.ScriptObject = this;
   13     }
   14 
   15     ~InputObject()
   16     {
   17         if (onEnd)
   18             onEnd->Release();
   19         if (onKeyDown)
   20             onKeyDown->Release();
   21         if (onChar)
   22             onChar->Release();
   23         if (onKeyUp)
   24             onKeyUp->Release();
   25     }
   26 
   27     ResultType Setup(LPTSTR aOptions, LPTSTR aEndKeys, LPTSTR aMatchList, size_t aMatchList_length);
   28     ResultType KeyOpt(ExprTokenType &aResultToken, ExprTokenType *aParam[], int aParamCount);
   29 
   30     ResultType STDMETHODCALLTYPE Invoke(ExprTokenType &aResultToken, ExprTokenType &aThisToken, int aFlags, ExprTokenType *aParam[], int aParamCount);
   31     IObject_Type_Impl("InputHook")
   32 };