Jump to content

ksedran

Members
  • Posts

    5
  • Joined

  • Last visited

ksedran's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Thanks for all your help SmOke_N. I got my little test script working, hopefully it works on the real one now. Thanks again!!
  2. OK I tried using the ControlID, ClassName, and Text for this simple example below: MsgBox(0, "AutoIt Example", "Test") WinWaitActive("AutoIt Example", "Button1", "Button1") ControlFocus("AutoIt Example", "Button1", "Button1") ControlClick("AutoIt Example", "Button1", "Button1") The info window described the Window Details as "AutoIt Example" The ControlID as "2" The ClassNameNN as "Button1" and the Text as "OK" Shouldn't this pop up the message box, then close it? The messagebox doesn't close.
  3. Yes the window is called "Database Restore" Any ideas? Thanks for the quick responses BTW.
  4. No I haven't tried the window info tool. I just assumed the name in the top bar of the message box was the name of the window. Where is the window info tool? I am very new to AutoIt. Thanks.
  5. Hello All, I have a fairly simple script that runs a restore process on a daily basis. The script works fine on all the button clicks throughout the process. The problem arises on the final step when a messagebox asks for a OK or Cancel response. The messagebox does not go away when Cancel is clicked. Here is the script. Run ("D:\.........") WinWaitActive ("Database Restore", "", "3") ControlFocus ("Database Restore", "Next", "Next") ControlClick ("Database Restore", "Next", "Next") WinWaitActive ("Database Restore", "Next", "Next") ControlFocus ("Database Restore", "Next", "Next") ControlClick ("Database Restore", "Next", "Next") WinWaitActive ("Database Restore", "Start Restore", "Start Restore") ControlFocus ("Database Restore", "Start Restore", "Start Restore") ControlClick ("Database Restore", "Start Restore", "Start Restore") WinWaitActive ("Database Restore", "Done", "Done") ControlFocus ("Database Restore", "Done", "Done") ControlClick ("Database Restore", "Done", "Done") WinWaitActive ("Database Restore", "Cancel", "Cancel") ControlFocus ("Database Restore", "Cancel", "Cancel") ControlClick ("Database Restore", "Cancel", "Cancel") ;Finished The OK or Cancel messagebox stays on the screen. Thanks in advance for any help. ksedran
×
×
  • Create New...