Capturing Incoming Keystrokes

Hello,
I want to capture incoming keystrokes and prevent them from being passed to the current application. I need to identify the keystroke (i.e. an "a", a "b", etc.) and pass that information to an AppleScript Studio application that runs in the background. To pass the information to the AppleScript Studio application, I can use the command osascript to run an AppleScript that interacts with my Studio application. I just don't know how to catch the keystroke before it goes to the current application.
I am comfortable programming in AppleScript, and I am currently learning Python. I would very much appreciate any advice, or even a point in the right direction.
Thanks,
Carl

Hi Ajay,
Michael's response is spot on [1]; and you might take a look at this
example of how to create a handler [2].
Hope this helps,
Bruce
[1]
http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=article&group=weblogic.developer.interest.webservices&item=5141
[2]
http://webservice.bea.com/log.zip
Ajay wrote:
>
Hi All,
I have managed to publish one of my session beans as a Webservice. Im using ant
to build the application and the same is bundled as an EAR and deployed. I need
to capute the incoming XML request in my session bean and dump it in my file system.
Can any one please tell me how i can achieve this?.
thanx
-Ajay

Similar Messages

  • Monitor & capture incoming request.

    Could you anyone guide me how to capture no. of incoming request in weblogic?
    I am performaning a load test on a web service and it seem that some request is queued and wait for process.
    how could monitor this?
    in addition, is it possible log/capture the request serialization between its enter into web service?
    For example,
    1. i have a uploadFile(byte[] file) web service.
    2. binary file from client will then translate from binary into base64string.
    3. the base64string will then be translated into the byte[] in server side. <---how could capture this time?

    you can get the server's incoming request by running following WLST,
    Run the ". ./setWLSEnv.sh" or set the classpath manually....
    java weblogic.Admin -url t3://localhost:7001 -username weblogic -password weblogic1 GET -pretty -type ServerRuntime
    note: change the hostname, username and password based on your configuration.
    you will get different run time metrics, an your needy metric will be available in
    OpenSocketsCurrentCount: 1
    SocketsOpenedTotalCount: 1:
    Other than that, you can get this same metrics with help JMX (Java management Extenstion).
    http://download.oracle.com/docs/cd/E12839_01/apirefs.1111/e13951/core/index.html
    select runtime mbean , choose ServerRuntimeMBean , but you need to write JMX code to connect with weblogic server.
    Edited by: Jose on Aug 10, 2010 7:38 PM

  • Capture incoming phone # to contacts? Voice commands? Speed dial?

    How do I capture an incoming phone call to my contacts? Is there any way to dial by voice commands? On my old phone I could press and hold a number to speed dial, is Favorites the only way to do this on the iPhone? Any help would be appreciated

    once you have a call in your call log (recents) press the blue arrow to the right of the number and you will see two buttons 1. create new contact 2. add to existing contact
    no voice dialing
    favorites is the only way to speedial, i think its faster than the traditional method just double click the home button and you are taken directly to favorites then just one touch and 'viola' phone call
    good luck

  • How to capture incoming supplimentary invoice  (Purchase)

    Dear All,
    The issue is as follows.
    Vendor has sent us the invoice with price Ex.Rs100 and the excise on this also charged in the invoice. Actually the price charged by vendor is wrong. It should have been RS.150/-.
    Now the vendor has sent us the supplementary invoice for Price Rs50 and on this excise duty also he has charged.
    Please give me the inputs how I have to capture this in SAP.
    Whether registers should be updated with this excise amount or not.If yes how we can do that.
    Thanks and regards,
    deepti

    Dear Keerthi,
    Thanks for the inputs.But this will make the postings to the vendor and cenvat clearing and vat account.But how this will update the registers.
    Please guide.
    deepti

  • ABAP Webdynpro: Capturing keystroke event

    Hello,
    There is a potential requirement to capture a keystroke event from a SAP standard webdynpro text box and provide a character count in a custom UI display text box on number of characters remaining.
    From initial research - it looks like this may be possible with Unified Rendering Light Speed in WebDynpro ABAP?
    http://help.sap.com/SAPhelp_nw73/helpdata/en/74/0beccf62a7425ab9e1b2077fa1bc6e/frameset.htm
    If it is possible, how exactly would it be implemented.  (Which event / action would be used?) 
    It appears this can be activated and used on existing SAP standard webdynpros? 
    Thank You,
    Mike

    try something like this...
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String s;
    s = br.readLine();
    if(s.equals("R")){
    if(s.equals("R")){
    you also can use s.equalsIgnoreCase("R") if u dont care if its capital or not

  • Capturing keystroke event in console-mode

    Hi fellow Java Programmer
    I was stumbled upon what to be a simple question
    Is it possible to capture the keystroke event inside console-based application
    This is my scenario:
    I have a thread that is keep running for a predetermined amount of time,
    It is doing a background-sort-of-task. According to the requirement, it must be able to detect
    when the user press 'R' (which will trigger Reload) or when user press 'Q' (denoting Quit)
    I would appreciate if somebody come up with hint / snippet of source code
    regards,
    Honggo

    try something like this...
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String s;
    s = br.readLine();
    if(s.equals("R")){
    if(s.equals("R")){
    you also can use s.equalsIgnoreCase("R") if u dont care if its capital or not

  • Capture keystroke from the SAP Business One Desktop

    Does anyone know how I can capture a keystroke from the SAP Business One “Desktop” with the UI API?
    Basically, open the B1 Client, then click the mouse in the back ground beside the main menu so that the cursor is “nowhere” (not in the search field). Now set some code In the KeyDown event to catch any keystrokes. Nothing happens. The event is not called. I even tried using SetWindowsHookEx API function but never got it to work with an SDK project since there is no form hHandle. Woudlnd even work once I gave the hhandle of the B1 Client

    Hi Marc,
    what is your exact requirement ?
    I don't think you can specificly catch a key down in the background - but only because it is not possible to "lose" main menu as active form ( only if you close it -> then search field is active ).
    So basically you have to find a logic where you can catch *your* keydown on any form.
    Be aware of the fact, that keydown won't let you catch all keys / key combinations.
    I had an equal requirement some time ago and after a lot of experimenting ( windows global hook wouldn't work reliable ) I ended up using SBO key shortcuts ( F2-F12 ) and their menu events.
    regards,
    Maik

  • How to get incoming excise invoice in J1IIN

    Daer All
    Greetings!!
    Scenario: The company receives raw material from vendor and then vendor send excise invoice to company.
    The same raw material then sell to other vendor but the incoming excise invoice is used to pass on duty . with threference to that incoming excise invoice duty  pass on to this vendor to whom raw material has been sold
    Question:  How the process will be captured in SAP from MM to SD
    1) now how i will create order > delivery >billing and how i will be able to get that incoming excise invoice in j1iin ?
    2) What About Pricing Procedure?
    I have searched the forum and i have also tried on the existing solution given in forum but still could not do it
    I am still putting my effort but in need of valuable input from forum

    hi
    sales side proces
    va01-vl01n-vf01-j1iin
    j1id settings for this material and chapter id material is raw material u can assign the raw material , other wise assign finished goods, and excise duties main in customer and vendor also , in sale order process  you can maintain the excise duties in sale order, based on invoice , capture the j1iin it is for only out going invoice ,
    vendor details maintain at migo only , ofter migo  you can capture incoming excise invoice , incoming excise invoice at j1ig only,
    in j1ig u capture the  it is for only depo
    Menu Path: User menu à Indirect taxes à Procurement à Excise invoice à Incoming Excise invoice à Individual Processing à Capture/Display (J1IEX)  
    a.     Select Post Excise Invoice and Vendor in windows above the Header.
    b.    Enter Goods Receipt Document number generated in STEP 2 and press ENTER or Click on Execute   button.  
    c.     Following screen will appear as shown below.  
    Menu Path: Logistics à Materials Management à Inventory management àGoods movement à goods receipt à for purchase orderà Purchase order no. Known (MIGO)
    .     Enter the PO number, Vendors Delivery Challan Number      
    b.    Press Enter u2013 at this point of time system will copy all the relevant information from PO and a Excise Invoice tab will appear in the Header screen as shown below, select capture Excise Invoice on this tab and check the Excise group.  
    c.     Enter the Received Quantity in the Quantity tab in field Quantity & Unit of entry.
    Follow above procedure for claiming modvat for raw material.  
    d.    Enter receiving Storage Location in Where tab. Here check the stock type in which material is going to receive. If some text needs to be added regarding the goods receipt enter it in Text field.
    Follow above procedure for claiming modvat for raw material.  
    e.     Check the Excise Details related to the received material in Excise Item tab in Detail Data screen as shown above.  
    Post the Captured Vendoru2019s Excise Invoice
    Go to CIN transaction  
    Menu Path: User menu à Indirect taxes à Procurement à Excise invoice à Incoming Excise invoice à Individual Processing à Capture/Display (j1iex)  
    a.     Select Post the Excise Invoice and Goods Receipt in windows above the Header.
    b.    Enter Vendor Excise no generated above.  
    If material had directly came from different vendor, Enter vendor code in Ship from field in miscellaneous tab.
    a.     If Excise Invoice is faulty and still want to take the credit for the excise invoice, enter the rejection code.  
    b.    Check the Material Chapter Heading, Material type in Item tab in Detail Data screen.  
    c.     Check the Quantity in Quantity tab  
    d.    Check the Duty rate in Duty rate tab.  
    e.     Check duty values and Tax amount for the material in Duty value tab.  
    f.     Check the Part I entries, which are created immediately after the GR in Part I tab.

  • How to re-capture excise duty which is issue aginst subcontract PO

    Hi,
      I have made a Subcontract PO with item category as L, with full payment of excise duty  in subcontract there are two BOM component,  then i have done  MB1B  ref. to MB1B document number excise invoice created with J1IS  for the raw materials which we have supplied,  as in case of subcontract with full payment of excise duty  there is no need to create subcontract challn now I have made the GR for finish product,   now how to capture the excise duty back when I ma trying to J1IEX capture excise  inovice ref. to GR  or PO  it is showing me only finish material in the J1IEX not the RM,  as the excise duty is on the RM only not on Finish product  in vendor PO tax is as labour chagres only.
    regards,
    zafar

    Hi
    I wan to put some basic things here
    1) when you send material to vendor with excise duty ,then vendor will take credit of that material ( your child material)
    2) After processing your child material vendor will send final material only not child material
    so how you will capture incoming excise for component which already consume by vendor?
    second thing if you received excise invoice from your vendor for final product then check that invoice you will get only Final material name and qty, there not child material with excise if am not wrong
    Regards
    kailas Ugale

  • Excise capture by j1iex

    Hi exparts:
    I am unable to capture incoming excise invoice through J1iex T-code.
    after pressing check button it is showing green indicator but msg. giving that you have not flagged any item as ok.
    but in that screen there is no place to tick the material as OK.
    pls. help.
    regards
    prakash

    sir,
    but that button is greyed out. how to ake it active.
    regds
    Prakash

  • Extended keyboard captures?

    Apologies if this has been asked already.
    I am creating simulations to train on an application that
    uses a non-standard keyboard - it has about ten more function keys.
    The user will need to press some of these keys to perform the
    transactions.
    Captivate is not capturing these keystrokes. I cannot figure
    out how to capture them manually (or use a click box to add a
    shortcut). Is this possible?
    Many thanks,

    Hi again
    Hmmm, that's an interesting thought. Aside from inserting a
    kabillion Click Box objects on the slide (one for each key allowed)
    there really isn't a way inside Captivate. Personally, I think it
    would make for a wonderful enhancement request.
    Click
    here to view the WishForm/Bug Reporting Form
    Aside from that, you might contract with fellow Adobe
    Community Expert Paul Dewhurst to create a small widget similar to
    what is found at the link below, but accepts any keypress as the
    trigger:
    Click
    here to visit Paul's site
    Paul's contact information is on his site.
    Cheers... Rick

  • Capture input from inputmap, but pass it on

    i want to capture a keystroke, but i also want to pass it on to another map... how do i do this? i'm a beginner at this so my understanding of keylistener and inputmap heirarchy is shady

    so my understanding of keylistener and inputmap heirarchy is shady Well, that part of the problem. I notice you've replied to a couple of posting suggetion usage of a KeyListener. In general this is not a good approach.
    The new approach is to use key bindings. Read the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/misc/keybinding.html]How to Use Key Bindings.
    I don't really understand you question so I can't give any specific advice.

  • Keystrokes

    Hi -- I am creating an assessment that requires the
    participant to tab through text entry fields. Is there a way to
    capture a keystroke in Captivate? I looked through help as well as
    searching this forum, with no luck so far. Any help is appreciated!
    Thank you!

    Hi again Kimberly_SF
    Well, you can certainly configure a shortcut key for each
    text entry field. And Tab is actually among the list of keys you
    can configure. But this serves as the "validation" key. So if you
    are looking to see if a field was skipped, I'm not exactly sure how
    you might approach it. Or are you simply wanting to see if the
    field was visited?
    Cheers... Rick

  • Shell extensions and key stroke capturing...

    Hello. Me and my team are working on a project which converts English input from a QWERTY keyboard to Unicodes local Indian languages like Kannada, Tamil etc. We're using Java and SWT for UI. The program should run in such a way that once the program is running, wherever the user enters, he should be able to see the unicodes/indian language output. That is, the program should be a shell extension or a it must run in the background and capture the keystrokes of the active window the user is using. We are developing this software for both windows and linux. So is it possible to create shell extensions or implement the background window(process)?
    Are there APIs in linux to capture key strokes?? Is it possible to use Win32 WinHooks in windows to capture the key strokes??
    Edited by: abhinav_zoso on Jan 8, 2009 11:35 PM

    Are there APIs in linux to capture key strokes?? Is it possible to use Win32 WinHooks in windows to capture the key strokes??Those are not java questions. Programming forums specific to the OS will provide the answer. Or docs for that matter.
    ... which converts English input from a QWERTY keyboard to Unicodes local Indian languagesThat by itself doesn't make much sense unless you are talking about language translation rather than characters.
    The ASCII code set which would normally represent the entire english character set, is part of unicode. So no conversion needed.
    But perhaps you merely wish to map set of keystrokes into other characters? I would strongly suppose that at least windows already supports this in some format so I am not sure why you need java in the mix. Certainly, for example, if you had a computer set up to display another language character set and you want to put a key stroke interceptor in place that should be possible. And if the computer is not set up to display the language then what is the point?

  • Layout Question - How to print a frame on the bottom of the last page ?

    I have a summary frame for my report. I want to print the summary information at the bottom of the last page of the report. Currently depending on the data, the summary frame prints anywhere on the last page. How do I make sure it prints exactly at the bottom of the last page (just the last page).
    Thanks in advance.

    You might like to take a look at the following threads:
    Last frame with last record of proceding repeating frame
    Re: How to capture a keystroke - including control chars?

Maybe you are looking for

  • How do I find my old License Key?

    I am trying to track down one of our old license keys for Crystal reports desktop designer V8.5. We are running software which uses crystal reports to print out transmittals. Due to a change in the company, the logo's on the reports need replacing. T

  • After iTunes 11.1 (126) Update - (iTunes) permissions won't repair?

    After the new iTunes 11.1 (126) update, not only was I disappointed that COVER-FLOW hadn't been reinstated (we knew that), I had the the little inconvenience of the wrong tracks playing when a specific track, or album, had been selected. For example,

  • Make part of text in TextField Bold

    Hello, How do I make a part of a text in a TextField bold or italic? Notice that I dont want to make the whole text bold. just parts of it.

  • Top of the range: Mac Mini vs iBook

    Hey hey, I fell in love with Apple mid last year, and bought my first Mac ever mid November of 2005. It was a 20" G5 RevC 2.1ghz iMac w 1.5gb Ram. It's the best computer I've ever seen and used in my life! Amazing! Anyway, I've been working at my par

  • Php if/elseif and mysql

    I was wondering if you could help we with this. PART 1 i have a table of students info. I give the students praise points for doing well in the lesson. I want to compare two students's praise points, if one is bigger (Higher) than the other i want to