how to click a button along with ctrl and shift keys in autoit and java

Asked by Harpreet on 2020-03-03

hi ,
I want to click a button with unique id as :"[CLASS:TButton; INSTANCE:1]". But it should be clicked using control and shift keys. Am trying to do it as below:
// autoitObj.controlFocus("Modify Order", "", "[CLASS:TButton; INSTANCE:1]");
// autoitObj.autoItSetOption(autoitObj.OPT_SEND_KEY_DOWN_DELAY, "50");
// autoitObj.send("{SHIFTDOWN}{CTRLDOWN}",false);
  autoitObj.send("{+}{^}",false);
  autoitObj.controlClick("Modify Order", "", "[CLASS:TButton; INSTANCE:1]");
  autoitObj.send("{SHIFTUP}{CTRLUP}",false);
// autoitObj.controlClick("Modify Order", "", "[CLASS:TButton; INSTANCE:1]");

I tried with controlSend option too. Also It cliks the button but without control and shift keys.

Can someone help, as i need this urgently. Am using autoit, java, and sikuli.

Regards,
Harpreet

Question information

Language:
English Edit question
Status:
Answered
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2020-03-03
Last reply:
2020-03-03
Manfred Hampl (m-hampl) said : #1

Not a Sikuli problem.

You probably better ask at https://www.autoitscript.com/forum/

Can you help with this problem?

Provide an answer of your own, or ask Harpreet for more information if necessary.

To post a message you must log in.