Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Wait for Active Window in REP of Macro
#2
Quote:The problem is that MacroB.exe at some point, irregularly, just stops working.
MacroB probably should be a simple thread, not .exe process.

Macro MacroA
Code:
Copy      Help
mac "sub.MacroB"
atend sub.EndMacroB
rep
,out "repeating"
,1


#sub MacroB
int w1=wait(0 WA win("Notepad"))
clo w1


#sub EndMacroB
EndThread "MacroA:MacroB"
Quote:Is there a way I can use an "if .. then .. else" case to search if the window showing up is active
Macro MacroA2
Code:
Copy      Help
rep
,out "repeating"
,int wActive(win) isThatWindow(0)
,isThatWindow=wintest(wActive "Notepad" "Notepad"); err
,if isThatWindow
,,clo wActive
,1


Messages In This Thread
RE: Wait for Active Window in REP of Macro - by Gintaras - 08-13-2019, 06:59 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)