Jump to content

Repeat command produces error


Go to solution Solved by lester,

Recommended Posts

When running the hide command window script, I get an error on compilation stating:

Error on line: 14

Line 14 contains the command:

REPEAT: 100

removing this command allows successful compilation.

Runing the duck on an Windows XP machine.

Any advice?

Link to post
Share on other sites

Remove the colon. DuckyScript is very specific, all in capitals, without the colon. The number of times is separated by a space, for example

REPEAT 100

Give that a go.

Link to post
Share on other sites

This is the full file. There never was a colon in the code (the snippet of code in the first posting, above, was incorrect, my mistake, I included a colon in the posting question but actually in the real code there is no colon):

REM Target: WINDOWS VISTA/7
REM Encoder V2.4
REM Using the run command for a broader OS base.
DELAY 3000
GUI R
DELAY 1000
STRING cmd /Q /D /T:7F /F:OFF /V:ON /K
DELAY 500
ENTER
DELAY 750
ALT SPACE
STRING M
DOWNARROW
REPEAT 100
ENTER

Is there some command I can run to find out what my firmware is and if I'm running the latest encoder?

Edited by lester
Link to post
Share on other sites

If you type "USB Rubber Ducky Repeat" into google, you get the Hak5 page which says Firmware V2.4 released, and "Added Repeat Command". This means that your duck must be less than V2.4. You should update the duck ASAP if you wish to do this duckyscript justice! :)

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...