Jump to content

replaygeorge

Members
  • Posts

    4
  • Joined

  • Last visited

About replaygeorge

  • Birthday September 10

replaygeorge's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. In my case the class is SunAwtFrame (I think Java related). Here is the script that I made, to detect this window: AutoItSetOption("MouseCoordMode", 0) ; relative coords to active window While 1 $hWnd = WinGetHandle ( "My window" ) If WinExists ("My window") Then WinActivate ("My window") MouseClick ( $MOUSE_CLICK_PRIMARY, 205, 105, 1) ; click on the OK button relative coords EndIf Sleep(5000) ; sleep (pause script) 5 seconds WEnd It works, but only if the screen is on. I cannot access the button, because of this class, so I need to click the mouse like that. If the station is locked, it does not work. I need to run a process unattended, so the script should work even if the screen is off. Any suggestions?
  2. @benched42 Hi, I am trying to write a script just like that, to detect a similar dialog window that pops-up and need to close it automatically. Can you share your script, please? Thank you. L.E. I have made a script that works, but I would like to make it work also in the case if the workstation is locked or screensaver comes up.
  3. It is a window from Matlab, from a 3rd party app. I don't think you could recreate the eviroment, because it is a proprietary plugin part of a more complex setup. There are several scripts and tools which in the end create embedded auto generated code, from Simulink models. The script splits the complex models into smaller ones, does the job for one, but then the save all window pops up which (for now) cannot be bypassed by commands. So I have to sit and click that window from time to time. Until I find a more elegant solution, I could autoclick this window with AutoIt I will try your suggestion and let you know if it works. Thank you
  4. Hello everyone, I need to make a small script that detects a dialog window that opens up and has two buttons: Save all/ Cancel. The problem is that this window class is SunAwtFrame, and I cannot get any info about the buttons, but I can get the title text. This window will pop up several times, so I need to detect each time it comes up, and answer save all, so my work continues unattended. I think a method to click the desired button could be to somehow click at certain coordinates, relative to this window's position, after bringing this window into focus. Maybe my question is silly, because I see that AutoIt is a very powerful tool, but am not sure how to handle this type of window. Any suggestion or example would be much appreciated! Thank you!
×
×
  • Create New...