QUOTE(SDR Fang @ Dec 11 2023, 12:13)

Just tried today and this is a great script!
However, I'm still struggling with my desired setups. My desired behavior is that:
- hit a key (not a mouse key, some key in key binding)
- cast the selected action (targeted, e.g. IMP) on the monster under the cursor
If you have tried macro in FFXIV, I want the exact behavior the same as a mouse-over macro:
/action Imperil <mouseover>
However, as mentioned previously in post#825, none of the options that I have tried worked.
If I use HoverAction(), I need to hover. I know that I can use ToggleHover() or Impulse() to perform a single cast, but I prefer not to implement in this way.
CODE
Bind(KEY_I, Strongest([TargetMonster(0), Cast('Imperil')]));
If I use this way, the selected monster is hard-coded. I want to target the monster under my cursor.
CODE
Bind(KEY_I, Strongest([CursorTarget, Cast('Imperil')]));
If I use this way, the cast does not happen at all. It behaves the same way as I selected the spell, but didn't click on the monster.
Changing the sequence also does not help.
Therefore, could anyone help me on how to write the key binds? Thanks in advance.
i know it would be be "necro" to replies this post,but it's important because i finally found out to "Solve" it
(or i missunderstood what you saying,so i really sorry for that,since english isn't my first language)
in setting set hover action in mouse bidding to false so it will do nothing ("Nothing" in code instead will use basic attack command )

after that put these code in keybinding
CODE
Bind(KEY_1, Any, HoverAction(Strongest([Cast('Imperil')]),true)); \\ Change key to your desire
My Example Keybidding Code (you can see/copy it whatever you like)

The result is you can hover target the monster with your Cursor whenever you enter a key first you can also hold it.