Skip to content
This repository was archived by the owner on Jun 6, 2022. It is now read-only.

Commit a66bdd2

Browse files
author
sprogcoder
committed
added setWindow
1 parent d9a36a1 commit a66bdd2

File tree

1 file changed

+6
-0
lines changed
  • java-win-memory-trainer/src/main/java/com/sprogcoder/memory

1 file changed

+6
-0
lines changed

java-win-memory-trainer/src/main/java/com/sprogcoder/memory/JTrainer.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ public boolean isProcessAvailable()
9090
return (hProcess > 0);
9191
}
9292

93+
public void setWindow(String windowClass, String windowText)
94+
{
95+
this.windowClass = windowClass;
96+
this.windowText = windowText;
97+
}
98+
9399
public void retryProcess() throws WindowNotFoundException
94100
{
95101
this.pid = getProcessIdFromWindow(windowClass, windowText);

0 commit comments

Comments
 (0)