OpenScript : How to simulate ctrl key down?

Hi,
How do I simulate ctrl key down action in OpenScript?
Couldnt get much info from oracle.oats.scripting.modules.functionalTest.api.FunctionalTestService.typeKeys() documentation about the keys value to be used.
Or is there any better way?
Thanks,
Deepak

I wanted to select multiple elements so I wrote the code like below,
Robot robot = new Robot();
robot.delay(1000);
robot.keyPress(KeyEvent.VK_C);
web.element(xpath).click();
web.element(xpath1).click();
web.element(xpath2).click();
robot.keyRelease(KeyEvent.VK_C);
Didnt work, so I tried keypress before each element click, but still that also didnt help.
Same case with
web.element("/web:window[@index='0']/web:document[@index='0']")
.keyPress("<CTRL-SHIFT-F5>")
My requirement is, I need to click multiple elements with Control key down.
Please suggest me a solution.
Thanks,

Similar Messages

  • How to setting Ctrl Key: PM02 not become auto generate PR ?

    Hi Gurus,
    While using Ctrl Key: PM02 (For External) for creating Maintenance Order, Purchase Requisition (PR) will generated automatically.
    Can we make it not automatically, so then person responsible to create PR will create PR base on Maintenance Order. This requirement base on our client environment while person who create Maintenance Order is from different department and Maintenance Order person must not create PR.
    I am waiting for your knowledge sharing in this issue.
    Regards,

    Hi,
    Generation of PR can not be controlled through control key , however generation of PR can be controlled for a order type through
    Maintenance and service order->Functions and settings for order type->define change docs.collective PR indicator
    Hope that it helps.
    With regards,
    Mrinal

  • How to simulate tape slowing down?

    Hi,
    How would I simulate a tape deck slowing down in Logic? i.e., you hit stop and the song gradually comes to a halt.
    Any advice/help would be appreciated!
    thanks,
    Joe

    Here is how I would do it... a bit convoluted but it works..
    1. bounce the end bars of the mixed song to a WAV file
    2. create a new EXS or Knotakt patch with the resuting sample mapped to a key - and map
    pitch bend to pitch as agressively as you like
    3. trigger the sample at exactly the right point
    4. mute the end your track bar the new sample instrument
    5. waggle the pitch bend down as to play the end of your track..
    bingo...
    As I said a little complex... but great fun !
    Ian

  • ActionsScript 3 how to create on key down function?

    Ok so I understand that you make an event listener and an
    event handler, but I do not understand how to create a function
    were I can hold down a key and the object keeps moving until the
    key is up.
    With the following function it only moves it every time I
    press a certain key. I need to move while the key is held down
    until released. I looked around with google and couldn't really
    find anything other than how to do this in AS2, which isn't
    helpful. Please help! :D
    stage.addEventListener(KeyboardEvent.KEY_DOWN, jumpEvent);
    private function jumpEvent(event:KeyboardEvent):void
    if(event.keyCode == 17)
    nissanZ.x += 10;

    hey thanks a bunch vario pegged!
    its working pretty well :D

  • How to catch a key down event in TextEdit UI element ?

    Is it possible for me to catch 'Enter' and 'Esc' key when I input something ?
    Best regads ,

    hi, Shishir ,
    I see the on key event in input field , yes , the TextEdit does not has any event . But how can I meet such requirement ?
    When the user click enter on TextEdit , I should do something , When the user click escape , I should do something ?
    Best regards ,

  • Compare PDF: How to simulate ENTER Key programmatically to suppress the dialog box.

    Hi,
    We are using Acrobat 8.0. Using Visual Basic, we are opening two PDF files in Acrobat 8.0 professional.We are comparing those two documents using MenuitemExecute(DIGSIG:CompareDocuments ) command and generating the side by side comparison file programatically.
    During this process after executing the command "MenuitemExecute(DIGSIG:CompareDocuments )" adobe is displaying "Compare Documents" dialog box where the user need to click OK on it in order to continue with the comparison.
    My requirement is to suppress the dialog box and automate the process. Our application is developed in Visual basic.
    Could you please let me know how to suppress the dialog box using Visual basic. Is it possible using VB or any alternatives for this. Because we need to compare many PDF documents so clicking OK every time requires user intervention.
    Thanks for your help in advance.

    I did not say that AVCommand simulates pressing enter - it is used to automated methods by pre-filling options and not showing the dialogs. Please read the documentation on the AVCommand methods.
    You should also note that I said AVCommand is only available to plug-ins, which means it will not work with a VB.NET application.
    SendKeys is a basic VB.NET command, it is not part of the Acrobat SDK in any way. Here is Microsoft's documentation on SendKeys. Again I will state that using this method is NOT a good idea for a production environment.
    http://msdn.microsoft.com/en-us/library/8c6yea83(VS.85).aspx

  • How to override Ctrl-Click behavior in Java L&F

    On the Mac, Ctrl-Click is the popup trigger. While Java L&F designers were obviously aware of this (it is warned about in the Java Look and Feel Design Guidelines, 2nd ed, page 106). However, just two pages later (page 108), they then generically specifify that Ctrl-Click is used in lists and tables to toggle the selection.
    The implementation of the Java L&F does not appear to consider the Mac's use of Ctrl-Click and still toggles selection. If there is an additional mouse listener that shows a menu in response to the popup trigger, it will ALSO open the menu on Ctrl-Click.
    What is the best way to overide the Ctrl-Click behavior in JTable etc. to NOT do the toggle selection? Note that this is a mouse event and not a key event, so it can't be turned off or changed by the getActionMap() mechanism.
    Also, does anyone know what the "Command" modifier on the Mac (Command-Click is supposed to toggle selection on Macs) shows up as in the InputEvent (isMetaDown(), isAltGraphDown()...)?

    Try extending the JList and override the processMouseEvent(MouseEvent evt) method and show your popup menu when the user clicks the mouse while holding the CTRL key down. The code below demonstrates the same.
    import java.awt.BorderLayout;
    import java.awt.event.MouseEvent;
    import java.util.Vector;
    import javax.swing.JFrame;
    import javax.swing.JList;
    import javax.swing.JOptionPane;
    import javax.swing.JScrollPane;
    import javax.swing.ListModel;
    import javax.swing.WindowConstants;
    public class Temp extends JFrame {
         public Temp() {
              super("Temp");
              setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
              String [] items = {"One", "Two", "Three", "Four", "Five"};
              JList list = new MyList(items);
              JScrollPane scroller = new JScrollPane(list);
              getContentPane().add(scroller, BorderLayout.CENTER);
              pack();
              setVisible(true);
         class MyList extends JList {
              public MyList() {
                   super();
              public MyList(Object[] listData) {
                   super(listData);
              public MyList(Vector listData) {
                   super(listData);
              public MyList(ListModel dataModel) {
                   super(dataModel);
              protected void processMouseEvent(MouseEvent evt) {
                   System.out.println(evt.isPopupTrigger());
                   int onmask = MouseEvent.CTRL_DOWN_MASK | MouseEvent.BUTTON1_DOWN_MASK;
                   if(evt.getModifiersEx() == onmask) {
                        JOptionPane.showMessageDialog(this, "Control + click");
                   else {
                        super.processMouseEvent(evt);
         public static void main(String[] args) {
              new Temp();
    }Hope this helps
    Sai Pullabhotla

  • InsertionPalette activex control key down event

    Hi,
    Can any one know how to get the key down event of InsertionPalette activex control.
    I have handled the KeyDownEvent but it is not fired while the control is active and key is pressed.
    regards,
    Ceaser

    Ceaser,
    what is the application developement environment you are working with?
    Norbert 
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • How do I check if the ctrl key is pressed from within a mouseReleased actio

    How do I check if the ctrl key is pressed from within a mouseReleased action?
          addMouseListener( new MouseAdapter() {
             public void mouseReleased( final MouseEvent e ) {
               // If ctrl button is held down and mouse is clicked, do something
             }};

    Found it, I think
        e.isControlDown()

  • How do I clear the control alt delete key downs when using input acquire.vi?

    I am trying to monitor keystroks...  When I use the Input Acquire.vi after I log in to my system it says the Control LAlt and the Delete key are down and my code does not like that because the keyboard value is not corect...the Keypressed array always has 3 keys down....
    Is there a way to clear them or send key ups some how to get rid of them.
    Thanks for any help you can provide...
    I am using Labview 8.0
    Thanks
    Eric Horwitz

    There is no way that you can press multiple buttons at exactly the same time. Which keys are you trying to press? Are you talking about "PlatMods" (shift, ctrl, etc.)?
    Keep a shift registers with the states of the desired buttons in a boolean array and change the respective elements to true or false, depending on key-up and key-down events. On the Key down events, check if all elements are true and act accordingly.
    LabVIEW Champion . Do more with less code and in less time .

  • How to populate both key and text in drop down list in dialog prog screen

    Hi, Can anyone please advice how to display both key and text in the drop down list in dialog prog screen. I tried with below code. keys and texts are getting populated in values table but only text is appearing when click on drop down. need to display both key and text in the drop down. Thanks in advance.
    TABLES: ZRPP_MODELS, ZRPP_FFLSTRATEGY.
    TYPE-POOLS : VRM.
    DATA : field_id TYPE VRM_ID ,
           values   TYPE VRM_VALUES,
           value    LIKE LINE OF values.
    FORM fill_model_list .
      select MODEL MODEL_DESC from ZRPP_MODELS into value.
        APPEND value TO VALUES.
      endselect.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id     = 'ZRPP_MODELS-MODEL'
          values = values.
    ENDFORM.

    You need to concatenate KEY & VALUES
      wa_values-key = '1'.
      wa_values-text = '1 - One'.
      append wa_values to i_values.
      wa_values-key = '2'.
      wa_values-text = '2 - Two'.
      append wa_values to i_values.
      wa_values-key = '3'.
      wa_values-text = '3 - Three'.
      append wa_values to i_values.
      call function 'VRM_SET_VALUES'
        exporting
          id              = 'LIST_BOX'
          values          = i_values
        exceptions
          id_illegal_name = 1
          others          = 2.

  • How to use Control Key with other key as Ctrl+C

    I am using this code to access Shift key + C
    addKeyListener(new KeyAdapter()
    public void keyPressed(KeyEvent KEv)
    if(KEv.isShiftDown() && (KEv.getKeyCode() == KEv.VK_C))
    //Shift + C key down
    Please tell me how to do with Control Key?
    Vishwajeet

    addKeyListener(new KeyAdapter()
    public void keyPressed(KeyEvent KEv)
    if(KEv.isControlDown && (KEv.getKeyCode() == KEv.VK_C))
    //Cntrl + C key down
    //if u want to create a key stroke for keys with contrl combination use CTRL_MASK.

  • How can I swap the Fn and Ctrl keys on ideacentre b550 touch?

    How can I swap the Fn and Ctrl keys on ideacentre b550 touch?

    The BIOS feature that you request already exists.
    1.  reboot the computer
    2.  press F1 to enter BIOS setup
    3.  config -> keyboard/mouse -> Fn and Ctrl Key swap

  • HOW to simulate the enter key???

    Hi , I have a jTable ,and i want that by leaving a specific
    cell ,to perform the same action that the enter key does!
    when im leaving my specific cell the following function is being called:
    public void editingStopped(ChangeEvent e) {
    //here I want to simulate the enter-key's action
    HOW to simulate the enter key???
    10x in advance
    Nir.
    p.s. My initial problem was that when i left my specific
    cell (the cell is editable combo box), an edited words
    which were written by me vanished , and when i get back to that cell the edited word showed again!!!
    when i pressed the enter key the edited word were stable in the cell!!!
    when I chose a word from the combo evrything was ok!!
    so if any one can solve me that problem ill be appreciate.
    thanks Nir

    yourActionListener.actionPerformed(new ActionEvent(yourCell))
    I am not sure about the constructor of actionevent.
    you could try if setText(getText()) produces a good result

  • How to use Ctrl + -- or Ctrl + -- key to act as Tab or Tab + Shift

    In JDK 1.4, I try to use Ctrl + --> key to act as Tab key, and use Ctrl
    + <-- key to act as Tab + Shift key, I would like to find a solution
    for whole application instead of adding key listener for each individual
    component, how to implement it easily? Any suggustions? Thanks!

    Not sure if this will help, but you can listen for all AWT Events by adding a AWT Listener to you class. Here is an example that listens for MouseEvents:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class TestEventQueue extends JFrame
         public TestEventQueue()
              Toolkit.getDefaultToolkit().addAWTEventListener( new AWTEventListener()
                   public void eventDispatched(AWTEvent e)
                        System.out.println(e);
              }, AWTEvent.MOUSE_MOTION_EVENT_MASK + AWTEvent.MOUSE_EVENT_MASK  );
         public static void main(String[] args)
              JFrame frame = new TestEventQueue();
              frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
              frame.setSize(200, 200);
              frame.setVisible(true);
    }

Maybe you are looking for