I have been trying to install the TF Library for AHK
But none of the TF functions run, I'm not sure if I have coded something wrong or used #Include incorrectly
Code: Select all
;#Include C:\Users\User1\Documents\AutoHotkey\Lib\TF.ahk ;TF.ahk is also installed in C:\programfiles\AutoHotKey\Lib (tried it here)
F3::
WinActivate, ahk_class Chrome_WidgetWin_1
Sleep, 333
Send, {Control Down}{u}{Control Up}
Sleep, 450
Send, {Control Down}{a}{Control Up}
Sleep, 450
Send, {Control Down}{c}{Control Up}
Sleep, 200
Sleep, 500
Send, {Control Down}{w}{Control Up}
FileDelete, C:\Users\User1\Desktop\Test\Background.txt
Sleep, 500
CorrectRead := ClipBoard
Sleep, 500
FileAppend, %CorrectRead%, C:\Users\User1\Desktop\Test\Background.txt
#Include C:\Users\User1\Documents\AutoHotkey\Lib\TF.ahk ;TF.ahk is also installed in C:\programfiles\AutoHotKey\Lib
TF_ReadLines("C:\Users\User1\Desktop\Test\Background.txt",1,10)
MsgBox % TF_Readlines("C:\Users\User1\Desktop\Test\Background.txt",1,10)
Return ;no message box and when I tried to use TF_Removeblanklines nothing happened as well
;#Include C:\Users\User1\Documents\AutoHotkey\Lib\TF.ahk ;TF.ahk is also installed in C:\programfiles\AutoHotKey\Lib(Tried it here)
Error at Line 48 in #Include tf.afk
Line Text: TF_Countlines(text)
Error: Parameters of hotkeys functions must be optional
The program will now exit
Any ideas why the library is not running?