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

Asked by Harpreet

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:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
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.