BadUSB payload fail if is present DEFINE keyword

Hello dear, I’m trying to implement some payload for Flipper Zero BadUSB but I noticed that it will fail if i use the keyword DEFINE but I don’t understand why.
For example if i write the following code everything go correct and the payload will be completed for the 100%

DELAY 2000
GUI r
DELAY 250
DELETE
STRING http://example.com

But if i write this other following code the execution will fail at line 1 immediatly.

DEFINE WEBSITE http://example.com

DELAY 2000
GUI r
DELAY 250
DELETE
STRING WEBSITE

It doesn’t work too if i write

DEFINE WEBSITE example

DELAY 2000
GUI r
DELAY 250
DELETE
STRING WEBSITE
1 Like

Some users have noticed a few quirks in the implementation. For now I recommend you do your best to just work around the issue. Hopefully we’ll get some updates on BadUSB.

1 Like