You already have that with "[TEXT:OK]". Your problem is identifying the window, not the control, since "[ACTIVE]" is not necessarily a match. So, what do you want to ID the window with? Your "in the active window" doesn't make sense, since you just said the window might not be active.
If launching the script causes loss of focus, then you could have the script already running in the background to handle the window. It could be enabled/disabled as required, but wouldn't have to start up when needed. Otherwise, you need to identify the window somehow.
if i have it running in the background, then the code i have above when in a loop would work(given a set of activation conditions), right?
If you want the active window, just use a blank string for title and text.
problem, when voxx(the speech recognition program) detects a command, it pops up a tooltip like window above the mouse pointer which becomes the active window as the script executes hence i cannot use the active window, i have to use the last active window before the switch
inserting a delay(so that the tooltip disappears and the desired window becomes active again) is unacceptable because then the timer defeats the purpose of the speed of recognition. i can click the ok button faster than the time it takes for the window needed becomes active again
problem, when voxx(the speech recognition program) detects a command, it pops up a tooltip like window above the mouse pointer which becomes the active window as the script executes hence i cannot use the active window, i have to use the last active window before the switch
inserting a delay(so that the tooltip disappears and the desired window becomes active again) is unacceptable because then the timer defeats the purpose of the speed of recognition. i can click the ok button faster than the time it takes for the window needed becomes active again
The recognition can be quite fast, and the delay to prevent hogging the CPU doesn't have to be very long, i.e. Sleep(20). You seem confused about identifying the pop up though. It was your idea to match "[ACTIVE]". If you know more specific information about the pop up, like CLASS and TITLE, use them! Have you used AU3Info tool to gather information on these pop ups?
The recognition can be quite fast, and the delay to prevent hogging the CPU doesn't have to be very long, i.e. Sleep(20). You seem confused about identifying the pop up though. It was your idea to match "[ACTIVE]". If you know more specific information about the pop up, like CLASS and TITLE, use them! Have you used AU3Info tool to gather information on these pop ups?
ahh, i'm not trying to identify the popup, i'm trying to identify the window *under* the popup
by speed of recognition, i mean the delay between actual recognition and execution of command. as it is, execution is immediate and it is worth having speech recognition.
a home-grown solution seems the best bet right now because then i could develop a flexible plugin structure
thanks for the help though but the problem seems moot when considering a home-grown solution because then there won't be that annoying popup
Link to comment
Share on other sites
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Recommended Posts
r0ssar00
Link to comment
Share on other sites
PsaltyDS
Yes, I think it would. Put it in a loop, and maybe add a method to enable/disable it, if required.
Link to comment
Share on other sites
r0ssar00
thanks for the help
Link to comment
Share on other sites
Richard Robertson
If you want the active window, just use a blank string for title and text.
Link to comment
Share on other sites
r0ssar00
inserting a delay(so that the tooltip disappears and the desired window becomes active again) is unacceptable because then the timer defeats the purpose of the speed of recognition. i can click the ok button faster than the time it takes for the window needed becomes active again
Edited by r0ssar00Link to comment
Share on other sites
Richard Robertson
Why not just write your own speech recognizer? It's available in COM form.
Link to comment
Share on other sites
PsaltyDS
Link to comment
Share on other sites
r0ssar00
by speed of recognition, i mean the delay between actual recognition and execution of command. as it is, execution is immediate and it is worth having speech recognition.
a home-grown solution seems the best bet right now because then i could develop a flexible plugin structure
thanks for the help though but the problem seems moot when considering a home-grown solution because then there won't be that annoying popup
Link to comment
Share on other sites