user3015012
user3015012

Reputation: 55

Javascript Content in Imacros doesn't work

javascript CONTENT in Imacros doesn't work properly

TAG POS=1 TYPE=INPUT:FILE ATTR=TYPE:file&&NAME:pic CONTENT=C:\Users\PC\Desktop\pics\boys\1.jpg » this works

    //code
    macro += "WAIT SECONDS=1 \n";
    macro += "TAG POS=1 TYPE=INPUT:FILE ATTR=TYPE:file&&NAME:pic CONTENT=C:\Users\PC\Desktop\pics\boys\1.jpg \n";
    //more macrocode

and the file input shows the file like this "CUsersPcDesktoppicsboys1.jpg"

Does anyone know whats wrong ?

Upvotes: 0

Views: 142

Answers (1)

edinvnode
edinvnode

Reputation: 3537

macro += "TAG POS=1 TYPE=INPUT:FILE ATTR=TYPE:file&&NAME:pic CONTENT=C:\\Users\\PC\\Desktop\\pics\\boys\\1.jpg" + "\n";

It goes like this.

Upvotes: 1

Related Questions