filmov
tv
[AHK] Functions

Показать описание
;FndStr(file, str) - поиск строки. Возврат - true или False
;cFndStr(file, str) - Цикличный поиск строки. Возврат - ничего, будет работать пока не найдет строку.
;getLastLine(file) - Возврат - Последяя строка файла
;getNumLastLine(file) - Возврат - Номер последней строки
;FileClear(file) - Очистка файла
;getPixelColor() - Возврат - Цвет пикселя под мышкой
FndStr(file, str)
{
fileread, read, %file%
IfInString, read, %str%
return true
return false
}
cFndStr(file, str)
{
FileClear(file)
Loop
{
fileread, read, %file%
IfInString, read, %str%
return
}
}
getLastLine(file)
{
Loop, read, %file%
last_line := A_LoopReadLine
return last_line
}
getNumLastLine(file)
{
num = 0
Loop, read, %file%
num += 1
return num
}
FileClear(file)
{
FileDelete, %file%
fileappend,,%file%
}
getPixelColor()
{
MouseGetPos, x, y
PixelGetColor, color, %x%, %y%
return color
}
;cFndStr(file, str) - Цикличный поиск строки. Возврат - ничего, будет работать пока не найдет строку.
;getLastLine(file) - Возврат - Последяя строка файла
;getNumLastLine(file) - Возврат - Номер последней строки
;FileClear(file) - Очистка файла
;getPixelColor() - Возврат - Цвет пикселя под мышкой
FndStr(file, str)
{
fileread, read, %file%
IfInString, read, %str%
return true
return false
}
cFndStr(file, str)
{
FileClear(file)
Loop
{
fileread, read, %file%
IfInString, read, %str%
return
}
}
getLastLine(file)
{
Loop, read, %file%
last_line := A_LoopReadLine
return last_line
}
getNumLastLine(file)
{
num = 0
Loop, read, %file%
num += 1
return num
}
FileClear(file)
{
FileDelete, %file%
fileappend,,%file%
}
getPixelColor()
{
MouseGetPos, x, y
PixelGetColor, color, %x%, %y%
return color
}
autohotkey functions
How to use functions in AutoHotkey| Level-up today!
AutoHotkey Tutorial #4 Functions (Part 1)
You Won’t Believe How Easy It Is to Bind Parameters to a Function in AutoHotkey
AHK webinar 2021 10 Hour 1- Intro to Autohotkey Functions
Defining custom functions in AutoHotkey v2
AutoHotkey - Beginners tutorial (All the basic functions)
Creating a function to choose which bitness to run your AHK script
AHK Studio: Jumping to functions, labels, classes
How to use function libraries in AutoHotkey | Great ways to organize your functions
🤦♂️ AHK error: Parameters of Hotkey Functions must be Optional | Blessing or Curse❓
AHK Studio: Highlighting cursor location in Functions and commands
A function should Return One Data Type - AHK Hero Extract2
AutoHotkey Webinar 12/2016 Hour 1- Intro to AHK Classes
FindText Function ahk
AHK: Control Flow
[AHK] Functions
Understanding the Win32 API Functions Behind AHK's ControlSend for Background Keystroke Sending
Keyboard hacks, watch full video link in the description #keyboard #autohotkey #keyboardhacks
Graphing the absolute value function with transformations
[Juho's AutoHotkey Tutorial #4 Script Setup] Part 5 - #Include To Call Other Scripts Or Librari...
How to connect to Excel with AutoHotkey | Always start here when automating excel with ahk
Basic rundown of how my instantVFX() AutoHotKey function works. Ludicrously complex.
[AHKTuts] Adv - Ep1 - httpQuery Basics
Комментарии