How to get input stream of other application

Using Java is their any way to get the input stream of another applicaton?. For example i will start a java program and minimize it. Then i will start a notepad and type some thing in it. Java program should print all matters i am typed in notepad.
Is it possible using java?
Thanks in advance

You have many ways to do that in C++. Read about Hooks and you will understand how u can do that. Anyway, even without hooks, u can get the messages from other applications in C++. So, let C++ get the data from other applications for you and let ur java program get data from the C++ program.

Similar Messages

  • I updated to ios8 and tried to use Health Application. In Sources I get a message that other applications will show up on the list as they request permission to update your data. How does it happen? No apps are listed on my Sources section

    I updated to ios8 and tried to use Health Application. In Sources I get a message that other applications will show up on the list as they request permission to update your data. How does it happen? No apps are listed on my Sources section

    I have an answer to my question. There is a bug in IOS8 that prevents third party applications to talk to the Health Application. Apple is trying to fix it ASAP

  • When using tethered capture I often get this notification "The metadata for this photo has been changed by both Lightroom and another application". This slows or stalls the loading of incoming photos. How do I find out which other application is changing

    When using tethered capture I often get this notification "The metadata for this photo has been changed by both Lightroom and another application". This slows or stalls the loading of incoming photos. How do I find out which other application is changing the metadata and stop it?

    Thanks Sean,
    I've had a look at the TC settings dialog and tried to keep it as simple as possible. I also had a copy of LR 4 on the hard drive so have trashed that also incase of any conflicts. LR seems to be running ok now but as said it's an intermittent problem.
    I also have a copy of Capture One on the hard drive so am going to uninstall that also in case it is trying to launch.

  • How to get a list of every application on my computer?

    I'm trying to figure out how to get a list of every application on my computer using applescript. I know it is possible for the system to do this, as evidenced by the dialog you get when you use the "choose application" function. Other examples are doing a spotlight search for "kind:app" or programs like Namely or QuickSilver.
    Is there a way to do this in applescript? The only solution I've come up with so far is to use the command:
    <pre>set everyapplicationaliases to choose application as alias with multiple selections allowed</pre>
    and manually select all on the resulting dialog. I can then take the results and go from there, however there are a few significant problems with this approach.
    1. It requires user interaction. (I have an idea for some future applications that could use this functionality if it can be done without user input.)
    2. It's horribly slow. As a test run I choose all the applications from the dialog, extracted some basic info and put the result on the clipboard. It took a couple of minutes to complete this relatively basic task. In comparison, running the aforementioned spotlight search took maybe ten seconds.
    Thanks in advance!
    best,
    peter

    For these specific queries my results are...
    set appList to paragraphs of (do shell script "mdfind \"(kMDItemKind = 'application'c) || (kMDItemKind = 'widget'c)\"")
    3082
    set appList to paragraphs of (do shell script "mdfind \"(kMDItemKind = 'Application'c) || (kMDItemKind = 'Widget'c) ||
    ((kMDItemContentTypeTree = 'com.apple.application') && (kMDItemContentType != com.apple.mail.emlx) && (kMDItemContentType != public.vcard))\"")
    3115
    I think I finally found some numbers that make sense!
    When I search for Kind:Application by the Command+F method in the Finder, I get a total of 2521 items, of which 2477 are "Applications" and 44 are "Other".
    (Just by eyeballing it, "Other" seems to include some Classic Apps and some .bundle files.)
    The total # found by this method (2521) plus the number of Widgets found using mdfind (318) equals the number of total number of items found by spotlight (2839).
    I also noticed that these numbers almost equal the spotlight number:
    mdfind results for kMDItemKind:
    Widgets: 318
    Applications: 1684
    Classic*: 795
    and
    Command+F "Other" items: 44
    3181684+79544 = 2841
    It may be a fluke that this is so close to the 2839 spotlight gives, or maybe there's an overlap somewhere...
    Tying this back into my initial question, it seems like the original mdfind command for Applications is probably the best answer for what I was looking for,
    since I wasn't really thinking about Classic apps and Widgets anyway.

  • ImageIO - javax.imageio.IIOException: Can't get input stream from URL

    Hi,
    I'm developing a program which accesses a given URL of an image and saves it to a file. However when I try this I get the following error:
    javax.imageio.IIOException: Can't get input stream from URL!
         at javax.imageio.ImageIO.read(Unknown Source)
         at ImageSave.main(ImageSave.java:12)
    Caused by: java.net.ConnectException: Connection timed out: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(Unknown Source)
         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at sun.net.NetworkClient.doConnect(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.net.www.http.HttpClient.New(Unknown Source)
         at sun.net.www.http.HttpClient.New(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at java.net.URL.openStream(Unknown Source)
         ... 2 moreThe internet connection I am using uses a proxy server and I think this is where the problem lies. I'm using Eclipse version 3.3 and I've tried changing the network settings to use the proxy's hostname and port but this still isn't working. I've also tried using System.setProperty("http.proxyHost", "hostname") and System.setProperty("http.proxyPort", "port") but that hasn't worked for me either. Below is my class in full.
    import java.awt.image.*;
    import javax.imageio.*;
    import java.io.*;
    import java.net.*;
    public class ImageSave
         public static void main(String args[])
              try {
                   URL url = new URL("http://www.example.com/image.jpg");
                   BufferedImage image = ImageIO.read(url);
                   ImageIO.write(image, "JPG", new File("image.jpg"));
              catch (Exception e) {
                   e.printStackTrace();
    }The error occurs with the line: BufferedImage image = ImageIO.read(url);
    I have tried looking for a way to change how this specific method accesses the internet (e.g: a Proxy parameter with URLConnection) but there doesn't seem to be any.
    Any help or suggestions would be greatly appreciated.
    -Robert

    Ah, that worked fine. I had thought of using that earlier but I was under the impression that the input stream would be HTML rather than an actual image. Not sure why.. Anyway, thanks very much for your help!
    Here is the new code with your suggested revisions and a URLConnection to get the input stream:
    import java.awt.image.*;
    import javax.imageio.*;
    import java.io.*;
    import java.net.*;
    public class ImageSave
        public static void main(String args[])
            try {
                 // This is where you'd define the proxy's host name and port.
                 SocketAddress address = new InetSocketAddress(hostName, port);
                 // Create an HTTP Proxy using the above SocketAddress.
                 Proxy proxy = new Proxy(Proxy.Type.HTTP, address);
                 URL url = new URL("www.example.com/image.jpg");
                 // Open a connection to the URL using the proxy information.
                 URLConnection conn = url.openConnection(proxy);
                 InputStream inStream = conn.getInputStream();
                 // BufferedImage image = ImageIO.read(url);
                 // Use the InputStream flavor of ImageIO.read() instead.
                 BufferedImage image = ImageIO.read(inStream);
                 ImageIO.write(image, "JPG", new File("image.jpg"));
            catch (Exception e) {
                 e.printStackTrace();
    }Edited by: Ragnarob on Apr 21, 2009 2:49 AM

  • How to get Input-Ready Cell  Value of Input Ready Query?

    Hi,
    How to get input ready cell value in fox formula?
    for example :
    In Input-Ready Query,
    C_Code Month        Psale(input ready)
    1000          05.2012       800
    now i want Psale 800 in fox formua before value save in cube,
    is it possible?
    Thanks
    Ravi

    Hi,
    as I understand your requirement: you want to execute a planning function before 'save'. This possible, cf. note 1356805
    for more details.
    Regards,
    Gregor

  • HT5624 how to get back my "AAp store" application on Iphone 4....

    how to get back my "AAp store" application on Iphone 4....

    The App store app is a built in app and cannot be deleted. Try:
    Check settings to see if restrictions are turned on and/or if Installing apps is turned off (Settings app > General > Restrictions)
    Check all of your home screen (by swiping left to right), and folders to see if was inserted into one. (you can also use Spotlight search which will tell you if it is in a folder. Swipe down on the Home screen and type in "app Store")

  • I am having problems with migration assistant (windows pc to Mac 2011) When I get to the 'Quit other applications' box and click continue, nothing happens. There are no other apps running - any ideas, please?

    I am having probems with migration assistant. Trying to transfer data from a windows laptop to iMac 2011. It was working fine when I did the set-up yesterday, but it was going to take hours to transfer some videos so I quit the process with the intention of doing it again at a later stage. However today I find that everytime I get to the 'Quit other applications' box on the Mac and click 'continue', nothing happens. Have checked mission control and confirmed no other apps running. Tried several times with the same result every time. Migration Assistant running on my laptop with the 'Waiting for mac to connect' box displayed. Mac is connected to wi-fi OK as able to use Safari and access internet. Any ideas, please?

    Thanks for your suggestions. Have managed to get Migration Assistant working but now have a new problem, i.e. where does it save the transferred files?!! Searched a few forums and it seems it saves it under your old username, or suchlike. Anyway I tried logging on as a new user using my old user name but there were only a handful of files there, couldn't locate the majority of stuff from my old laptop. Anyway I don't intend to go through any more hoops with MA - will just save the important stuff to an external drive and transfer it that way. Not impressed with MA at all. I thought it was supposed to be a user-friendly tool to simplify the transfer from pc to Mac - not my experience, I'm afraid!

  • How to get rid of the "other" memory

    I need steps to find a way how to get rid of the "other" memory. Ive tried deleting my photos. But my memory is still low. My iphone 4 is a 8GB and still that isnt much, and to have this "other" memory take most of it up is making me mad. HELP PLEASE!!!!!!

    About “Other”:
    http://support.apple.com/en-us/HT202867
    Go step by step and test.
    1. Start up in Safe Mode.
        http://support.apple.com/kb/PH11212
    2. Backup your computer.
    3. Empty Trash.
       http://support.apple.com/kb/PH13806
    4. Disk space / Time Machine ?/ Local Snapshots
      Local backups
       http://support.apple.com/kb/ht4878
    5. Delete old iOS Devices Backup.
        iTunes > Preferences > Devices
        Highlight the old Backups , press “Delete Backup” and then “OK”.
        http://support.apple.com/kb/HT4946?viewlocale=en_US&locale=en_US
    6. Re-index Macintosh HD.
        This will take a while. Wait until it is finished.
        System Preferences > Spotlight > Privacy
        http://support.apple.com/kb/ht2409
    7.Try OmniDiskSweeper. This will give the storage size details of the items.
       https://www.omnigroup.com/more
       Select Macintosh HD and click  “Sweep Selected Drive” at the bottom.
       Be careful. Delete only the files that can be safely  deleted. If you are not sure about any file, don’t touch it.
    8. Move iTunes, iPhoto and iMovie media folders to an external drive.
        iTunes
        http://support.apple.com/en-us/HT201562
        iPhoto
        http://support.apple.com/kb/PH2506
        iMovie
        http://support.apple.com/kb/ph2289

  • How to get rid of the other from the MacBook Air Memory?

    How to get rid of the other from the MacBook Air Memory? I reviewed my newly purchased MBA ear;y 2014 i7 8GB RAM and there was 24+ GB of "Other". I have Yosemite. I have restored to factory with no luck. is there a memory cleaner or process to eliminate what is not needed in Other? I know some files there are settings, and such but not 24+ GB worth is such of stuff.

    About “Other”:
    http://support.apple.com/en-us/HT202867
    Go step by step and test.
    1. Start up in Safe Mode.
        http://support.apple.com/kb/PH11212
    2. Backup your computer.
    3. Empty Trash.
       http://support.apple.com/kb/PH13806
    4. Disk space / Time Machine ?/ Local Snapshots
      Local backups
       http://support.apple.com/kb/ht4878
    5. Delete old iOS Devices Backup.
        iTunes > Preferences > Devices
        Highlight the old Backups , press “Delete Backup” and then “OK”.
        http://support.apple.com/kb/HT4946?viewlocale=en_US&locale=en_US
    6. Re-index Macintosh HD.
        This will take a while. Wait until it is finished.
        System Preferences > Spotlight > Privacy
        http://support.apple.com/kb/ht2409
    7.Try OmniDiskSweeper. This will give the storage size details of the items.
       https://www.omnigroup.com/more
       Select Macintosh HD and click  “Sweep Selected Drive” at the bottom.
       Be careful. Delete only the files that can be safely  deleted. If you are not sure about any file, don’t touch it.
    8. Move iTunes, iPhoto and iMovie media folders to an external drive.
        iTunes
        http://support.apple.com/en-us/HT201562
        iPhoto
        http://support.apple.com/kb/PH2506
        iMovie
        http://support.apple.com/kb/ph2289

  • How to read the keystrokes of other application

    how to read the keystrokes of other application
    suppose if i create on text doc those modifications should be recoreded
    how to do that.

    reg231 wrote:
    how to read the keystrokes of other application[How To Ask Questions The Smart Way|http://www.catb.org/~esr/faqs/smart-questions.html]

  • How to get live stream name

    Dear all!
    I use ffmepg to push a livestream to my flash media server. Then I want to catchup live stream to file.
    /opt/ffmpeg-1.1.1/bin/ffmpeg -i udp://238.1.1.2:1234 -filter:v yadif -acodec libfaac -ac 2 -ar 44100 -b:a 96k -af volume=5 -b:v 1000k -c:v libx264 -preset fast -pix_fmt yuv420p -s 720x476 -r 25 -threads 0 -t 300 -f flv "rtmp://10.84.70.120/dvrcast_origin/vtv22"
    After, I create an application that main.asc file is:
    application.onConnect = function (){
            name = Stream.name();
            stream = Stream.get(name);
            if(stream){
            stream.record();
    I can not catch live stream to file.
    Can you show me how to get a live stream name?
    Thanks!

    The error only appeare when there is no stream name in output.
    rtmp://10.84.70.120/dvrcast_origin/   --> error
    rtmp://10.84.70.120/dvrcast_origin/vtv22 --> ok.
    1. Could you re-try using the -ru option? for realtime publish?
    2. Have you compiled the ffmpeg with rtmp libraries?
         I can publish without error as the format above. So it is not problem.
    3. Are you able to record the udp stream onto the disk? (to verify there are no problems with the input stream? --> I've test with input without FMS. It's ok.
    4. Are there any error messages logged in FMS? (core logs/application logs)
    There is no error log file in logs/ folder.
    When I test with Flash media live encoder. I press "record" button. Everything is ok.
    The problem only appeare when I put stream with ffmpeg .
    Is there special anyconfig that effect it?

  • How to get input source line number

    I wrote a XSLT transformation that checks the input XML for errors.
    When the transformer finds a problem, it can terminate with <xsl:message terminate="yes">, which outputs the line number within the transformer XML source. I do so in my implementation to indicate errors.
    But i need to output the line number of the input source, not that of the transformer source, because this is the location of the error.
    Anybody knows how to do this?
    How can i get the current line number of the input source XML text?

    Hello Fritz!
    XALAN reads the entire input file (SAX) before starting with transformation.
    So overriding the input stream is no way to find this line number.
    I think this would have to be a built-in XSLT functionality within the tag "xsl:message".

  • How to get inputs of several JTextFields?

    Hi all,
    I'm writing an application which prompt the user to enter "Customer Information" such as Customer, Name and Tel. I need to use JTextField for these inputs but I don't know how to get the input values. I found some sample code for only input ONE JTextField so I don't know how to apply it for more than one JTextField. Below is part of my coding. What should be add in the "actionPerformed" part to get the inputs? Would anyone help?
    class CustFrame extends JFrame implements ActionListener
    JButton save, cancel;
    JLabel text1, text2, text3;
    JTextField cust_number, name, tel;
    text1 = new JLabel ("Customer Number: ");
    text2 = new JLabel ("Name: ");
    text3 = new JLabel ("Tel: ");
    cust_number = new JTextField (8);
    cust_number.addActionListener (this);
    name = new JTextField (20);
    name.addActionListener (this);
    tel = new JTextField (30);
    tel.addActionListener (this);
    save = new JButton ("Save");
    cancel = new JButton ("Cancel");
    public void actionPerformed (ActionEvent e)
    if (e.getSource()==save)
    else if (e.getSource()==cancel)

    public void actionPerformed (ActionEvent e)
    if (e.getSource()==save){
    innumber = cust_number.getText();
    inname = name.getText();
    intel = tel.getText();
    }.....

  • How to get input from card reader

    hi, everyone,
    I have a project, which needs me to get input from card reader. My terminal input is IBM POS system, but it didnot provide the API to get the input. How can I get the input? Need your help so much! and thanks a lot

    Now this is a wild idea.... how about searching the IBM site for technical information ?

Maybe you are looking for

  • 1933985     NF-e new layout 3.10 - Versão Obsoleta

    Caros, Estou com uma dúvida em relação a aplicação da nota 1933985 - NF-e new layout 3.10. Há 2 meses aplicamos completamente  a nota 1933985, porém ao baixarmos novamente esta note via SNOTE, seu status não está mais como "Completamente Aplicada" e

  • No thumbnail images in icons with Preview since reinstall of Tiger

    Since a HDD crash and reinstall of Tiger at Apple Store with updates to 10.4.11, Preview.app is now NOT making image thumbnails but only shows an icon with the Preview logo and file type, ie. JPEG, PNG. Also in Folders most images, but not all, are n

  • Any FM to update VBKPF??

    Hello... I'm facing an issue when trying to create a parked document... we made a program using the standard FM: PP_COMPLETE_DOCUMENT_ENJ we are trying to automatize the transaction FV50... It's working fine for most functions, but for the VBUND fiel

  • Suddenly no computer will recognise my ipod ????

    All of a sudden no computer, PC or Mac, will recognise my ipod it will charge it but I cannot access it in anyway. Untill a few days ago it worked fine, I don't know if this is caused by the new version 1.2 or if it is caused by something else.... bu

  • Ventanas en escritorio

    se pueden guerdar las ventanas tal como las agrupe cuando estaba trabajando? con todas los cambios que les hice? x ej. si agregué alguna muestra de color a la ventana de muestras o cree algun simbolo. Graciasssssssssssss si es que esta pregunta tiene