Hello, I have a question about the execution of what I believe are called functions (WinActivate/WinClose/Run/and so forth). What determines the amount of time it will take the specified command to finish and move on to the next. Is there a way to decrease this time?
$W1hndl = Wingethandle("[CLASS:Notepad]")
ConsoleWrite("Window Title Renamed." & @CRLF)
$begin = TimerInit()
Local $dif = TimerDiff($begin)
MsgBox(0, "Time Difference", $dif)
When I run this, It takes about 250ms, however if the send alt-tab is commented out it takes about 500ms. It doesn't make sense to me, why would it take longer to give focus to a window that already has it? Also 250ms to seems like a lot of time to move from one function to the next. Am I wrong? Is this normal, and theres no faster way to do this?
On a side note, I'm just trying to understand the capabilities and limitations of autoit. It's not that I need a window to activate and move on within 10ms.
Thank you for your time.