Jump to content

Hyperion

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by Hyperion

  1. I've tried to use this, but it didn't work: Do Sleep(500) Until _WinAPI_IsHungAppWindow ("X3TC") == 0If I understood correctly, the $hWnd argument should be the window name, but it looks like I'm wrong. I cannot use the ControlGetHandle method, since it isn't a windows program but rather a game, which has no text input upon startup, I just have no idea how to properly use your method on that.
  2. Hello AutoIt forums, I'm trying to execute a keypress combination after a certain program is fully loaded, by which I mean that it isn't acting as frozen to any user inputs. But so far, I haven't been able to find a reliable solution to do this, not even WinWaitActive seemed to work properly on this one. I've tried to solve it by using the sleep function, but the program takes a longer time to start if it's being started for the first time, and I want the action to take place as soon as it is ready, without the need to imprecisely guess the time it takes to load. I thought of getting the memory usage of it and comparing it to a value in a while loop, but this didn't work as my attempt to get the memory by $Mem = ProcessGetStats("name") has failed, and it would also get a bit more complicated. If there is any reliable way to check whether a window is responding or not, I'd be glad to know it
×
×
  • Create New...