How to block the keyboard

We are developing an application that should block the keyboard for all applications running under windows. (A time limited web browser)
I know more or less how to do it on my Java Window but I need to block all the machine.
Thanks in advance.

You'll have to get into Windows system programming for that. Java is not a suitable language for that kind of project, but you can interface to suitable languages from Java using JNI.

Similar Messages

  • How can I block the keyboard using the glass pane ?

    I have a problem with the GlassPaneDemo from the Java Tutorial in
    the
    uiswing/components/example-swing
    folder.
    When the glass pane is visible it blocks the mouse input but the
    keyboard input doesn't. For example if the glass pane is visible and
    you press the F10 key, the menu will be activated. So the keyboard is
    not at all blocked.
    Can this problem be fixed ? I mean, to really block the keyboard
    when the glass pane is visible.
    Here I wrote down the specification written in the
    Java Documentation at the setGlassPane method from the
    RootPaneContainer interface:
    The glassPane is always the first child of the rootPane and the
    rootPanes layout manager ensures that it's always as big as the
    rootPane. By default it's transparent and not visible. It can be
    used to temporarily grab all keyboard and mouse input by adding
    listeners and the making it visible. by default it's not visible.
    As it may be seen, one says that the keyboard input can be blocked.
    HOW ?
    In hope that I resolve the problem, I have made some changes such as,
    adding a key listener to the glass pane add listening to the keyboard events,
    but I failed to fix the problem.
    Faithfully yours,
    Sarmis

    Here is an example that I think will work for you.
    Note the consume() call on the event object. I think that is what you're after.
    import java.awt.event.*;
    import java.awt.*;
    import java.io.*;
    import javax.swing.*;
    public class Comparer extends JFrame implements ActionListener
        private GlassComponent myGlassPane;
        private JTextField myField;
        public Comparer()
            getContentPane().setLayout(new FlowLayout());
            getContentPane().add(myField = new JTextField(20));
            setGlassPane(myGlassPane = new GlassComponent());
            JButton theButton = new JButton("Glass");
            theButton.addActionListener(this);
            getContentPane().add(theButton);
            pack();
        public void actionPerformed(ActionEvent anEvent)
            myGlassPane.setVisible(true);       
        public static void main(String[] args)
            new Comparer().setVisible(true);       
    class GlassComponent extends JComponent implements AWTEventListener
        Window myParentWindow;
        public GlassComponent()
            super();
            this.setCursor( Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR) );
            setOpaque(false);
            addMouseListener( new MouseAdapter() {} );
        public void setVisible(boolean aVisibleBoolean)
            if(aVisibleBoolean)
                if(this.myParentWindow == null)
                    this.myParentWindow = SwingUtilities.windowForComponent(this);
                Toolkit.getDefaultToolkit().addAWTEventListener(this, AWTEvent.KEY_EVENT_MASK);
            else
                Toolkit.getDefaultToolkit().removeAWTEventListener(this);
            super.setVisible(aVisibleBoolean);
        public void eventDispatched(AWTEvent anEvent)
            if(anEvent instanceof KeyEvent && anEvent.getSource() instanceof Component)
                if(SwingUtilities.windowForComponent( (Component)anEvent.getSource()) == this.myParentWindow )
                    ((KeyEvent)anEvent).consume();
    } HTH,
    Fredrik

  • 怎么取消或者屏蔽firefox的快捷键?How to cancel the keyboard shortcuts?

    怎么取消或者屏蔽firefox的快捷键?我在使用其他软件时的很多快捷键都被firefox浏览器给占用了,麻烦得很,所以想取消那些快捷键。
    在firefox上安装了一个shortcut的插件,也只能编辑快捷键而不能完全删除!!!!
    怎么办!!!!!烦死了!!!!
    严重抗议向firefox提出抗议:功能应该让我们自己来选择,而不是定死!!!!
    How to cancel the keyboard shortcuts?
    donnot tell me edit it!
    i want to STOP it,,,,not change!!!!!!

    Hello,
    I will try my best to guess the issue you are reporting. I don't speak Mandarin and I used Google Translate to guess what the issue is. So, if I got that wrong, I do apologize.
    You are looking to disable the Firefox shortcuts - all of them. And you want to do this because you think these shortcuts are blocking a Firefox plugin you are using. Is that correct?
    您想禁用Firefox的快捷方式 - 所有这些。并且要做到这一点,因为你觉得这些快捷方式阻止你使用的是Firefox插件。这是否正确?
    谢谢

  • How to block the creation of a Sales Orders without a linked Purchase Order

    Hi. I'm trying to block the creation of a Sales Order that doesn't have a linked Purchase Order. The first thing I did is using the SBO Transaction Notification as follows:
    IF  @transaction_type = 'A' AND @object_type='17'
    BEGIN
         IF (SELECT PoPrss FROM ORDR WHERE DocEntry = @list_of_cols_val_tab_del) = 'N'
         BEGIN
              SET @error = 1
              SET @error_message = 'Purchase Order Missing...'
         END
    END
    This works good. I create the Sales Order, I tick the purchase order field on the logistics tab, I click Add, and then the purchase order window appears...
    Then, the problem begins... If I click the Cancel button, the purchase order is obviously not created, but the Sales Order is created.
    Can someone tell me how to block the creation of the sales order If the user press the cancel button on the purchase order window (and the purchase order is not created)
    As far as I can see, after clicking the add button in the sales order document, the Sales Order is created on the DB. If there's no way of blocking the creation of the Sales Order, can I avoid closing the purchase order window by the SBO_TransactionNotification? (if the purchase order has not been created)
    Thanks...

    Hi Yail,
    I think you can't close the purchase order with the stored procedure.
    Try to catch the Event when the user click on Cancel button.
    So you can list the vents with event logger : https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ede3be37-0e01-0010-1883-cd1b5293473e
    You can block the cancel button and force the user to create the purchase order.
    Hope i help you
    Best regards
    Michael

  • How to block the Creation of Mulitple Excise Invoice in J1IS

    Hi Sap Gurs,
    Can any tell me how to block the System allowing  to Create One more Excise Invoice in J1IS against Same GI Material Document no (Ref Trans Type:MATD) for Outgoing Materials ie:Stock Transfer from One Plant to onother Plant by Mvt Type 351(Single Step Procedure)
    In SD, System is not allowing to Create One more Excise Invoive against One Billing Document Untill we Cancell the same.
    I want to make it like same for the above Issue.
    Pls check it in your system and give a Feed Back.
    Thanks in advance.
    Bye
    Sathish

    Hi Yail,
    I think you can't close the purchase order with the stored procedure.
    Try to catch the Event when the user click on Cancel button.
    So you can list the vents with event logger : https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ede3be37-0e01-0010-1883-cd1b5293473e
    You can block the cancel button and force the user to create the purchase order.
    Hope i help you
    Best regards
    Michael

  • How to block the cost center

    Dear Guru's
    Can any tell me how to block the cost center, can we detele which is having values. can we delete which is not having values
    Regards
    Chandra Sekhar Reddy.P

    Hi,
    Once you post actual values or any planning exists on this cost center you cant delete.
    To ristrict posting to cost you have two options.
    1.You can change validity period.
      change  end from 12/31/9999 to what ever date you want to stop posting(e.g. as of today 10/23/08)
    2. lock all postings to cost center on Control data tab in KS02.
    Thanks,
    Rau

  • How to block the GR against a PO

    Hi All,
    how to block the GR against a perticular PO item or full PO.
    I use "Delivery Complete" option in "Delivery" tab, but still it allow me to make the GR against the PO.
    I am waiting for the quick reply.
    Thanks & Regards
    Pankaj Garg

    delivery complete indicator willnot help u fully.what u can do is after selecting the delivery complete indicator change the quantity of the PO to what u have already received i.e. if ur po has 10 pcs and u have already received 4 pcs and dont want to receive any further quantity then change the PO quantity to 4 pcs.
    Again if u havent received any quantity against the PO then u can select the line items and select the block (key like) indicator or delete (dustbin like) indicator.
    regards,
    indranil

  • How to Block the material

    Hi friends,
    How to block the material ,
    what are the implecations if we block a material?
    Regards
    Krishna

    Hi,
    The best way is to keep the materail status with deleted or blocked for puchase / sales and need to maintain in the materail master.
    You cannot delete the material from material master until archiving but you can block that material for any procurement
    Goto Basic data 1
    X-plant matl status -
    01 Blocked for procment/whse
                                           02 Blocked for task list/BOM
                                           10 Blocked for MRP
    Select any one.
    Valid from  -
    Here you enter valid date from which the material should be blocked.
    So from this your material will be blocked for any PR/PO/any transactions related to Procurement
    BR,
    Krishna

  • How to see the keyboard shortcuts in pages like " alt " function in word?

    how to see the keyboard shortcuts in pages like " alt " function in word?

    luisandre wrote:
    In word , if you press "alt" show you all the options you have . Appear numbers or letters  in each options of the toolbar. So is more easy to work with the keyboard. How do you do this in pages?
    Go to system preferences/language & text/input sources and check the box for Keyboard Viewer.  Then select Keyboard Viewer from the "flag" menu at the top right of the screen.  It will show all the special characters you can make when you press the alt and alt + shift keys.

  • How to Block the GRN,

    Dear Experts
                       How to block the GRN, to avoid the excess inventory for the particular  material.

    Hi Raja
    I assume that you are referring to stopping GRN of goods with resepect to the PO qty
    In that case If you want to stop the GR of more goods than the quantity ordered, you can use delivery
    tolerance settings in either material master data or purchase info record data.
    Regards
    Vikrant

  • HT3702 How to block the iTunes purchases

    How to block the iTunes purchases

    You will need to contact iTunes Support to ask them why it's appearing, and whether you can do anything to stop it happening again (we are fellow users on here, we won't know why it's appearing) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • Help! How to hide the keyboard in app...

    I was bidding on an item in the free ebay App (provided by Ebay v 1.6.1 and the keyboard would not hide and I could not place a second bid. I had made one successful bid and then on a second bid (about 2 minutes later) the keyboard would not go away and I could not submit the bid - only enter a dollar value. It was beyond frustrating watching the time tick down and not being able to place a bid.
    Please someone tell me how to hide the keyboard. I tried everything I knew how - tapping the screen, shaking the iphone, exiting out and coming back in and refreshing the app. Nothing would get the keyboard to go away and allow me to touch the submit bid button.
    Thanks in advance and SORRY in advance if this is in the wrong forum!

    Well the ability of how the keyboard shows and hides is a function of what the developer of the app made. Sounds like a bug in their program or just bad usability.
    This is a topic to discuss with eBay as they developed the app. Their code has to control how things happen. Normally leaving a field to type in will make it go away, but if they didn't provide a way to leave focus, then that is a usability issue on their part.

  • HT2101 I can't find the keyboard by using iMessage, but I can by using email or whatsapp? How I reset the keyboard on iMessage?

    I can't find the keyboard by using iMessage, but I can by using email or whatsapp? How I reset the keyboard on iMessage?

    Did you tap in the box at the bottom of iMessage?
    If you did and no keyboard is showing: Do a reset
    Reset: Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Note: You will not lose any data
    If that didn't helped, double tap Home button, delete the Message app and reset again.

  • How to block the BP

    Hi all,
    how to block the particuler bp?
    thanks.

    Hello,
    Use T-Code 'BP'. Under status tabstrip, you select the check box 'Central Block'. This shall block few activities for the BP.
    However I'd suggest to block all the contract accounts falling under a BP. This can be done using CAA2. Under General data tabstrip, update the 'Posting lock'. This shall block all the activities for a contract account.
    Hope this helps
    Rgds
    Rajendra
    Points!

  • How to open the Keyboard

    I want to add more ram but dont know how to open the keyboard.

    Is your PB Aluminum? I ask because you posted your question in the Aluminum PB forums. If so, you don't install RAM from under the keyboard. You turn the computer over and unscrew the center mounted plate.
    If it's Titanium, instructions are here: http://docs.info.apple.com/article.html?artnum=26245

Maybe you are looking for

  • Page gap in DW CS6 tutorial. Please help!

    I am getting this gap in my page and it started just after I added this <nav> bar. I have done this lesson several times starting from scratch and it still gives me this gap. I am not sure if the book is missing something or it's me. The book shows n

  • Empty lines being transfered with RSCRM_BAPI

    Hi guys, I have to transfer the result f one query to a table. For this requirement Iu2019m using transaction RSCRM_BAPI transaction. The problem is that my query is gigantic and it has a structure in rows with 150 selections visible and 250 that are

  • How to Read a CSV file using pure PL/SQL

    Hi friends - Is there a possibility to read a .TXT/CSV file from a local machine and display the contents on the form fields each record at one time. The logic to flow through the records can be build, but the problem is where to begin from to start

  • Sales order interface issue

    Hi All, I am trying to create a new sales order in OM tables thru interface tables in vision instance. After doing some research in google i created a staging table , populated rows into it, prepared pl sql code for data validations, then moved the d

  • I just got a new Windows 8 computer, downloaded it/Tunes but it will not sync with my iPhone

    Have authorized computer, when I try to sync, it says syncing for 5 seconds but nothing downloads from phone?? What is going on ?