Forum Discussion
tim_espasandin
13 years agoOccasional Contributor
Here's what I wound up with.
function ConcatProblem()
{
var notepad, window, finished, finalvariable;
notepad = Sys.Process("notepad").FullName;
window = ".Window(\"Notepad\", \"Untitled - Notepad\", 1).Window(\"Edit\", \"\", 1)";
finished = notepad + window;
finalvariable = Sys.Find("FullName", finished, 100);
finalvariable.wtext = "Text here";
}
This seems to work just fine. If anyone has a better way to do this, please let me know.
function ConcatProblem()
{
var notepad, window, finished, finalvariable;
notepad = Sys.Process("notepad").FullName;
window = ".Window(\"Notepad\", \"Untitled - Notepad\", 1).Window(\"Edit\", \"\", 1)";
finished = notepad + window;
finalvariable = Sys.Find("FullName", finished, 100);
finalvariable.wtext = "Text here";
}
This seems to work just fine. If anyone has a better way to do this, please let me know.