How to make an application active after using the open() command ?
in
Programming Questions
•
3 years ago
How can I make a notepad application the active application without writing code to select the window with the mouse ?
Robot yy;
public boolean firstpass= true;
void setup(){
size(400, 400);
try
{
yy = new Robot();
}
catch (AWTException e) {
e.printStackTrace();
}
}
void draw(){
if (firstpass){
open("c://notepad.exe");
firstpass=false;
}
yy.keyPress(char('b'));
}
1
