How can I communicate with other applications from my Java application?

Hello,
I need help about how can i communicate with other application(say textpad.exe/wordpad.exe/MS word.exe) from my Java program.
More precisely, I need to know how i can get the current position of the cursor whether it is in any .txt/.doc files, then I may write some text in my java application and click a button and then my program will append the line(string) in that position of the file which is running under another appliction(Notepade.exe/MSword.exe).
Please provide me some help.

I may be wrong (and anyone, please correct me if so), but Java may not be the best tool for something such as this. I envision that you'd have to make some OS calls such as calls to the user32.dll, and while this can be done through the JNI, you'd still have to have a C or C++ program doing the dirty work.

Similar Messages

  • Can't communicate with other hosts from primary domain.

    Hi all, I add vsw0 as below:
    ldm add-vsw net-dev=e1000g0 primary-vsw0 primary
    ifconfig vsw0 plumb
    ifconfig e1000g0 down unplumb
    ifconfig vsw0 (ipaddressofserver) netmask 255.255.224.0 broadcast + up
    mv /etc/hostname.e1000g0 /etc/hostname.vsw0
    init 6
    but now I can't communicate with other hosts from primary domain,if I plumb and up e1000g0 and down vsw0 ,everything is OK,what's wrong with it?Thanks.

    This is greate!I replaced e1000g0 with vsw0 now.
    Could ldm automatic update the ldm configuration parameters?I created a file for the virtual disk,the output of ldm list-bindings as below:
    ......................ignore.............................
    Vdisk: disk0 vol0@primary-vds0
    service: primary-vds0 @ primary
    ......................ignore.................................
    but when I updated some other parameters such as vsw,vnet,the vol0 became:
    .................ignore.........................
    Vdisk: disk0 primary-vds0-vol0@primary-vds0
    service: primary-vds0
    .......................ignore........................................
    and the same time the primary-vds0-vol0 link with /dev/zvol/rdsk/domdisk/dom1,so the guest domain couldn't get the boot disk,I had to update it manunally.
    Did you have the same issue?
    Greetings fenglimian.

  • TS3989 Only some of the photos I have taken on my iPhone appear in the photo stream on my iPad even thou they were taken at the same time. Why is this and how can I import the other photos from my iPhone to my iPad?

    Only some of the photos I have taken on my iPhone appear in the photo stream on my iPad even thou they were taken at the same time. Why is this and how can I import the other photos from my iPhone to my iPad?

    If older photos are missing it may be because photo stream photos are only held in iCloud for 30 days.  After that they are removed from iCloud but will remain (up to 1000 photos) on your device until deleted.  Also, only photos taken after enabling photo stream are added to your photo stream, and only when the camera is closed, your device is connected to wifi and you have at least 20% battery life remaining.
    To transfer the missing photos you can either create a shared photo stream containing them and invite yourself to it (see http://help.apple.com/icloud/#mmc0cd7e99), import the photos to your computer and sync them to your iPad, or use an app like PhotoSync to transfer them to your iPad over wifi.

  • Brand new MacBook -- how can it communicate with my old iMac

    I just got a new 2.2 GHz MacBook (black) with the current version of Leopard installed (10.5 I guess, I'm posting this from my PC at work, so I can't check). No real problems so far. I've been able to access the Internet through my cable modem at home (had to unplug my desktop, more on that below) and through Wi-Fi.
    I still have and plan to keep my G3 iMac desktop machine, running OS 10.2.8, and my basic question is how I can get my two Macs to talk with each other. I don't currently have any sort of network at home -- I'm the only computer user. Setting up an AirPort station would make sense, since it would allow me to use the MacBook anywhere in the house. I'd need to install an AirPort card in the iMac, and the card that's currently available in the online Mac store is AirPort Extreme, which I don't think would work with the old iMac. (The specs say "AirPort Extreme Cards cannot be used in AirPort-ready computers with an AirPort Card slot.") Does any one know if there's a way to use the same AirPort station with both computers.
    Since the primary reason for the computers to communication with each other would be to share files, connecting them with some sort of cable would be another option. When I asked the Apple store salesman what I would need, he sold me an Ethernet cable, but that doesn't seem to do the job. If I connect it to the Ethernet ports on both machines, they don't seem to see each other. Do I need some kind of router to connect both machines? Actually if there was a router that connected both computers to the cable modem, one cable could go to the iMac and the other to an AirPort station that would communicate with the MacBook, solving my issue above. Can I do anything via USB ports?
    If all else fails, I could e-mail files to myself, but seems a rather roundabout way of doing things.

    Usually you use a router as the hub for the computers to talk to each other over Ethernet wires or WiFi. When you hook the two computers up directly, you need a cross-over Ethernet cable, which is different from a standard Ethernet cable. (Although some of the newer computers can sense and use either, but I'm not sure about the older G3.)
    A wired/wireless router would definitely be the way to go, why not take advantage of your MacBook wireless capability? This will let you share the internet connection, share files, and a printer between the two computers. Just about any router would work from Netgear, Linksys, Newer Technology, or the Apple Airport. Using an Airport Extreme Base Station would allow you to use an Ethernet cable for the G3 iMac and the WiFi for the Macbook. I currently use one this way with my older G3 Desktop and a MacBook. (I think the first time you start up the Airport you configure it over the Ethernet cable, I don't remember if you can do it wirelessly or not the first time.) You plug the cable modem into the router, then each computer into the router, (or connect over WiFi).
    Once you have the Airport set up you can turn on file sharing and access each other's hard drive and printer over the network. Should you ever get a PC or have a visitor with one, they can connect also. Set up the password protected encryption and don't broadcast the network name so passersby can't see and connect to your network.

  • Can Director Interact With Other Applications?

    Hello,
    I am a CBT/E-Learning Developer looking for a way to author
    Guided Help. I am thinking of how to develop interactive tutorials
    that, instead of using screenshots of an application, interact with
    the application itself.
    For instance, let's imagine that a person is working in MS
    Word and doesn't know how to save a file. He can click the icon for
    the "Saving A File" lesson, and a caption displays on top of MS
    Word that reads something like "Click FILE", along with some type
    of indicator of the FILE button, such as an outline, highlight,
    arrow, etc. The user clicks FILE, the File Menu drops down in MS
    Word, and the next step of instructions is displayed. In this way,
    the usre is guided through the steps of saving a file as he
    actually performs the task in the software.
    Can Director create this type of thing?
    Thanks a lot,
    Mike

    Hi Chunick,
    Thanks for replying. I used MS Word as just an example; the
    type of software I'm wanting to use this for is police records
    management software. I've been doing the interactive simulation
    tutorials for them since 1999, using multimedia authoring tools
    Demoshield and Opus Pro, and demo authoring tools RoboDemo and Demo
    Builder. However, I wanted to get away from interactive tutorials
    for 3 reasons:
    (1) My client's software is frequently updated, and keeping
    up with taking new screenshots is a hassle.
    (2) I'm of the opinion that "at the moment of need", process
    embedded "guided help" in the actual application is a much more
    useful form of training than working through a simulation.
    (3) It will greatly help my client's support staff and
    training staff
    I've been researching process embedded e-learning and guided
    help for almost a year now. I've looked at everything from
    multimedia authoring to macro software. I even found two programs
    that do exactly what I want, but they are very very expensive, much
    more expensive than Director.
    Thanks for the tip on Hook Xtra; I'll check that out. Last
    night I found an xtra called MasterApp, which may also do what I
    need. I appreciate the concern about the difficulty of programming,
    and I'm not a programmer (except HTML, and we all know how easy
    that is). But I'm in this for the long haul, and would be using it
    for potential new clients, not just my current client. I love
    learning new software, and I have a membership to the IEEE Computer
    Society, which gives me over 1300 online e-learning courses I can
    take, including Director.
    Thanks again for the lead!
    Mike

  • How can I work with WindowsAccessBridge.dll from VB6?

    Hi,
    I have one java application(e.g JAlbum). Whenever I start that application it promt to enter username and password.
    Now what I want to do is?
    I want to get that both text boxs values and set some values of that text boxes with my VB 6.0 code.
    I have found that with help of WindowsAccessBridge.dll we can do something which I want. But they didn't provide any example source code in VB 6.0.
    Can anybody help me that how can I get content of Java Application. How can I use WindowsAccessBridge.dll in my VB project. I can do it for windows application by using IAccesible. But I don't know that how can i do it for Java with WindowsAccessBridge.dll.
    Please provide me some proper steps to work with WindowsAccessBridge.dll in VB 6.0.
    Please help me as soon as possible. If possible please provide me some source code in vb 6 or links.
    Thanks in advance.

    Hi Peter,
    Thanks for your reply.
    I have developed it using VB 6.0. Please check the below code.
    '' General Declaration
    Option Explicit
    Private Declare Function isJavaWindow Lib "WindowsAccessBridge" (Hwnd As Long) As Boolean
    Private Declare Function FreeLibrary Lib "kernel32" (ByVal hLibModule As Long) As Long
    Private Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA" (ByVal lpLibFileName As String) As Long
    Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hwnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
    Private Declare Function FindWindow _
                    Lib "user32.dll" _
                    Alias "FindWindowA" (ByVal lpClassName As String, _
                                         ByVal lpWindowName As String) As Long
    Private Sub Form_Load()
    Dim Var_g_HwndRec As Long
    Dim lb As Long
    Var_g_HwndRec = FindWindow(vbNullString, "CI for a proportion")
    lb = LoadLibrary("WindowsAccessBridge")
    MsgBox isJavaWindow(Var_g_HwndRec)
    End SubAt the time when I ran this program I got an runtime error "49', bad DLL calling convention.
    Can you please tell me that what could be the problem?

  • How Can I Communicate with a Moble Phone throgh RS232 or USB mini,Does NI-VISA support these resources?

    Just as we've known, NI LabVIEW or LabWindows/CVI provide us the RS232 Lib for Serial Communication.
    and also NI-VISA supports both ASL and USB resources.
    Mobile Phone(Celler Phone) usually use two kind of ports for data communication: RS232 and USB mini.
    both of which act as serial transmission actually.
    so the question coming up is: Are the rs232 lib or NI-VISA developed to support the overall serial communication
    or it just work well with the standard rs232 com port?
    Phone from differnt vender has its particular port and driver.which relate to communication protocols.but
    the accessory tool Hyper Terminal from Windows OS can communicate with all kinds phone which has
    its driver installed on the system.
    so does anyone can give some idea about low level serial communication?thank you very much.

    NI-VISA's ASRL sessions basically work with virtual COM ports, however NI-VISA ASRL operation is guaranteed only with standard COM ports and NI-Serial devices.  In fact, I have a 3rd party USB-Serial converter that comes with its own device driver providing a virtual COM port such as COM3, and accessing it through the NI-VISA occasionally causes a Blue Screen death.  (It is probably due to device driver.) Therefore using unsupported COM ports from NI-VISA is at your own risk.
    As for low-level programming, a typical way is use Win32 Serial Communication API directly.  Accessing Win32 API is easy for C-language, but somewhat troublesome for LabVIEW.  See the following Platform SDK help:
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/communications_functions...

  • How can i call a jasper report from a java Application

    Hi,
    i am chiranjit , currently i working in a web based ERP project, in this project as a report building tool we are using JasperReport wih eclipse plugin . in eclipse report's are generating very well but i am unable to call that report from a java application because i have no idea about the How to call a Jasper Report from a Java Application . so please send me the necessary class names, jar files names and programe code as early as possible.
    Chiranjit

    Ahh, kind of a duplicate thread:
    http://forums.java.sun.com/thread.jspa?threadID=631642
    @OP. You could have clarified your original post and the relationship of your question to java. You did not need a new thread.
    � {�                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How can i call a VB6 project from my java application using JNI

    hi
    can anyone tell me the procedure of calling a VB6 project from any java application using JNI
    if anyone does know then tell me the detail procedure of doing that. I know that i have to create a dll of that VB6 project then to call it from the java application.
    if anyone know that procedure of creating dll file of an existing VB6 project please reply
    please if anyone know then let me know

    Ahh, kind of a duplicate thread:
    http://forums.java.sun.com/thread.jspa?threadID=631642
    @OP. You could have clarified your original post and the relationship of your question to java. You did not need a new thread.
    � {�                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How can access MS Outlook Calender information  from my Java application.

    People schedule meeting with some data on regular basis.
    I need to access the Exchange server from my Java application and get the meeting dates along with other data pertaining to meeting.

    I had the same problem, and I dont think (as far as my knowledge goes) there is any freeware that will enable Java to access Exchange server. But there are some commercial products that are available.
    Chk this link as an example: http://www.compoze.com/products_hme_desc.html
    good luck in the research
    -kms

  • HT4623 how can i remove the other storage from my ipod touch 5g which is using almost 3gb?

    When i am trying to sync my ipod,itunes shows i have almost 3 GB other files.I Know it will be corrupted files.I need to remove or get rid of this storage to free some space.How can I do it?Its an ipod touch 5th generation.Any suggestions will be well appreciated.Please help....

    An "other" larger than about 1 1/2 GB indicates corrupted files.
    What is the Other on my iPhone and How to Remove It
    What is "Other" and What Can I Do About It?
    Next, usually restoring from backup eliminated the corrupted files. However, sometimes restoring to factory settings/new iPod is required.
    To restore from backup see:
    iOS: How to back up
    To restore to factory settings/new iPod see:
      iTunes: Restoring iOS software

  • Text messages on the Iphone 5c do not forward to non-Iphone users.  How can I communicate with both Iphone users and non-Iphone people?

    How can I create a setting that allows me to text to Iphone users and non-Iphone users?  Where do I find those settings?

    That is the default behavior when startng a message to a number that is not associated with iMessage. such as that of non iPhones.
    If you choose to user an email address it will always attempt to send an iMessage.
    For ease of identifcation, Messages sent thorugh SMS will be green in the Messages App, while iMessages will be blue.

  • How can I execute a batch file from my java program

    Hi,
    Can someone help me or direct me to a link,
    How can I execute a DOS batch file from my java program?
    Thanks

    You will need to grab a handle to the process's
    outputstream so u can see its output.The OP didn't mention any output from any batch file;
    nor any input for that
    matter,so lets not complicate matters here for now
    ok?Actually I think this is essential to see whether it works or not. It's either that or do some manual check to see whether it ran, which is not exactly elegant, and in some cases this may not be easier than simply writing the output stream code, or in fact it may be impossible to check manually.
    I'm sure it wasn't intentional that your post appeared to be bristling with attitude.

  • How can I work with FCPX away from base?

    I have to go away and would like to at least do some keywording on a large amount of clips I have imported on to an external 1TB forewired drive  (which I would prefer not to take with meif possible)
    All my FCPX so far is on my iMac  so -  is it possibe to transfer anything to my MacBook Pro to take with me and work on that?
    If so what do I ned to trasnfer from my iMac?  Do I then need to take the external drive with me - even to do keywording>
    I cannot find this in the manual - but, I am sure I saw a refernce to this somewhere
    thanks

    The events library and project library are on whatever drive they're on.
    When you first launch FCP an events folder is created in your Movis folder. If you make a new project it might be created in a projects folder in Movies as well.
    If the entire content, media and project, are on the external drive, then there is nothing from the iMac that you need. Connect the FW drive to the MBP, launch the application, and it will read the events and projects folders on that drive and never create an events folder on the MBP. If you launch FCP without the drive, it will create an empty event, in an Events folder, in Movies, on the MBP as the application always has to have one event at least to work with.
    You can work with events in the organizational stage without ever even making or opening a project or making a projects folder on any drive.

  • How can I keep my other iPhone from updating new purchases

    I have  multiple  apple products can you turn off updating from one to the other

    thanks that works as expected. I really wish the-powers-that-be would reconsider
    the new release in what feels like a quarterly schedule. The add-on dev's need
    lead time to rework their software to be compatible with the new version's changes.
    There appears to be 3 different branches currently, couldn't the 'stable / production / release' branch be more like semi-annual or even annual so add-ons could be tested in the other two branch's to minimize incompatibility issues?

Maybe you are looking for

  • Media Encoder Greater that 7.0 does not recongnise SD footage with correct pixel aspect ratio

    Hello, I logged this bug with Adobe last year but even through the latest releases the bug still remains and is a real issue for anyone editing in SD via Premiere Pro CC. Effectvely when you create a PAL sequence within Premiere Pro CC using SD 720x5

  • Read a csv file in a PL/SQL routine with the path as a parameter

    hello oracle community, System Windows 2008, Oracle 11.1 Database I have created a directory in the database and there is no problem to read a csv file from there. Since the files can be at different places, my java developer is asking me, if he can

  • WEBUTIL Usage

    Hi List, This is regarding usage of WEBUTIL in Froms9i . I want to use Host and Text IO Command using client_text_io and client_host . I have attached webutil.obl(Object library) and pll to my form as well.but when i am running it says that some Clas

  • Really basic questions about dvd

    I have figured out that if I slide a DVD into the slot on the right side of my iMAC, then after a pause an application called "DVD Player" will open and the DVD will play.  I have also discovered that to get the disk OUT I can find an image of it on

  • "Oracle Workflow for Retail and HR"

    can anybody please guide me how do i go about performing this responsibility and duties, Oracle Workflow - Oracle Roles and Responsibilities - development experience with Oracle Workflow - Retail experience - HR experience -Oracle Security Tables Day