Hack Forums
[Shell] When automatically typing something out it clears it? - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Shell] When automatically typing something out it clears it? (/showthread.php?tid=5580228)



When automatically typing something out it clears it? - Skidy - Mar 20, 2017

So my digispark automatiaclly types this out:

Code
DigiKeyboard.print("ECHO 127.0.0.1 TEST.COM >> 'C:\WINDOWS\SYSTEM32\DRIVERS\ETC\HOSTS");

But it seems to all of a sudden remove the '/' and clear it at the \E ? Then just makes it TCHOSTS? I feel like the '/' sybmol is messing it up.

The code:

Code
DigiKeyboard.sendKeyStroke(0);
  DigiKeyboard.sendKeyStroke(0, MOD_GUI_LEFT);
  DigiKeyboard.delay(1000);
  DigiKeyboard.print("cmd");
  DigiKeyboard.delay(1000);
  DigiKeyboard.sendKeyStroke(KEY_ENTER, MOD_CONTROL_LEFT | MOD_SHIFT_LEFT);
  DigiKeyboard.delay(1000);
  DigiKeyboard.sendKeyStroke(KEY_ARROW_LEFT);
  DigiKeyboard.sendKeyStroke(KEY_ENTER);
  DigiKeyboard.delay(1000);
  DigiKeyboard.print("ECHO 127.0.0.1 TEST.COM >> 'C:\WINDOWS\SYSTEM32\DRIVERS\ETC\HOSTS");
  DigiKeyboard.sendKeyStroke(KEY_ENTER);



* - OkeFuk - Mar 20, 2017

Digispark isn't so intelligent yet to use such heavy symbols. Dont use \ lol