Hey everyone, I just started using AutoIT for work a few days ago and I have a quick question. I'm trying to get a script written up to step through a rendering demo and then give an option to re-render if the user wants to see it again. It works fine up to the point of clicking 'ok' but I can't figure out how to have the button push trigger the rendering... my code for this section is below if anyone sees anything I did wrong. Thanks!
CODE;Alert user rendering is starting
MsgBox(64, "Information", "The scene will now be rendered", 3)
;Starts rendering of scene
Send("{LSHIFT}Q")
;Recognize when rendering is over and give option to render again
WinWaitClose("Rendering")
$Done = MsgBox(36, "Rendering Complete", "Would you like to render again?")
; -If 'No' is selected, do nothing. Image stays open and user can
; fiddle around in program
; -If 'Yes' is clicked, restart the render.
If $Done = 1 Then
Sleep(100)
MouseMove(840, 144) ;on screen location of render button
MouseClick("left")
EndIf