Thread: Keybinding
View Single Post
04/19/22, 05:24 PM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,000
You need to actually call the function in the keybind. You currently only added the name there, without the () to start it.
That's why it tells you "function arguments expected" as you defined the function to be called, but no arguments/parameters.

Code:
<Down>SmarterAutoLoot:SALToggle</Down>
->

Code:
<Down>SmarterAutoLoot:SALToggle()</Down>
If this does not work try the . notation instead:
Code:
<Down>SmarterAutoLoot.SALToggle(SmarterAutoLoot)</Down>
  Reply With Quote