Run tool.. and stop on mouse and keyboard movements!!

Hello frnds,
I would like to share a problem with all of you..!!.. and need some advice!!
I have a tool "optimizer" which takes a hell lot of time in optimizing images.. I have to pass some arguments to it.. (the optimizer script.. and output path).. so am writing arguments in separate file.. "sample.txt"
I am doing it by reading contents of sample.txt and passing to optimizer.. 1 by 1
String cmd = new String[3];
cmd[0] = "optimizer.exe";
cmd[1] = "Optimizer_script.txt";     //coming from sample.txt
cmd[2] = "temp/folder";               //same
try { Process process = Runtime.getRuntime().exec(cmd); }
catch (IOException ex) {}Thts ok.. running fine..
Now what i want.. once process started if user.. presses keyboard or mouse..
the program
1. shows an message "Optimizer is running.."
2. does not allow user to do anything!!
and then stop(System.exit(0);Message = "Optimzer stopped") before reading next arguments from sample.txt.. (optimizer dont read next line in sample.txt).. and again when optimizer started it runs from same line.. I can do it by marking that line..!!
well frnds please tell me how to track mouse and keyboard actions.. whats the best way to do.. wht am trying to achieve!!.. Do I have to take care of how much time "optimizer.exe" takes.. in executing first line??.. if yes.. how to do that?
Thanking in advance
gervini

If anyone wish to answer this post.. please do now at.. succeding thread..
http://forum.java.sun.com/thread.jspa?threadID=718051&tstart=0

Similar Messages

  • HT5639 I have downloaded Windows 8 on my Mac Pro 13'' retina display. The first few hours everything worked fine until I open windows today and the trackpad/mouse and keyboard aren't working. Ive tried resetting windows but it didnt work. help appreciated

    I have downloaded Windows 8 on my Mac Pro 13'' retina display. The first few hours everything worked fine until I open windows today and the trackpad/mouse and keyboard aren't working. Ive tried resetting windows but it didnt work. help appreciated thanks

    It sounds like it is time to restore from the backups you made just before making the disk changes.
    You can re-partition and restore your backups.  If you didn't make backups first (you were warned that it might damage things and to make sure you had a good backup) then you will need to repartition everything and reinstall from scratch...

  • Every time i double clicked the group to do some editting, it crashed and stopped working. win8 and cs6. why!!

    every time i double clicked the group to do some editting, it crashed and stopped working. win8 and cs6. why!!

    What happens if you turn off the preference double click to isolate.

  • Windows 7 and Wireless Mighty Mouse, Wireless Keyboard and sound problem

    Hi,
    I just installed Windows 7 x64 Ultimate on my iMac 24" white ( OS X Leopard 10.5 ). Surprisingly, it installed without any problems. The only problems I have now are the Wireless Mighty Mouse and the Wireless Keyboard ( alu ).
    After I installed Windows I inserted the Leopard Instal DVD and installed Boot Camp. I got a message right away saying that: "This program has known compatibility issues...". I clicked Run program and continued. Soon I got the same warning, but this time not for Boot Camp, but Intel Chipset Device Software. I clicked Run program yet again and it continued installing. Then I got a different warning: "Service KeyAgent' failed to start. Verify that you have sufficient privileges to start system services." I clicked Ignore and installation continued. I got another "Service Mac HAL' failed to start. Verify that you have sufficient privileges to start system services." warning, clicked Ignore again and after that it finished soon and I restarted the computer.
    When I came back into Windows there was no Apple folder anywhere or any sign that I have just installed Boot Camp ( should there be? )
    I installed Boot Camp Update 2.1 for Windows XP ( because Vista x64 version wouldn't start ) and basically I got the same warnings I did when I installed Boot Camp from the Leopard DVD ( described above ). I also tried to instal Boot Camp Update 2.2 for Windows, but it didn't start. I also downloaded Bluetooth Update 1.0, but all I got was a message saying: "This update is not intended for this computer and will not be installed.".
    There is also no sound.
    This is basically it, I really hope some of you who run Windows 7 with wireless keyboards and mice can help me, because I desperately need this to work ( I use a Windows only program for school ).
    PS. I have a 2007 iMac 24" white and while it is not on the we're-not-supporting-that list for the infamous Windows 7 Boot Camp update, all other iMacs from its generation are. Any ideas?

    Found a solution for the "Boot Camp x64 is unsupported on this computer model" message. Here is the link: http://www.techulous.com/hardware/how-to-apple-boot-camp-64-bit-for-windows-7-on -unsupported-macs.html
    Everything works ( for ) now. Yay!

  • Downloaded version 20 and cannot use mouse or keyboard

    After downloading the latest versi0on of firefox on my desktop, my mouse and keyboard will not work

    Hello,
    are you able to disable graphics hardware acceleration
    Try disabling graphics hardware acceleration. Since this feature was added to Firefox, it has gradually improved, but there still are a few glitches.
    You might need to restart Firefox in order for this to take effect, so save all work first (e.g., mail you are composing, online documents you're editing, etc.).
    Then perform these steps:
    *Click the orange Firefox button at the top left, then select the "Options" button, or, if there is no Firefox button at the top, go to Tools > Options.
    *In the Firefox options window click the ''Advanced'' tab, then select "General".
    *In the settings list, you should find the ''Use hardware acceleration when available'' checkbox. Uncheck this checkbox.
    *Now, restart Firefox and see if the problems persist.
    Additionally, please check for updates for your graphics driver by following the steps mentioned in the following Knowledge base articles:
    [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]
    [[Upgrade your graphics drivers to use hardware acceleration and WebGL]]
    Did this fix your problems? Please report back to us!
    Thank you.

  • Windows 8.1 and Apple Bluetooth Mouse and Keyboard connection

    I recently upgraded to Windows 8.1 from Windows 8.0 Home and as a result I'm experiencing the following problems:
    Apple Bluetooth Mouse - randomly dis/connects or freezes where I cannot move the mouse or it's very jerky or very slow.
    Apple Bluetooth Keyboard - the keys will stick or freeze causing the redundent key presses (eg. yyyyyyyyeeeeeee).
    I've done the following to fix the problem with no success:
    Reinstall Boot Camp 5.0.5033 drivers
    Reinstalled Bluetooth drivers from Boot Camp 5.0.533 individually
    Unistalled both devices on OS X and reinstall them only on Windows 8.1
    Reinstalling both on OS X and reinstalling them on Windows 8.1
    Uninstalling all the drivers from the Device Manager and reinstalling them
    One thing I have noticed is that under Devices and Printers I have two new devices (HID-compliant mouse and HID Keyboard Device) that were not there under Windows 8.0 in addition to my bluetooth devices.  I have tried removing the new devices but they keep reinstalling themselves.
    I have USB mouse that's connected and I've been able to use that without problems so I think there's a problem with the Apple driver or the Windows 8.1 bluetooth drivers.
    Has anyone fixed this?
    Thanks!

    Just to point out the "Bluetooth Collaboration" setting I've found this:
    Bluetooth Collaboration enables general purpose input/output transmit suppression protocol between the IEEE 802.11 media access control (MAC) and an external Bluetooth chip to minimize transmit interference. Bluetooth Collaboration is enabled by default.
    And it is not enabled by default on some devices like on mine!
    http://chasms.com/wireless_utilities/broadcom/props.htm#toc_51

  • My hp support assistance wont run. it keeps stopping during updates and when deleting the temporary

    My hp support assistance wont run. It keeps stopping during updates and when deleting the temporary internet files. So it never finishes the process.. help

    The failure to remove the Temporary Files could just be due to having your internet connection active during the removal process.  For most folks, the amount of data in this directory is minimal.   If you want / need to remove the files, you could close your browser(s), make sure your Internet music and TV connections are closed, and then try removing the files manually:
    Path to Folder:
    C:\Users\--YourAccountNameHere--\AppData\Local\Microsoft\Windows\Temporary Internet Files
    Warning: 
    Do NOT remove the "Temporary Internet Folder" itself.  Go "inside" the folder before removing anything.
    ==================================================​==================================
    The HP Support Assistant is great when it works -- and not so great when it won't cooperate.  You can try removing the program from your computer and installing it again.  That may work.
    Control Panel > icon view > Programs and Features >
    Scroll down, find, and Uninstall HP Support Assistant.
    Restart your computer after uninstalling the existing version of Support Assistant.
    Install Support Assistant
    HP Support Assistant
    Using HP Support Assistant (Windows 8)
    Troubleshooting HP Support Assistant
    NOTE:  At writing, there are possible issues with HPSA version 7.x -- you might want to sitck with version 6.x for now.
    ==================================================​====================================
    If you have issues removing your version of HPSA:
    Fix problems with programs that can't be installed or uninstalled
    ==================================================​===================================
    Workaround to get Updates:
    If all avenues fail to bring joy and it just won't work, you can still get your updates from your computer's website.
                                                      ​         Install Software and Drivers from HP Website
    Go to the top of the HP forum page to Support and Drivers
    If prompted, Enter your Country or Region and
    Enter your Computer Model information,
    Go to Software and Drivers...
    Enter your Operating System in the Drop-down menu...  Scroll down
    Select desired Category
    Expand and decide if you need to install that package.
    Assure that you download and install only the most recent versions of each driver or program.
    Save the appropriate *.exe installation package on your computer
    NOTE the name and the location - the *.exe file will likely save to "Downloads “
    Install the Software / Driver installation package:  If you have ‘Admin’ control, you may highlight the package(s) and “double-click” to install, else Right-Click, Select ‘run as Administrator’ and install.
    NOTE:  There is sometimes a lot of information at the computer’s website.  Be sure to take an extended look at what’s available.
    ==================================================​====================================
    Good Luck!
    Kind Regards,
    Dragon-Fur

  • I have a macbook pro retina display and a gaming mouse and i can't play with it

    I have this gaming mouse not an apple mouse and when i try to play with the mouse i don't move but i can walk with the WASD but with the mouse i can't move and i've had trouble for a while and i really want to know how to fix this can anyone help me, my mac is a macbook pro retina display late 2013.

    Hello abmorgan646
    Check out the article below to try out a few things to resolve issues with the flickering display on your MacBook Pro Retina. You may need to reset the NVRAM, if it does not resolve the issue, then there are links fur further assistance.
    Apple computers: Troubleshooting issues with video on internal or external displays
    http://support.apple.com/kb/ht1573
    Regards,
    -Norm G.

  • Can Video widgets start and stop when entering and exiting the browser viewport?

    I like to use multiple autoplaying/looping video clips on a single page but I need to figure out how to make the videos start only when they enter the viewport on a browser and stop after they exit the viewport. Does anyone know a way to do this?

    I do not know if this can have an affect on it but the videos are being downloaded through multiple computers to a private server and being accessed through the mac. Please let me know what you think.

  • Deleted my /etc/groups and /etc/gshadow and now no mouse and keyboard.

    Hey.
    So a few days ago I updated my system and did something we all know to avoid. I accidently moved the empty .pacnew files over my groups and gshadow files so my entire group layout is out of the window. I am an idiot I know. My mom told me that when I was six. So I am now looking at fixing my system. My biggest problem is that now xorg runs but the keyboard and mouse don't respownd. This isn't a USB problem since I tried using non USB keyboard. In runlevel 3 keyboard works fine.
    Xorg.log says something about input bring used by someone else  so my guess based on the above is that what I need to do is restore my old groups since its probably a group ownership problem. My question is if anyone knows which groups should I restore and how does one go about repairing the Damage? I would be thankfully to anyone who would take the time saving me from my own stupidity.
    Last edited by Greenstuff (2012-08-22 08:03:26)

    This might be the solution. Perhaps I should post my /etc/group file and you can fix yours? I don't know, did you ensure that all your groups have the correct GID?

  • How to start a long running program at system start and stop at login and restart at logoff

    I am trying to mine some crypto currency with my computer. My computer is usually in logged off state, so I want to mine automatically when system is in this state.
    Untill now I have done this:
    At system start, I have scheduled a task to start the mining software
    at login I have scheduled another task to kill the mining process
    Here comes the question: I need to restart the mining process as soon as the user logs off.
    But I couldnt figure out how to schedule a task at logoff, so I decided to use Group Policy Ediotr's Logoff scripts. But the problem is, I can't seem to log off at all, because system seems to be waiting for the "script" to finish, and since it is
    a mining process, it doesn't finish, and the user is never logged off!
    How do I configure windows to resume mining after the logoff?

    Hi!
    I haven't been working much with mining, but you are thinking correctly with using the logon/logoff-scripts.
    The problem is that the process for mining requires a user to be logged on, it runs i user-context.
    So if you in some way can start the process to run in system context, you are good to go. (The mining process) But if this is possible at all I do not know, I think the miners are dependent on a user being logged on.
    Best regards
    Andreas Molin
    Andreas Molin | Site: www.guidestomicrosoft.com | Twitter: andreas_molin

  • My Windows 7 can't find the drivers for a plug and play wireless mouse and keyboard

    I tried it on Mac and a windows desktop it worked instantly. Please help me, what should i do?
    OS X 10.8.4

    The manufacturer is unknown because it is not a branded product, what confuses me is that my mac works with it. I plugged it to a desktop windows and it worked also. I looked for the driver it was using and found it in the windows system 32 folder. I then look if my windows on laptop have the same file/driver and yes it has. But still the problem is it cannot find the driver.

  • Starting and stopping 9ias Infrastructure and Application Server

    I have Oracle9ias R2 Infrastucture and Application running on one machine (bad idea - I know) on Windows 2000. I had to restart the system and of course all the different instances from Infrastructure and Application Server started in the wrong order and now nothing operates at all. (It was fine yesterday - really, it was).
    Could someone please give me a rough guideline on how to start these services, or instances in the right order.
    Much obliged
    William

    Sir,
    Can you help me to do the installation of 9ias rel. 2.
    I installaed 9ias infrastructure on separate m/c.
    But unable to do single sign-on on 9ias server side.
    How to configure it for web applicaions?
    regards

  • Starting and Stopping SAP Systems and Instances on Windows

    Is there a way to automatically stop/start instances on windows at boot time?
    I don't want to have to logon after a reboot and go into the mmc and start the app manually.
    Thanks,
    Dan

    Dan ,
    As Juan said it could cause problems while starting SAP at startup.
    Still if you really want to implement this...
    This is what I have found ... I never tried this but hope this should work.
    1. you must make sure that SAP[SID]_00 service is set to start automatically.
    2. you must edit your SAP START profile and add this line:
    Autostart=1
    3. make sure that the line you added IS NOT the last one in your file. if it is, your added parameter could be ignored.
    to test this out, shutdown SAP and your database, then shutdown the SAP[SID]_00 service. now start it. open SAPMMC to see if you see any starting activity. it should work fine.
    Let us know if it works.

  • I have purchase the Batman trilogy in HD but when I try to download them an error comes out and stops the downloads, and when I hit resume it starts all over again. How can I fix this problem?

    I was downloading the trilogy as we speak and out of the sudden the download stops and it says there is an error. I try and resume the download but it starts all over again.

    Hi tella7,
    If you are having issues downloading purchased content from the iTunes Store, you may find the following article helpful:
    Apple Support: Resolve issues between iTunes and security software
    http://support.apple.com/kb/TS3125
    Regards,
    - Brenden

Maybe you are looking for

  • Can I reuse my iMac G5's hard drive as an external drive?

    The logic board on my G5 (was running Tiger) quit working so I am enjoying a new late 2009 21.5" iMac. The documents were transferred from the drive as a part of the one to one program but I'd like to see other stuff on the drive. I put the old G5's

  • How do i remove the stand

    How do i go about removing the stand? I have no choice but to remove it cos then I can pop it in a backpack and carry it on a plane. someone please help Cheers

  • Vendor master cannot copy to PO (sometimes)

    hi, When convering PR to PO in (MD04), Invoicing Party not found and need manual input.  The same issue found if input vendor code first during PO entry (ME23N).  But sometimes do not have this problem even using same vendor pls advice thanks

  • Duplicate photos on iPad

    Hi I've just upgraded to iOS 7.0.6. When viewing photos using the album tab everything appears fine, if I look at my photos via the photo tab I appear to have duplicates of every photo. Is this something to do with photo stream? If viewing an individ

  • Performace trouble

    So we have ora9 + solaris + v490 + 3* hardware raid (each contain 10 disk). Oracle database and redo log configured to separated raid. If we switch redo log form their own raid to ramdik then this action increase perforamce more than 5 times. It poss