tdalon / ahk

Repository for AutoHotkey scripts including PowerTools
MIT License
83 stars 22 forks source link

Error at line 19 in Teamsy.ahk #7

Closed machmar closed 2 years ago

machmar commented 2 years ago

image

I don't really understand Autohotkey, I just downloaded the ahk folder form your github and extracted it into the Lib Folder. This is my code:


#Include <Teams> 

^;::
Teams_PushToTalk()
WinActivate, ahk_exe Discord.exe
Send, ^M
return ```  
tdalon commented 2 years ago

I just downloaded the ahk folder form your github and extracted it into the Lib Folder.

Have a look how include/Libraries work in ahk. You shall have the libraries in a Lib folder below your parent script so you would need some putting together of my repo to your code.

tdalon commented 2 years ago

It might be also because you use an older version of AutoHotkey that does not support the Switch command.