当前位置:网站首页>AHK common functions

AHK common functions

2022-06-10 16:59:00 fqbqrr

Common functions explain
FileExist Check File or directory whether There is , And return its properties .
GetKeyState If Press down The specified key returns true (1), If According to the Then return false (0).
InStr from Left or right Search for a given string ( Whether in string ).
RegExMatch Determine whether the string contain Pattern ( Regular form ).
RegExReplace Replace In the string Pattern ( Regular form ).
StrLen There is... In the string How many? character Count .
StrReplace New string Replace the existing assignment Substring .
StrSplit Specify with Separator The separation string is Substring array .
SubStr From string The specified location take Substring .
WinActive Check Specify the window whether Activities And return its unique ID(HWND).
WinExist Check whether the There is Appoint window , And back to first Match the window's only ID(HWND).
Other functions explain
Asc Returns the specified string First byte or UTF-16 The value of the code unit .
Chr The symbol represented by numbers .
DllCall call DLL Internal function , Such as standard window API function .
Exception abnormal
FileOpen Open file
Format Format string
Func Take the function reference .
GetKeyName/VK/SC Take the key name / Text , Virtual key code or scan code .
Hotstring When the script runs establish , modify , Enable or disable Hot string .
IL_XXX add to Icon / picture , Create or delete ListView or TreeView Control uses ImageList The function of .
InputHook establish Collect or intercept Keyboard input objects .
IsByRef If you use Variable Provide designation ByRef Parameters , Then return to Non zero number .
IsFunc If... Exists in the script Appoint function , Then return to Nonzero Count .
IsLabel If the specified label is in Script in , Then return to Nonzero number .
IsObject If the specified value is object , Returns a nonzero number .
LoadPicture From file load Picture and return to Bitmap or icon Handle .
LV_XXX add to , Insert , Modify or delete ,ListView Of That's ok / Column Or get data from it function .
MenuGetHandle Take the menu Win32 Menu handle .
MenuGetName Take a given bottom layer Win32 Menu name of the menu handle .
NumGet return Storage At the specified address The offset Of Binary number .
NumPut Appoint Address Press... At the offset Binary system Store numbers .
ObjAddRef/ObjRelease Increase or decrease object Reference count .
ObjBindMethod establish call Of a given object method BoundFunc object .
ObjGetBase Take the object Base object .
ObjRawGet Bypass object Meta function , Take... From the object Key value pair .
ObjRawSet Bypass the object Meta function , In the object Store or overwrite Key value pair .
ObjSetBase Set the object Base object .
ObjXXXObject Type of built-in Method function , Such as ObjInsertAt. It is recommended to use the corresponding method .
OnClipboardChange register Function or function object , In the The contents of the clipboard Run when changes are made .
OnError Specify occurrence error Automatically run functions when .
OnExit Appoint Script Automatically run the function on exit .
OnMessage monitor news / event .
Ord Returns the specified string first Character Order number
SB_XXX towards StatusBar Add Text / Icon or Partition column .
StrGet from Memory address Copy string , Can be found in code page Inter conversion .
StrPut Copy String to memory address , Can be found in code page Inter conversion .
RegisterCallback Create... When called Machine code Address , Redirection in script call function .
Trim/LTrim/RTrim From the string Beginning and / Or the end Trim characters .
TV_XXX add to , Modify or delete TreeView term , Or from it Take the data .
VarSetCapacity Expand variables Capacity Or release Memory .
Mathematical functions explain
Abs The absolute value .
Ceil rounding To the nearest integer .
Exp return e( about 2.71828182845905) Of N Power .
Floor Next time
Log10 Base logarithm
Lne Base logarithm
Max/Min return Multiple numbers Of Maximum / minimum value .
Mod more than
Round Roundness
Sqrt square root .
Sin/Cos/Tan Triangle sine / cosine / tangent .
ASin/ACos/ATan In radians return Anti sine / Arccosine / Anyway .
COM function explain
ComObjActive Get registered COM object .
ComObjArray Create for COM Of Safe array .
ComObjConnect Connect COM Object's Event source To have Given prefix function .
ComObjCreate establish COM object .
ComObject Create representation By parameter or return value Delivered Type values object .
ComObjEnwrap/ComObjUnwrap packing / Unpack COM object .
ComObjError Enable or disable COM Error notification .
ComObjFlags Take or change control COM Wrapping object behavior sign .
ComObjGet return COM component-provided object quote .
ComObjMissing establish " Lack of parameter " Object to pass to COM Method .
ComObjParameter Press COM Method parameter packing Values and types .
ComObjQuery Inquire about COM object Interface or service .
ComObjType from COM Take... From the object Type information .
ComObjValue Fetch and store in COM In the package Value or pointer .
原网站

版权声明
本文为[fqbqrr]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/161/202206101601246386.html