saving .txt files as .html. --- type() returns null

Asked by Lalith Prasad

I have a simple operation on saving .txt files as .html. Every steps works fine, but "type(PSLM)" returns null. I'm not sure what exactly is the problem.

Debug.on(3)

doubleClick("1536668044983.png")

click("1536668158573.png")

click("save as.PNG")

click("filename-1.PNG")

m = type(Key.LEFT, KeyModifier.SHIFT + KeyModifier.CTRL) (Line which is returning NULL)

print(m)

wait(5)

paste(".html")

click("1536751850899.png")

click("All_files.PNG")

Need your advise on this.

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#2

use the Python file features (read/write) to do this job instead of clicking around.

Revision history for this message
RaiMan (raimund-hocke) said :
#3

BTW: the return value of type() does not help anything - it simply does not matter.

Can you help with this problem?

Provide an answer of your own, or ask Lalith Prasad for more information if necessary.

To post a message you must log in.