Send Command...

2 posts in this topic

Guest Armypunk

Maybe it's me or my send command syntax but I just can't get this to work. I am trying to set a variable equal to a user configured function key - F1, F2, F3 etc that is read from an .ini file. Everything works till I hit the Send command and it only spits out a $. Any ideas?

As an example lets say the ReadIni has set $fkey = "F1"

Send("{$fkey}") <---- Doesn't work only spits out a $

What am I doing wrong?

This is syntax direct from help file:

Sends simulated keystrokes to the active window.

Send ( "keys" [, flag] )

{F1} - {F12} Function keys

I tested and verified that $fkey does equal F1, I also tried hardcoding as follows and it worked: