| || |
ActiveName( ) and FocusName( ) taking up to 5 seconds ??
I am having a strange issue with some of the base QARun commands.
For some applications, commands like FocusName()and ActiveName() are taking a few seconds to execute.
I have tested this by running Notepad and my VB Application side by side.
ActiveName() on Notepad takes less then 1/10 of a second to execute.
However, on my VB Application - Same computer, same resolution - Running right next to notepad:
When I select that application and execute ActiveName() the command takes between 4 to 5 seconds.
I am running QARun Ver. 4.8.0
Has anyone else run into a situation like this and found out why this is happening or any resolution ?
Re: ActiveName( ) and FocusName( ) taking up to 5 seconds ??
Try this to see if you have the same results. This basically does the same thing but with Windows API calls.
declare dllfunc "long GetWindowTextA(long,str,long) user32" GetWindowText
declare dllfunc "long GetForegroundWindow() user32" GetForegroundWindow
ret = GetForegroundWindow()
ret = GetWindowText(ret,sString,128)
msgbox "", sString