Jump to content
HeinrichA

Cannot ControlSend to [CLASS:QWidget]

Recommended Posts

HeinrichA

I have a QWidget-Tool, which most probably doesn't inherit the QAsscessiblity interface.

It has a main menu, and I thought, nevertheless it should be able to Send/ControlSend etc some keystrokes.

ControlSend($hWnd,"" ,"[CLASS:QWidget]", "!I {ENTER}")
    WinMenuSelectItem($hWnd,"","&IE", "&Open")
    Send("!I {ENTER}")

None of the above work. Do you have any idea, if it could be made working ?

Share this post


Link to post
Share on other sites
Starstar

HeinrichA

You are sending Capital "i" .But mostly Alt commands are used small alphabet.

One more thing i am not sure but you must try key combination like this... "!i+{ENTER}"

Edited by Starstar

Life is like a coin. You can spend it Anyway as you wish and for your kind information. "you can spend it only once."

Share this post


Link to post
Share on other sites
JLogan3o13

Starstar, are you trying your suggestions before posting them? Why are you suggesting the OP send SHIFT/Enter (+), rather than just Enter, as a resolution to his issue?


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
HeinrichA

You are sending Capital "i" .But mostly Alt commands are used small alphabet.

One more thing i am not sure but you must try key combination like this... "!i+{ENTER}"

Thanks for answering. I was able yesterday, to figure out the same thing. But in the help this issue wasn't emphasized enough for me ... (see quote below). Strangely enough, only Send("!i {ENTER}") worked for me, all other commands didn't give a result.

N.B. Some programs are very choosy about capital letters and ALT keys, i.e., "!A" is different from "!a". The first says ALT+SHIFT+A, the second is ALT+a. If in doubt, use lowercase!

Share this post


Link to post
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!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×