Stray # in program

A shrunk down Leonardo-compatible board, thumb drive sized with native USB support. [Product info]
Post Reply
tacet
Posts: 3
Joined: Tue Feb 09, 2016 9:04 am

Stray # in program

Post by tacet » Tue Feb 09, 2016 9:19 am

Hello all! I am a complete noob to arduino, but I bought a leostick in order to do some penetration testing and I am stumped. I continue to get "stray # in program" with exit status 1 in the error code. Below is the code I am attempting to use (taken from http://www.adebenham.com/2012/05/usb-ru ... oleostick/). I am using a windows machine (windows 7), but I have kali on my laptop if that will ease the process. I know I am just making a noob mistake, but I have been all over the internet trying to find out what I am doing wrong with no success. I have converted the .txt into a .ino file (below), but it fails to either compile or upload in the arduino ide. The com port and board are selected, the sketchbook is located outside the library file (arduino>sketch..), and I have read the getting started and a couple of other how to guides, but with no luck. Any assistance is greatly appreciated. Thanks!

#define KEY_A 0x04 // A key on keyboard, 'a' or 'A'
#define KEY_B 0x05
#define KEY_C 0x06
#define KEY_D 0x07
#define KEY_E 0x08
#define KEY_F 0x09
#define KEY_G 0x0A
#define KEY_H 0x0B
#define KEY_I 0x0C
#define KEY_J 0x0D
#define KEY_K 0x0E
#define KEY_L 0x0F
#define KEY_M 0x10
#define KEY_N 0x11
#define KEY_O 0x12
#define KEY_P 0x13
#define KEY_Q 0x14
#define KEY_R 0x15
#define KEY_S 0x16
#define KEY_T 0x17
#define KEY_U 0x18
#define KEY_V 0x19
#define KEY_W 0x1A
#define KEY_X 0x1B
#define KEY_Y 0x1C
#define KEY_Z 0x1D
#define KEY_1 0x1E // 1 key on keyboard, '1' or '!'
#define KEY_2 0x1F // 2 key on keyboard, '2' or '@'
#define KEY_3 0x20 // 3 key on keyboard, '3' or '#'
#define KEY_4 0x21 // 4 key on keyboard, '4' or '$'
#define KEY_5 0x22 // 5 key on keyboard, '5' or '%'
#define KEY_6 0x23 // 6 key on keyboard, '6' or '^'
#define KEY_7 0x24 // 7 key on keyboard, '7' or '&'
#define KEY_8 0x25 // 8 key on keyboard, '8' or '*'
#define KEY_9 0x26 // 9 key on keyboard, '(' or '('
#define KEY_0 0x27 // 0 key on keyboard, '0' or ')'
#define KEY_ENTER 0x28 // Keyboard Enter key, different from Keypad enter
#define KEY_ESC 0x29 // Escape
#define KEY_BACKSPACE 0x2A // Backspace
#define KEY_TAB 0x2B // Tab
#define KEY_SPACE 0x2C // Spacebar
#define KEY_MINUS 0x2D // Minus key, '-' or '_'
#define KEY_EQUAL 0x2E // Equals key, '=' or '+'
#define KEY_LEFTBRACE 0x2F // Left brace, '[' or '{'
#define KEY_RIGHTBRACE 0x30 // Right brace, ']' or '}'
#define KEY_BACKSLASH 0x31 // Backslash key, '\' or '|'
#define KEY_NONUSHASH 0x32 // Non-US '#' and '~'
#define KEY_SEMICOLON 0x33 // Semicolon key, ';' or ':'
#define KEY_APOSTROPHE 0x34 // Apostrophe key, ''' or double-quotes
#define KEY_GRAVE 0x35 // Grave accent key, '' or '~'
#define KEY_COMMA 0x36 // Comma key, ',' or '<'
#define KEY_DOT 0x37 // Dot key, '.' or '>'
#define KEY_SLASH 0x38 // Forward slash key, '/' or '?'
#define KEY_CAPSLOCK 0x39 // Caps Lock key,
#define KEY_F1 0x3A // Keyboard F1 key
#define KEY_F2 0x3B // Keyboard F2 key
#define KEY_F3 0x3C
#define KEY_F4 0x3D
#define KEY_F5 0x3E
#define KEY_F6 0x3F
#define KEY_F7 0x40
#define KEY_F8 0x41
#define KEY_F9 0x42
#define KEY_F10 0x43
#define KEY_F11 0x44
#define KEY_F12 0x45
#define KEY_SYSRQ 0x46 // PrintScreen Key
#define KEY_SCROLLLOCK 0x47 // Scroll Lock key
#define KEY_PAUSE 0x48 // Pause key
#define KEY_INSERT 0x49 // Insert key
#define KEY_HOME 0x4A // Home key
#define KEY_PAGEUP 0x4B // Page up key
#define KEY_DELETE 0x4C // Delete Forward key
#define KEY_END 0x4D // End key
#define KEY_PAGEDOWN 0x4E // Page down key
#define KEY_RIGHT 0x4F // Right arrow
#define KEY_LEFT 0x50 // Left arrow
#define KEY_DOWN 0x51 // Down arrow
#define KEY_UP 0x52 // Up arrow
#define KEY_NUMLOCK 0x53 // Num Lock and clear
#define KEY_KPSLASH 0x54 // Keypad Forward slash (/)
#define KEY_KPASTERISK 0x55 // Keypad asterisk (*)
#define KEY_KPMINUS 0x56 // Keypad minus (-)
#define KEY_KPPLUS 0x57 // Keypad plus (+)
#define KEY_KPENTER 0x58 // Keypad Enter, different from keyboard enter
#define KEY_KP1 0x59 // Keypad 1 and End
#define KEY_KP2 0x5A // Keypad 2 and Down arrow
#define KEY_KP3 0x5B // Keypad 3 and Page Down
#define KEY_KP4 0x5C // Keypad 4 and Left arrow
#define KEY_KP5 0x5D // Keypad 5
#define KEY_KP6 0x5E // Keypad 6 and Right arrow
#define KEY_KP7 0x5F // Keypad 7 and Home
#define KEY_KP8 0x60 // Keypad 8 and Up arrow
#define KEY_KP9 0x61 // Keypad 9 and Page up
#define KEY_KP0 0x62 // Keypad 0 and Insert
#define KEY_KPDOT 0x63 // Keypad . and Delete
#define KEY_102ND 0x64 // Keyboard Non-US \ and |
#define KEY_COMPOSE 0x65 // Keyboard application, right click-ish 'compose' key
#define KEY_POWER 0x66 // Keyboard Power, not usually a phsyical key
#define KEY_KPEQUAL 0x67 // Keypad =
#define KEY_F13 0x68 // Keyboard F13
#define KEY_F14 0x69
#define KEY_F15 0x6A
#define KEY_F16 0x6B
#define KEY_F17 0x6C
#define KEY_F18 0x6D
#define KEY_F19 0x6E
#define KEY_F20 0x6F
#define KEY_F21 0x70
#define KEY_F22 0x71
#define KEY_F23 0x72
#define KEY_F24 0x73 // Keyboard F24
#define KEY_OPEN 0x74 // Keyboard Execute
#define KEY_HELP 0x75 // Keyboard Help
#define KEY_PROPS 0x76 // Keyboard Menu
#define KEY_FRONT 0x77 // Keyboard Select
#define KEY_STOP 0x78 // Keyboard Stop
#define KEY_AGAIN 0x79 // Keyboard Again
#define KEY_UNDO 0x7A // Keyboard Undo
#define KEY_CUT 0x7B // Keyboard Cut
#define KEY_COPY 0x7C // Keyboard Copy
#define KEY_PASTE 0x7D // Keyboard Paste
#define KEY_FIND 0x7E // Keyboard Find
#define KEY_MUTE 0x7F // Keyboard Mute
#define KEY_VOLUMEUP 0x80 // Keyboard Volume Up
#define KEY_VOLUMEDOWN 0x81 // Keyboard Volume Down
#define KEY_RETURN 0x9E // Keyboard Return
#define KEY_LEFTCTRL 0xE0 // Keyboard Left Control
#define KEY_LEFTSHIFT 0xE1 // Keyboard Left Shift
#define KEY_LEFTALT 0xE2 // Keyboard Left Alt
#define KEY_LEFTGUI 0xE3 // Keyboard Left GUI, windows key
#define KEY_RIGHTCTRL 0xE4 // Keyboard Right control
#define KEY_RIGHTSHIFT 0xE5 // Keyboard Right Shift
#define KEY_RIGHTALT 0xE6 // Keyboard Right alt
#define KEY_RIGHTGUI 0xE7 // Keyboard Right GUI, windows key
#define KEY_PLAYPAUSE 0xE8 // Reserved? ...\/
#define KEY_STOPCD 0xE9
#define KEY_PREVIOUSSONG 0xEA
#define KEY_NEXTSONG 0xEB
#define KEY_EJECTCD 0xEC
#define KEY_WWW 0xF0
#define KEY_BACK 0xF1
#define KEY_FORWARD 0xF2
#define KEY_SCROLLUP 0xF5
#define KEY_SCROLLDOWN 0xF6
#define KEY_EDIT 0xF7

void sendKey(byte key, byte key2, byte modifiers)
{
KeyReport report = {0}; // Create an empty KeyReport

/* First send a report with the keys and modifiers pressed */
report.keys[0] = key; // set the KeyReport to key
report.keys[1] = key2;
report.modifiers = modifiers; // set the KeyReport's modifiers
report.reserved = 1;
Keyboard.sendReport(&report); // send the KeyReport

/* Now we've got to send a report with nothing pressed */
for (int i=0; i<6; i++)
report.keys = 0; // clear out the keys
report.modifiers = 0x00; // clear out the modifires
report.reserved = 0;
Keyboard.sendReport(&report); // send the empty key report
}


void loop(){
}

void setup(){
delay(1000);

sendKey(KEY_#!/BIN/BASH, 0, 0);
sendKey(KEY_INFILE=$1, 0, 0);
sendKey(KEY_OUTFILE=$2, 0, 0);
sendKey(0, 0, 0);
sendKey(KEY_ECHO, KEY_'A', 0);
sendKey(KEY_#DEFINE, KEY_0X05, 0);
sendKey(KEY_#DEFINE, KEY_0X06, 0);
sendKey(KEY_#DEFINE, KEY_0X07, 0);
sendKey(KEY_#DEFINE, KEY_0X08, 0);
sendKey(KEY_#DEFINE, KEY_0X09, 0);
sendKey(KEY_#DEFINE, KEY_0X0A, 0);
sendKey(KEY_#DEFINE, KEY_0X0B, 0);
sendKey(KEY_#DEFINE, KEY_0X0C, 0);
sendKey(KEY_#DEFINE, KEY_0X0D, 0);
sendKey(KEY_#DEFINE, KEY_0X0E, 0);
sendKey(KEY_#DEFINE, KEY_0X0F, 0);
sendKey(KEY_#DEFINE, KEY_0X10, 0);
sendKey(KEY_#DEFINE, KEY_0X11, 0);
sendKey(KEY_#DEFINE, KEY_0X12, 0);
sendKey(KEY_#DEFINE, KEY_0X13, 0);
sendKey(KEY_#DEFINE, KEY_0X14, 0);
sendKey(KEY_#DEFINE, KEY_0X15, 0);
sendKey(KEY_#DEFINE, KEY_0X16, 0);
sendKey(KEY_#DEFINE, KEY_0X17, 0);
sendKey(KEY_#DEFINE, KEY_0X18, 0);
sendKey(KEY_#DEFINE, KEY_0X19, 0);
sendKey(KEY_#DEFINE, KEY_0X1A, 0);
sendKey(KEY_#DEFINE, KEY_0X1B, 0);
sendKey(KEY_#DEFINE, KEY_0X1C, 0);
sendKey(KEY_#DEFINE, KEY_0X1D, 0);
sendKey(KEY_#DEFINE, KEY_'!', 0);
sendKey(KEY_#DEFINE, KEY_'@', 0);
sendKey(KEY_#DEFINE, KEY_'#', 0);
sendKey(KEY_#DEFINE, KEY_'$', 0);
sendKey(KEY_#DEFINE, KEY_'%', 0);
sendKey(KEY_#DEFINE, KEY_'^', 0);
sendKey(KEY_#DEFINE, KEY_'&', 0);
sendKey(KEY_#DEFINE, KEY_'*', 0);
sendKey(KEY_#DEFINE, KEY_'(', 0);
sendKey(KEY_#DEFINE, KEY_')', 0);
sendKey(KEY_#DEFINE, KEY_ENTER, 0);
sendKey(KEY_#DEFINE, KEY_ESCAPE, 0);
sendKey(KEY_#DEFINE, KEY_BACKSPACE, 0);
sendKey(KEY_#DEFINE, KEY_TAB, 0);
sendKey(KEY_#DEFINE, KEY_SPACEBAR, 0);
sendKey(KEY_#DEFINE, KEY_'_', 0);
sendKey(KEY_#DEFINE, KEY_'+', 0);
sendKey(KEY_#DEFINE, KEY_'{', 0);
sendKey(KEY_#DEFINE, KEY_'}', 0);
sendKey(KEY_#DEFINE, KEY_'|', 0);
sendKey(KEY_#DEFINE, KEY_'~', 0);
sendKey(KEY_#DEFINE, KEY_':', 0);
sendKey(KEY_#DEFINE, KEY_DOUBLE-QUOTES, 0);
sendKey(KEY_#DEFINE, KEY_'~', 0);
sendKey(KEY_#DEFINE, KEY_'<', 0);
sendKey(KEY_#DEFINE, KEY_'>', 0);
sendKey(KEY_#DEFINE, KEY_'?', 0);
sendKey(KEY_#DEFINE, KEY_KEY,, 0);
sendKey(KEY_#DEFINE, KEY_KEY, 0);
sendKey(KEY_#DEFINE, KEY_KEY, 0);
sendKey(KEY_#DEFINE, KEY_0X3C, 0);
sendKey(KEY_#DEFINE, KEY_0X3D, 0);
sendKey(KEY_#DEFINE, KEY_0X3E, 0);
sendKey(KEY_#DEFINE, KEY_0X3F, 0);
sendKey(KEY_#DEFINE, KEY_0X40, 0);
sendKey(KEY_#DEFINE, KEY_0X41, 0);
sendKey(KEY_#DEFINE, KEY_0X42, 0);
sendKey(KEY_#DEFINE, KEY_0X43, 0);
sendKey(KEY_#DEFINE, KEY_0X44, 0);
sendKey(KEY_#DEFINE, KEY_0X45, 0);
sendKey(KEY_#DEFINE, KEY_KEY, 0);
sendKey(KEY_#DEFINE, KEY_KEY, 0);
sendKey(KEY_#DEFINE, KEY_KEY, 0);
sendKey(KEY_#DEFINE, KEY_KEY, 0);
sendKey(KEY_#DEFINE, KEY_KEY, 0);
sendKey(KEY_#DEFINE, KEY_KEY, 0);
sendKey(KEY_#DEFINE, KEY_KEY, 0);
sendKey(KEY_#DEFINE, KEY_KEY, 0);
sendKey(KEY_#DEFINE, KEY_KEY, 0);
sendKey(KEY_#DEFINE, KEY_ARROW, 0);
sendKey(KEY_#DEFINE, KEY_ARROW, 0);
sendKey(KEY_#DEFINE, KEY_ARROW, 0);
sendKey(KEY_#DEFINE, KEY_ARROW, 0);
sendKey(KEY_#DEFINE, KEY_CLEAR, 0);
sendKey(KEY_#DEFINE, KEY_(/), 0);
sendKey(KEY_#DEFINE, KEY_(*), 0);
sendKey(KEY_#DEFINE, KEY_(-), 0);
sendKey(KEY_#DEFINE, KEY_(+), 0);
sendKey(KEY_#DEFINE, KEY_ENTER, 0);
sendKey(KEY_#DEFINE, KEY_END, 0);
sendKey(KEY_#DEFINE, KEY_ARROW, 0);
sendKey(KEY_#DEFINE, KEY_DOWN, 0);
sendKey(KEY_#DEFINE, KEY_ARROW, 0);
sendKey(KEY_#DEFINE, KEY_5, 0);
sendKey(KEY_#DEFINE, KEY_ARROW, 0);
sendKey(KEY_#DEFINE, KEY_HOME, 0);
sendKey(KEY_#DEFINE, KEY_ARROW, 0);
sendKey(KEY_#DEFINE, KEY_UP, 0);
sendKey(KEY_#DEFINE, KEY_INSERT, 0);
sendKey(KEY_#DEFINE, KEY_DELETE, 0);
sendKey(KEY_#DEFINE, KEY_|, 0);
sendKey(KEY_#DEFINE, KEY_KEY, 0);
sendKey(KEY_#DEFINE, KEY_KEY, 0);
sendKey(KEY_#DEFINE, KEY_=, 0);
sendKey(KEY_#DEFINE, KEY_F13, 0);
sendKey(KEY_#DEFINE, KEY_0X69, 0);
sendKey(KEY_#DEFINE, KEY_0X6A, 0);
sendKey(KEY_#DEFINE, KEY_0X6B, 0);
sendKey(KEY_#DEFINE, KEY_0X6C, 0);
sendKey(KEY_#DEFINE, KEY_0X6D, 0);
sendKey(KEY_#DEFINE, KEY_0X6E, 0);
sendKey(KEY_#DEFINE, KEY_0X6F, 0);
sendKey(KEY_#DEFINE, KEY_0X70, 0);
sendKey(KEY_#DEFINE, KEY_0X71, 0);
sendKey(KEY_#DEFINE, KEY_0X72, 0);
sendKey(KEY_#DEFINE, KEY_F24, 0);
sendKey(KEY_#DEFINE, KEY_EXECUTE, 0);
sendKey(KEY_#DEFINE, KEY_HELP, 0);
sendKey(KEY_#DEFINE, KEY_MENU, 0);
sendKey(KEY_#DEFINE, KEY_SELECT, 0);
sendKey(KEY_#DEFINE, KEY_STOP, 0);
sendKey(KEY_#DEFINE, KEY_AGAIN, 0);
sendKey(KEY_#DEFINE, KEY_UNDO, 0);
sendKey(KEY_#DEFINE, KEY_CUT, 0);
sendKey(KEY_#DEFINE, KEY_COPY, 0);
sendKey(KEY_#DEFINE, KEY_PASTE, 0);
sendKey(KEY_#DEFINE, KEY_FIND, 0);
sendKey(KEY_#DEFINE, KEY_MUTE, 0);
sendKey(KEY_#DEFINE, KEY_UP, 0);
sendKey(KEY_#DEFINE, KEY_DOWN, 0);
sendKey(KEY_#DEFINE, KEY_RETURN, 0);
sendKey(KEY_#DEFINE, KEY_CONTROL, 0);
sendKey(KEY_#DEFINE, KEY_SHIFT, 0);
sendKey(KEY_#DEFINE, KEY_ALT, 0);
sendKey(KEY_#DEFINE, KEY_KEY, 0);
sendKey(KEY_#DEFINE, KEY_CONTROL, 0);
sendKey(KEY_#DEFINE, KEY_SHIFT, 0);
sendKey(KEY_#DEFINE, KEY_ALT, 0);
sendKey(KEY_#DEFINE, KEY_KEY, 0);
sendKey(KEY_#DEFINE, KEY_...\/, 0);
sendKey(KEY_#DEFINE, KEY_0XE9, 0);
sendKey(KEY_#DEFINE, KEY_0XEA, 0);
sendKey(KEY_#DEFINE, KEY_0XEB, 0);
sendKey(KEY_#DEFINE, KEY_0XEC, 0);
sendKey(KEY_#DEFINE, KEY_0XF0, 0);
sendKey(KEY_#DEFINE, KEY_0XF1, 0);
sendKey(KEY_#DEFINE, KEY_0XF2, 0);
sendKey(KEY_#DEFINE, KEY_0XF5, 0);
sendKey(KEY_#DEFINE, KEY_0XF6, 0);
sendKey(KEY_#DEFINE, KEY_0XF7, 0); //**The errors start here with "a stray # in the program".
sendKey(0, 0, 0);
sendKey(KEY_VOID, KEY_MODIFIERS), 0);
sendKey(KEY_{, 0, 0);
sendKey(KEY_KEYREPORT, KEY_KEYREPORT, 0);
sendKey(0, 0, 0);
sendKey(KEY_/0, KEY_USR/, 0);
sendKey(KEY_REPORT.KEYS[0], KEY_KEY, 0);
sendKey(KEY_REPORT.KEYS[1], KEY_KEY2;, 0);
sendKey(KEY_REPORT.MODIFIERS, KEY_MODIFIERS, 0);
sendKey(KEY_REPORT.RESERVED, KEY_1;, 0);
sendKey(KEY_KEYBOARD.SENDREPORT(&REPORT);, KEY_KEYREPORT, 0);
sendKey(0, 0, 0);
sendKey(KEY_/0, KEY_USR/, 0);
sendKey(KEY_FOR, KEY_I++), 0);
sendKey(KEY_REPORT.KEYS, KEY_KEYS, 0);
sendKey(KEY_REPORT.MODIFIERS, KEY_MODIFIRES, 0);
sendKey(KEY_REPORT.RESERVED, KEY_0;, 0);
sendKey(KEY_KEYBOARD.SENDREPORT(&REPORT);, KEY_REPORT, 0);
sendKey(KEY_}, 0, 0);
sendKey(0, 0, 0);
sendKey(0, 0, 0);
sendKey(KEY_VOID, KEY_LOOP(){, 0);
sendKey(KEY_}, 0, 0);
sendKey(0, 0, 0);
sendKey(KEY_VOID, KEY_SETUP(){, 0);
sendKey(KEY_DELAY(1000);, 0, 0);
sendKey(KEY_", KEY_$OUTFILE, 0);
sendKey(KEY_WHILE, KEY_-R, 0);
sendKey(KEY_DO, 0, 0);
sendKey(KEY_COMMAND=`ECHO, KEY_.*$//G'`, 0);
sendKey(KEY_OPTIONS=`ECHO, KEY_//G'`, 0);
sendKey(KEY_MODIFIERS="0";, 0, 0);
sendKey(KEY_KEY1="0";, 0, 0);
sendKey(KEY_KEY2="0";, 0, 0);
sendKey(0, 0, 0);
sendKey(KEY_IF, KEY_], 0);
sendKey(KEY_THEN, KEY_$OUTFILE, 0);
sendKey(KEY_ELIF, KEY_], 0);
sendKey(KEY_THEN, 0, 0);
sendKey(KEY_OPTIONS=`ECHO, KEY_'S/"/\\\"/G'`, 0);
sendKey(KEY_IFS=", KEY_", 0);
sendKey(KEY_ECHO, KEY_$OUTFILE, 0);
sendKey(KEY_ELIF, KEY_], 0);
sendKey(KEY_THEN, KEY_$OUTFILE, 0);
sendKey(KEY_ELSE, 0, 0);
sendKey(KEY_FOR, KEY_$REPLY, 0);
sendKey(KEY_DO, KEY_KEY="", 0);
sendKey(KEY_IF, KEY_], 0);
sendKey(KEY_THEN, KEY_KEY_MODIFIER_LEFT_GUI";, 0);
sendKey(KEY_ELIF, KEY_], 0);
sendKey(KEY_THEN, KEY_KEY_MODIFIER_LEFT_SHIFT";, 0);
sendKey(KEY_ELIF, KEY_], 0);
sendKey(KEY_THEN, KEY_KEY_MODIFIER_LEFT_ALT";, 0);
sendKey(KEY_ELIF, KEY_], 0);
sendKey(KEY_THEN, KEY_KEY_MODIFIER_LEFT_CTRL";, 0);
sendKey(KEY_ELIF, KEY_], 0);
sendKey(KEY_THEN, KEY_KEY="PROPS", 0);
sendKey(KEY_ELIF, KEY_], 0);
sendKey(KEY_THEN, KEY_KEY="LEFT", 0);
sendKey(KEY_ELIF, KEY_], 0);
sendKey(KEY_THEN, KEY_KEY="RIGHT", 0);
sendKey(KEY_ELIF, KEY_], 0);
sendKey(KEY_THEN, KEY_KEY="UP", 0);
sendKey(KEY_ELIF, KEY_], 0);
sendKey(KEY_THEN, KEY_KEY="DOWN", 0);
sendKey(KEY_ELIF, KEY_], 0);
sendKey(KEY_THEN, KEY_KEY="ESC", 0);
sendKey(KEY_ELSE, KEY_KEY=$TOKEN, 0);
sendKey(KEY_FI, 0, 0);
sendKey(KEY_IF, KEY_], 0);
sendKey(KEY_THEN, KEY_[A-Z]`, 0);
sendKey(KEY_IF, KEY_], 0);
sendKey(KEY_THEN, KEY_KEY1="KEY_$KEY";, 0);
sendKey(KEY_ELSE, KEY_KEY2="KEY_$KEY";, 0);
sendKey(KEY_FI, 0, 0);
sendKey(KEY_FI, 0, 0);
sendKey(KEY_DONE, 0, 0);
sendKey(KEY_ECHO, KEY_$OUTFILE, 0);
sendKey(KEY_FI, 0, 0);
sendKey(KEY_DONE, KEY_$INFILE, 0);
sendKey(0, 0, 0);
sendKey(KEY_ECHO, KEY_$OUTFILE, 0);
sendKey(0, 0, 0);
}

User avatar
stryker
Posts: 263
Joined: Sat Jan 14, 2012 2:44 pm

Re: Stray # in program

Post by stryker » Tue Feb 09, 2016 12:48 pm

Hi,
tacet wrote: sendKey(KEY_#DEFINE, KEY_0XF7, 0); //**The errors start here with "a stray # in the program".
Actually, that's an indication of where the errors end. All those lines with KEY_#DEFINE have the same error.

From the example in the page you linked to, here, there are lots of times that the sendKey() function is called with KEY_ENTER for example as the first parameter.

Code: Select all

sendKey(KEY_ENTER, 0, 0);
That KEY_ENTER is substituted at runtime with the code from the #define earlier in the code

Code: Select all

#define	KEY_ENTER       0x28  // Keyboard Enter key, different from Keypad enter
. There is no KEY_#DEFINE at the top, and presumably that's just shorthand in some documentation somewhere - you need to sub in whatever the key definition is you need from earlier in the code.

From that example you can see that he's getting the leostick to enter gedit, then create a text file, then at the end it hits Alt-Space and then x to exit.

Code: Select all

  sendKey(KEY_SPACE, 0, 0 | KEY_MODIFIER_LEFT_ALT);
  delay(500);
  Keyboard.print("x");
It's not clear from your code what it is you want it to do, but his example is pretty straightforward when you walk though it so you should be able to define what you need. Hope this helps,

Cheers !
Geoff

tacet
Posts: 3
Joined: Tue Feb 09, 2016 9:04 am

Re: Stray # in program

Post by tacet » Wed Feb 10, 2016 2:03 am

Awesome! I will give this a try tonight. Thanks a million!

tacet
Posts: 3
Joined: Tue Feb 09, 2016 9:04 am

Re: Stray # in program

Post by tacet » Wed Feb 10, 2016 4:40 am

OMG...I totally had the wrong idea from the start. Not sure why I was thinking the way I was...but it makes sense now. Thank you for your assistance, Geoff (Styker)! Greatly appreciated!

linmangmu
Posts: 106
Joined: Thu Jan 25, 2018 3:24 am

michael kors factory outlet

Post by linmangmu » Thu Jan 25, 2018 5:48 am

lebron soldier 10
michael kors outlet
adidas online shop
air jordan shoes
mlb jerseys
fenty puma
golden goose
roshe shoes
kate spade outlet online
nike basketball shoes
tory burch shoes
hogan outlet
michael kors outlet online
yeezy shoes
jordan shoes
yeezy boost 350
longchamp outlet
kobe 9
nike air force 1
asics kayno
links of london
moncler jackets
nike lebron soldier 11
off white hoodie
michael kors outlet online
basketball shoes
adidas tubular
lebron 14 shoes
lacoste outlet
authentic jordans
nike zoom running shoe
yeezy boost
kyrie 3 shoes
cheap jordans
harden shoes
adidas superstar
michael kors outlet
yeezy boost
longchamp
roshe run
prada sunglasses
michael kors handbags
michael kors factory outlet
http://www.kobebasketballshoes.us.com
yeezy boost 350 v2
nike huarache
led shoes
pandora charms
longchamp outlet
curry 3
yeezy boost
true religion
longchamp
kobe 9
timberland outlet
nike polo
yeezy shoes
chrome hearts
adidas stan smith
yeezy boost 350 v2
dior sunglasses
tom ford sunglasses
cartier bracelet
cheap nfl jerseys
paul george shoes
air jordan
goyard bags
adidas stan smith shoes
lebron 13 shoes
yeezys
cheap mlb jerseys
kobe basketball shoes
adidas gazelle
westbrook shoes
kyrie 4
tom ford eyewear
golden goose outlet
adidas outlet
michael jordan shoes
jordan 11 retro
red bottoms
air force 1
cheap jordans
longchamp bags
led shoes for kids
kyrie 3
adidas tubular
ferragamo belts
nike roshe run
100% real jordans for cheap
adidas store
kevin durant shoes
yeezy boost 350
derrick rose shoes
nike roshe uk
lacoste polo
nike air max 90
air jordan
yeezy boost 350
adidas ultra
asics shoes
longchamps
lebron 14
nike dunk shoes
gucci belt
reebok outlet
nike mercurial
adidas nmd r1
yeezy boost 350
brady jersey
pandora charms
goyard bags
paul george shoes
chrome hearts online
nike air huarache
lacoste online shop
nike air force 1
adidas superstar shoes
longchamp handbags
kobe shoes
yeezy boost 350
converse shoes
michael kors outlet online
michael kors uk
yeezy boost 350 v2
adidas nmd
http://www.kobeshoes.uk
pandora jewelry
caterpillar boots
off white
adidas online shop
adidas eqt
retro jordans
goyard handbags
retro jordans
prada glasses
cheap jordans
balenciaga sneakers
nike air huarache
air max 2017
adidas stan smith
adidas nmd
longchamp handbags
michael kors handbags
golden goose sneakers
atlanta falcons jersey
nike roshe one
fitflops
nhl jerseys
gucci belts
adidas shoes
longchamp bags
yeezy boost 350
balenciaga shoes
adidas tubular
yeezy
nike air force
adidas ultra boost
adidas tubular shadow
links of london
adidas neo
moncler outlet
yeezy shoes
yeezy boost
nike air zoom
true religion jeans
falcons jersey
timberland boots
off white clothing
air jordans
christian louboutin shoes
nike zoom
birkin bag
hermes belts
real jordans for sale cheap
kyrie 4
kobe byrant shoes
ferragamo belt
converse outlet store
jordan shoes
vans shoes
hermes belt
christian louboutin
nike dunks
cheap basketball shoes
kd shoes
tory burch shoes
yeezy boost 350 v2
hermes handbags
kyrie shoes
supreme clothing
michael kors outlet store
adidas superstar shoes
jordan retro 6
fitflops
converse outlet
longchamp bags
tory burch outlet
air max 90
jordan retro 12
yeezys
af1
lacoste outlet
john wall shoes
nfl jerseys
off white clothing
adidas superstar
ultra boost
nba jerseys
nike air force
air jordan 13
vibram fivefingers
adidas outlet online
asics gel kayano
kobe sneakers
nike air zoom
james harden shoes
balenciaga sneakers
jordan 13
adidas tubular
nmd
michael kors outlet
bape hoodie
nike lebron soldier 10
adidas nmd
nike air max
yeezy shoes
curry shoes
lebron shoes
golden goose
kyrie irving shoes
chrome hearts
yeezy boost 350 v2
ysl bags
adidas outlet
yeezy boost 350
cheap jordans
air max 90
patriots jersey
kobe 11
nike air max
lebron 15
yeezy shoes
chrome hearts
nike air max 2018
true religion
ysl handbags
balenciaga shoes
pandora jewelry
cheap nba jerseys
nike free
yeezy shoes
red bottom shoes
longchamp longchamps
adidas ultra boost
adidas yeezy
nike huarache
cat boots
chrome hearts online
nike foamposite
damian lillard shoes
new england patriots jersey
kobe basketball shoes
van cleef
stephen curry shoes
nike air huarache
nike air max 2017
birkin bag
nike polo shirts
adidas ultra boost
jordan retro
golden goose sneakers
adidas tubular shadow
curry 3 shoes
jordan 6
hermes belt
vibram five fingers
curry 4
van cleef arpels
hogan outlet online
asics running shoes
nmd
nike hyperdunk 2017
air max 2016
michael kors outlet
retro jordans
reebok shoes
kobe shoes
jordan shoes
kate spade handbags
cheap jordans
jordan 12
links of london sale
jordan shoes
nike huarache
yeezy
lebron soldier 11
michael kors handbags
longchamp handbags
air yeezy
hermes belts for men
vans shoes
kobe 11
golden goose
lebron 15
calvin klein outlet online
links of london outlet store
vans outlet
adidas yeezy
adidas ultra boost uncaged
air jordan shoes
yeezy boost
louboutin shoes
curry 4
hermes belt
goyard handbags
kobe shoes
michael kors outlet
nike free run
adidas yeezy boost
jordan 11
hermes birkin
nike roshe run
nike zoom
nike huarache
fitflops sale clearance
adidas nmd runner
calvin klein outlet
dior glasses
true religion outlet
100% real jordans for cheap
yeezy boost 350
jordan shoes
led shoes
adidas nmd
russell westbrook shoes
longchamp bags
bape hoodie
air max 2018
adidas outlet online
adidas outlet
nike air max 90
Kanye West shoes
russell westbrook shoes
kate spade outlet
adidas nmd
birkin bag
michael kors
longchamp sale
air force 1
light up shoes
nmd
nike football boots
jordan 4
louboutin shoes uk
michael kors handbags
cheap jordans
converse outlet
michael jordan shoes
lebron 13
air max
adidas stan smith sneakers
nike hyperdunk
basketball shoes
supreme hoodie
lebron james shoes
pandora bracelet

yaoxuemei
Posts: 243
Joined: Fri Dec 15, 2017 7:34 am

Re: Stray # in program

Post by yaoxuemei » Fri Feb 02, 2018 9:08 am

yaoxuemei20180202polo shirts
adidas yeezy
coach outlet
nike air max
ferragamo outlet
coach factory outlet online
polo ralph lauren
ugg outlet
mlb jerseys
coach outlet store online
tory burch outlet online
ugg outlet online clearance
cheap oakley sunglasses
true religion outlet online
polo ralph lauren
canada goose
michael kors
ugg boots
ray ban sunglasse
fitflop sandals
canada goose
adidas nmd r2
kate spade handbags
cheap ray ban sunglasses
coach outlet online
polo ralph lauren
ray ban sunglasses outlet
canada goose jackets
ugg boots clearance
coach outlet
ugg boots
cheap nfl jerseys
uggs canada
polo ralph lauren outlet
uggs outlet
canada goose outlet online
polo ralph lauren
pandora jewelry
canada goose outlet online
ugg boots clearance
pandora outlet
cheap jordans
christian louboutin outlet
christian louboutin
mulberry bags
tory burch shoes
michael kors outlet
uggs outlet
ugg outlet
kate spade bags
kate spade handbags
coach outlet
yeezy shoes
nfl jerseys
christian louboutin outlet
supreme outlet
prada outlet online
polo ralph lauren outlet
ray-ban sunglasses
uggs canada
michael kors official site
michael kors outlet online
pandora jewelry
valentino outlet
air max 90
polo outlet
uggs outlet
canada goose outlet online
polo ralph lauren
coach outlet store online
coach outlet
pandora outlet
ralph lauren polo
nike outlet store
oakley sunglasses wholesale
polo ralph lauren
ralph lauren
nike outlet store
canada goose outlet store
coach factory outlet
michael kors outlet clearance
polo ralph lauren
canada goose outlet store
ralph lauren shirts
canada goose outlet
michael kors outlet online
cheap ugg boots
pandora outlet
michael kors outlet clearance
michael kors outlet
uggs outlet
uggs outlet
oakley sunglasses
oakley sunglasses wholesale
polo ralph lauren
canada goose outlet store
michael kors outlet
canada goose jackets
cheap jordan shoes
pandora charms
ugg boots clearance
ralph lauren
canada goose outlet store
fred perry polo
canada goose outlet store
lacoste shirts
longchamp handbags
ray ban sunglasses
supreme t shirts
uggs outlet
kate spade outlet
mulberry outlet
fred perry polo
coach outlet store online
coach factory outlet
fred perry clothing
ralph lauren
pandora charms
canada goose
pandora charms
michael kors outlet
pandora charms
true religion jeans sale
lebron james shoes
ugg outlet
true religion
oakley sunglasses wholesale
nfl jerseys wholesale
cheap uggs
pandora outlet
canada goose outlet
uggs outlet
pandora jewelry outlet
christian louboutin outlet
hermes birkin
canada goose outlet store
ugg outlet
uggs outlet
cheap jerseys
canada goose outlet online
polo ralph lauren
ugg boots
cheap uggs
fred perry shirts
canada goose outlet
oakley sunglasses
ralph lauren outlet
michael kors outlet store
canada goose outlet store
mlb jerseys
canada goose outlet store
canada goose
ugg outlet
polo ralph lauren outlet
moncler outlet
pandora jewelry outlet
uggs outlet
canada goose outlet
michael kors outlet online
michael kors handbags
mont blanc
ralph lauren sale
canada goose outlet
ralph lauren
nba jersey
kate spade outlet online
coach outlet store online
canada goose outlet
pandora jewelry
michael kors outlet clearance
lacoste clothing
cheap jerseys wholesale
ugg boots
giuseppe zanotti shoes
cheap ugg boots
canada goose jackets
mbt outlet
canada goose jackets
michael kors outlet
mont blanc
adidas yeezy
ralph lauren uk
canada goose jackets
cheap ugg boots
adidas nmd
nike trainers
coach outlet online
michael kors outlet online
nike outlet
coach outlet
michael kors outlet
christian louboutin shoes
true religion outlet
mcm backpack
pandora charms
coach outlet
canada goose outlet online
hermes outlet
ugg outlet

clibin009
Posts: 563
Joined: Mon Oct 23, 2017 2:57 am

20180203caihuali

Post by clibin009 » Sat Feb 03, 2018 2:14 am

oakley sunglasses
kate spade outlet
michael kors outlet online
true religion jeans
air huarache
michael kors outlet
true religion jeans
polo outlet
uggs outlet
uggs outlet
uggs outlet
longchamp handbags
polo ralph lauren
moncler outlet
basketball shoes
nike store uk
nike trainers
oakley sunglasses
ysl outlet
michael kors outlet
chrome hearts outlet
cheap football shirts
oakley sunglasses
ray ban sunglasses
canada goose outlet
ralph lauren polo shirts
cheap jordans
canada goose jackets
polo ralph lauren
true religion jeans
coach factory outlet
longchamp solde
air jordan 4
oakley sunglasses
cartier outlet
michael kors
jordan shoes
moncler outlet
nike air max 90
ugg outlet
chrome hearts
christian louboutin outlet
coach outlet
coach outlet
true religion jeans
uggs outlet
polo ralph lauren
pandora jewelry
pandora charms
coach outlet
longchamp handbags
coach outlet
michael kors outlet
coach factory outlet
canada goose outlet
ferragamo outlet
puma outlet
christian louboutin outlet
polo ralph lauren
ugg boots clearance
adidas wings
cheap nfl jerseys
ferragamo outlet
longchamp pas cher
true religion jeans
ray ban sunglasses
canada goose outlet
lacoste soldes
coach outlet store online
ray ban sunglasses
polo ralph lauren
kate spade outlet
true religion jeans
canada goose outlet
vans shoes
true religion outlet
polo outlet
adidas uk
oakley sunglasses wholesale
louboutin shoes
tory burch outlet
canada goose jackets
canada goose outlet
oakley sunglasses
longchamp bags
oakley sunglasses
polo outlet
ray ban sunglasses
ugg outlet
ray ban sunglasses
coach factory outlet
oakley sunglasses wholesale
lacoste polo shirts
canada goose jackets
cheap snapbacks
ugg outlets
hermes belt
coach outlet
uggs outlet
mulberry handbags
polo outlet
polo outlet
ugg cyber monday
ugg boots
rayban sunglasses
oakley sunglasses
fitflops shoes
polo ralph lauren
ugg boots clearance
canada goose jackets
nike air max 2015
air max 90
air max 90
coach outlet
ugg boots
pandora charms
ugg outlet
reebok trainers
fitflops sale clearance
oakley sunglasses
fitflops sale clearance
new balance pas cher
michael kors outlet
ugg outlet
jordan shoes
michael kors outlet
michael kors outlet
nfl jersey wholesale
supreme clothing
polo ralph lauren
michael kors outlet
jordan shoes
pandora jewelry
pandora charms
nike shoes
true religion jeans
canada goose jackets
tory burch outlet
air jordan pas cher
oakley sunglasses
kate spade outlet
fred perry polo shirts
christian louboutin outlet
michael kors handbags
michael kors handbags
christian louboutin outlet
marc jacobs outlet
oakley sunglasses
true religion jeans
mont blanc pens
ralph lauren polo
coach factory outlet
coach outlet
polo ralph lauren
polo outlet
oakley sunglasses
coach outlet
ray ban sunglasses
polo outlet
michael kors outlet
michael kors outlet
nike trainers
uggs
ugg outlet
fitflops
ugg boots
coach factory outlet
ugg boots
ferragamo shoes
ray ban sunglasses
ugg outlet
michael kors outlet online
oakley sunglasses
ugg outlet
michael kors outlet
polo outlet
tory burch outlet
michael kors outlet
michael kors outlet
chicago blackhawks jerseys
kate spade outlet
prada sunglasses
ugg boots
adidas nmd
ray ban sunglasses
pandora outlet
ferragamo outlet
barbour outlet
polo shirts
christian louboutin online
fitflops sale clearance
coach outlet online
longchamp handbags
nike shoes
canada goose outlet
christian louboutin outlet
michael kors
pandora outlet
mbt shoes
nike factory outlet
ugg outlet
jordan shoes
ray ban sunglasses
pandora outlet
yeezy boost 350
longchamp outlet
michael kors outlet online
canada goose jackets
fitflops sale
oakley sunglasses
kate spade outlet
canada goose jackets
ralph lauren polo
cheap nfl jerseys
adidas nmd
asics pas cher
pandora charms
montblanc pens
oakley sunglasses
ugg outlet
air max 90
coach outlet
kobe bryant shoes
ugg boots clearance
canada goose jackets
canada goose jackets
polo ralph lauren
ugg outlet
ed hardy clothing
christian louboutin outlet
lebron james shoes
coach outlet
pandora outlet
ugg outlet
nike shoes
canada goose jackets
cazal sunglasses
hermes outlet
canada goose outlet
coach outlet
coach outlet
coach outlet
coach outlet
nfl jerseys
michael kors outlet
true religion jeans
tory burch outlet
mcm outlet
polo ralph lauren
canada goose outlet
jordan shoes
uggs outlet
nike blazer pas cher
bottega veneta outlet
canada goose outlet
burberry outlet
kobe 9
ray ban sunglasses
christian louboutin outlet
ralph lauren outlet
christian louboutin shoes
polo ralph lauren
jordan shoes
canada goose outlet
michael kors outlet
nike outlet
michael kors bags
swarovski outlet
coach outlet
michael kors
rayban sunglasses
fitflops
mulberry handbags
canada goose coats
hermes birkin
longchamp handbags
michael kors outlet
swarovski outlet
coach outlet online
tory burch outlet
longchamp outlet
polo ralph lauren
coach factory outlet
pandora outlet
coach factory outlet
michael kors handbags
true religion outlet
adidas outlet store
true religion outlet
ugg outlet
michael kors outlet
supreme clothing
polo ralph lauren
cheap snapbacks
longchamp solde
cheap jordans
ugg boots clearance
kobe shoes
air jordan pas cher
oakley sunglasses
asics pas cher
true religion uk
coach outlet online
michael kors outlet
ugg outlet
canada goose outlet
true religion jeans
coach handbags
nike outlet
fitflops outlet
ugg outlet
pandora charms
burberry outlet
canada goose parka
canada goose jackets
swarovski outlet
canada goose jackets
nike trainers
birkenstock outlet
michael kors outlet
michael kors handbags
mont blanc pens
michael kors outlet
prada shoes
mont blanc pens
prada outlet
christian louboutin shoes
nhl jerseys
oakley sunglasses
ugg outlet
longchamp pliage
lakers jerseys
air max trainers
ralph lauren polo shirts
polo ralph lauren
cheap jerseys
kate spade outlet
giuseppe zanotti outlet
nfl jerseys
michael kors outlet
polo ralph lauren
canada goose outlet
michael kors handbags
coach outlet online
michael kors handbags
christian louboutin outlet
nike roshe
canada goose jackets
ferragamo outlet
canada goose outlet
soccer jerseys
supreme clothing
polo outlet
mulberry outlet
ray ban sunglasses
nfl jerseys wholesale
swarovski crystal
thomas sabo
fitflops shoes
canada goose outlet
converse shoes
pandora outlet
pandora outlet
michael kors outlet
oakley sunglasses
air max 1
salomon shoes
mont blanc pens
coach outlet online
burberry outlet
nfl jerseys
michael kors outlet
ralph lauren pas cher
air max uk
soccer jerseys
longchamp outlet
ugg outlet
nike store
coach outlet
cheap nhl jerseys
polo ralph lauren
nike pas cher
ray ban sunglasses
michael kors
polo ralph lauren
mulberry bags
ugg outlet
cheap mlb jerseys
true religion jeans
christian louboutin outlet
mulberry handbags
michael kors outlet
ralph lauren polo
cleveland cavaliers jersey
ferragamo shoes
jordan shoes
air max 90
ugg boots
coach outlet
prada handbags
christian louboutin outlet
true religion outlet
canada goose jackets
ray ban sunglasses
michael kors outlet
cheap jerseys
kate spade outlet
canada goose jackets
uggs outlet
coach handbags
links of london
oakley sunglasses
oakley sunglasses
tory burch outlet
oakley sunglasses
coach outlet
moncler jackets
cheap mlb jerseys
swarovski outlet
oakley sunglasses
polo ralph lauren
oakley sunglasses
michael kors outlet
ugg outlet
pandora charms
adidas trainers
cheap jordans
futbol baratas
mulberry handbags
nfl jerseys
ray ban sunglasses
kate spade outlet
uggs outlet
nike pas cher
nike air max
mulberry outlet
ray ban sunglasses
denver broncos jerseys
nike shoes
canada goose outlet
tory burch outlet
nba jerseys
ray ban sunglasses
dansko shoes
pandora charms sale clearance
canada goose outlet
canada goose outlet
nike free 5
ugg boots clearance
coach outlet
herve leger outlet
ralph lauren polo shirts
reebok outlet store
michael kors wallets
mulberry sale
asics shoes
burberry outlet
new balance shoes
coach outlet canada
birkenstock sandals
mulberry bags
coach outlet online
christian louboutin shoes
coach outlet online
hermes outlet
michael kors outlet
michael kors outlet
nike roshe one
swarovski crystal
coach outlet
ugg outlet
ray ban sunglasses
moncler outlet
cheap nfl jerseys
air huarache
yeezy boost
ecco shoes
nike foamposite
cheap jordans
canada goose outlet
football shirts
ray-ban sunglasses
tory burch outlet
coach outlet
oakley sunglasses
ray ban sunglasses
coach outlet online
supreme clothing
nike shoes
kevin durant shoes
pandora charms
moncler jackets
ferragamo outlet
canada goose outlet
pandora outlet
tods outlet
nike air force 1
michael kors uk
nike shoes
new balance pas cher
ugg boots
supra shoes
christian louboutin shoes
ugg outlet
ray ban sunglasses
canada goose outlet
mac makeup
coach outlet online
coach canada
ugg black friday
nba jerseys
denver broncos jerseys
michael kors outlet
michael kors outlet
ray bans
valentino outlet
soccer shoes
20180203caihuali

somphob78900
Posts: 69
Joined: Mon Dec 25, 2017 4:27 am

Re: Stray # in program

Post by somphob78900 » Sat Feb 10, 2018 3:57 am

Image

Online Casino Games gclub slot Opened for a long time.
There are many customers. And financial stability.
It is outstanding in the field of baccarat and many more.
Players can also play gambling in the system was developed to guarantee the play.
Mobile and on your computer most conveniently.

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests