Forum Discussion
mgroen
14 years agoFrequent Contributor
innerText should be a text, not an object. Probably you have to delete leading spaces from the text.
What exactly do you mean by "I cannot seem to get this number to put it in a variabele"? Do you get error message or...?
hi,
I need to capture the innertext value (which contains the number of created file), put this in a variabele , so I can re-use this "string of numbers" in another script.
What I mean is, I used the Object Spyder and selected "On Screen Object" to select the object which contains the filenumber itself. That is why I use the term "Object". I created a variable of type Object , and used a "Set Variable Value" statement to put the filenumer in this variable.
Also I created a log message in which I post the variabele. But this log entry remains empty. That's why I think this approach does not work. (later on, when I have succeeded to capture this value to a variable, I want to use this variable in a "set text" statement to enter the filenumber in another script).
See attached screenshot for the statement I used.
Hope this makes my challenge more clear - If any questions please don't hesitate to ask for clearification.
Related Content
- 6 years ago
- 13 years ago
Recent Discussions
- 2 days ago
- 2 days ago
- 5 days ago