Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
key Function
#1
Hi all,

I'm having a problem with the key() function.

I'm passing a variable to the key() function however it's outputting the string itself.

Here is example code:

str filename = _command
filename.from("C:\Downloads\" filename ".jpg")
out filename
int w1=act(win("Select file(s) to upload by" "#32770"))
lef 238 368 w1
key(filename)
lef+ 526 365 w1
lef- 527 365 w1


Insteading of key-ing C:\Downloads\blah.jpg, it keys out filename.


Please help.


Thanks,
Kerx
#2
Must be space after key.

key (filename)


Forum Jump:


Users browsing this thread: 1 Guest(s)