Comments (3)
This probably refers to lines like these:
DigiKeyboard.print(F("WshShell.SendKeys(chr(&hAF))"));
Notice the bold F in that line. That tells the Digispark to load the string in the flash memory, that's used for big strings but it can cause problems, try removing some F's and see if it compiles.
from digiquack.
it isnt compiling any other solution
from digiquack.
Hi, Im new to all this, and I wanted to convert a rick roll script for the rubber ducky to the digispark, this is the code of the rubber ducky:
DELAY 3500 GUI r DELAY 200 STRING cmd ENTER DELAY 200 STRING cd %tmp% && copy con rickyou.vbs ENTER STRING While true ENTER STRING Dim oPlayer ENTER STRING Set oPlayer = CreateObject("WMPlayer.OCX") ENTER STRING oPlayer.URL = "https://pixelcoding.nl/download/rickroll.mp3" ENTER STRING oPlayer.controls.play ENTER STRING While oPlayer.playState <> 1 ' 1 = Stopped ENTER STRING WScript.Sleep 100 ENTER STRING Wend ENTER STRING oPlayer.close ENTER STRING Wend ENTER DELAY 100 CTRL z ENTER STRING copy con volup.vbs ENTER STRING do ENTER STRING Set WshShell = CreateObject("WScript.Shell") ENTER STRING WshShell.SendKeys(chr(&hAF)) ENTER STRING loop ENTER CTRL z ENTER STRING start rickyou.vbs && volup.vbs
And this is the convertion of digiQuack:
DigiKeyboard.sendKeyStroke(0); DigiKeyboard.delay(3500); DigiKeyboard.sendKeyStroke(0, MOD_GUI_LEFT,KEY_R); DigiKeyboard.delay(200); DigiKeyboard.print(F("cmd")); DigiKeyboard.sendKeyStroke(KEY_ENTER); DigiKeyboard.delay(200); DigiKeyboard.print(F("cd %tmp% && copy con rickyou.vbs")); DigiKeyboard.sendKeyStroke(KEY_ENTER); DigiKeyboard.print(F("While true")); DigiKeyboard.sendKeyStroke(KEY_ENTER); DigiKeyboard.print(F("Dim oPlayer")); DigiKeyboard.sendKeyStroke(KEY_ENTER); DigiKeyboard.print(F("Set oPlayer = CreateObject("WMPlayer.OCX")")); DigiKeyboard.sendKeyStroke(KEY_ENTER); DigiKeyboard.print(F("oPlayer.URL = "https://pixelcoding.nl/download/rickroll.mp3"")); DigiKeyboard.sendKeyStroke(KEY_ENTER); DigiKeyboard.print(F("oPlayer.controls.play")); DigiKeyboard.sendKeyStroke(KEY_ENTER); DigiKeyboard.print(F("While oPlayer.playState <> 1 ' 1 = Stopped")); DigiKeyboard.sendKeyStroke(KEY_ENTER); DigiKeyboard.print(F("WScript.Sleep 100")); DigiKeyboard.sendKeyStroke(KEY_ENTER); DigiKeyboard.print(F("Wend")); DigiKeyboard.sendKeyStroke(KEY_ENTER); DigiKeyboard.print(F("oPlayer.close")); DigiKeyboard.sendKeyStroke(KEY_ENTER); DigiKeyboard.print(F("Wend")); DigiKeyboard.sendKeyStroke(KEY_ENTER); DigiKeyboard.delay(100); DigiKeyboard.sendKeyStroke(MOD_CONTROL_LEFT,KEY_Z); DigiKeyboard.sendKeyStroke(KEY_ENTER); DigiKeyboard.print(F("copy con volup.vbs")); DigiKeyboard.sendKeyStroke(KEY_ENTER); DigiKeyboard.print(F("do")); DigiKeyboard.sendKeyStroke(KEY_ENTER); DigiKeyboard.print(F("Set WshShell = CreateObject("WScript.Shell")")); DigiKeyboard.sendKeyStroke(KEY_ENTER); DigiKeyboard.print(F("WshShell.SendKeys(chr(&hAF))")); DigiKeyboard.sendKeyStroke(KEY_ENTER); DigiKeyboard.print(F("loop")); DigiKeyboard.sendKeyStroke(KEY_ENTER); DigiKeyboard.sendKeyStroke(MOD_CONTROL_LEFT,KEY_Z); DigiKeyboard.sendKeyStroke(KEY_ENTER); DigiKeyboard.print(F("start rickyou.vbs && volup.vbs")); for(;;){ /*empty*/ }
This is the error I get:
`Arduino:1.8.5 (Windows 10), Tarjeta:"Digispark (Default - 16.5mhz)"sketch_mar29a:46: error: unterminated argument list invoking macro "F"
for(;;){ /empty/ }
^
exit status 1
unterminated argument list invoking macro "F"`
did you get any solution ?
from digiquack.
Related Issues (10)
- Executable not running - macOS HOT 9
- unterminated argument list invoking macro "F"
- Not converting scripts HOT 1
- i need help with this error
- " HOT 1
- script don't like "\" sign... HOT 1
- 'DigiKeyboard' does not name a type HOT 1
- The program terminates upon entering the file path HOT 3
- Issues with " and \ characters HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from digiquack.