$hWin = WinWait('[Class:OperaWindowClass]', '', 5)
If Not $hWin Then Exit -500
WinActivate($hWin)
If WinWaitActive($hWin, '', 5) Then
ControlSend($hWin, '', '', '{F5}')
Else
Exit -250
EndIf
;или
$hWin = WinWait('[Class:OperaWindowClass]', '', 5)
If Not $hWin Then Exit -500
SendKeepActive($hWin)
Send('{F5}')
SendKeepActive('')