Open start menu through java

Is there any way to open start menu through java application just like when we open start menu by pressing the windows key on the keyboard.
Waiting for urgent response
Thanx
Salman.

Hi Salman,
This is possible in 1.5 in a stright forward way. Following is the code
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import java.awt.Robot;
import java.awt.event.KeyEvent;
public class WindowsStartOpener
public static void main(String[] argv)throws Exception
GraphicsDevice gd = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
Robot robo = new Robot(gd);
robo.setAutoDelay(100);
robo.keyPress(KeyEvent.VK_WINDOWS);
robo.keyRelease(KeyEvent.VK_WINDOWS);
If you are using 1.4 version. You can try with the mouse event methods of Robo class.
It is not possible with the versions earlier than 1.4. In this case you can write a C/C++ program and use JNI to invoke it.
cheers,
Sundar Lal Ch

Similar Messages

  • Can't open start menu or search on build 10061

    This seems to happen after each build update, and it is usually fixed by the app-cache repair
    Get-appxpackage -all *shellexperience* -packagetype bundle |% {add-appxpackage -register -disabledevelopmentmode ($_.installlocation + “\appxmetadata\appxbundlemanifest.xml”)}
    However that isn't working this time.
    In event viewer I'm seeing these type of errors appear each time I try to open the start menu
    "Activation of app Microsoft.Cortana_8wekyb3d8bbwe!CortanaUI failed with error: The operation was blocked by parental controls. See the Microsoft-Windows-TWinUI/Operational log for additional information."
    and
    "Unable to start a DCOM Server: CortanaUI as Unavailable/Unavailable. The error: "346" Happened while starting this command:
    "C:\Program Files\WindowsApps\Microsoft.Cortana_1.4.3.156_x64__8wekyb3d8bbwe\SearchUI.exe" -ServerName:CortanaUI.AppXwbw90g5vtrwjvhq9gjet3rhd0cy7ctte.mca"
    I do use family safety, however the account I am logged on with is a local admin and is a parent account that is not monitored by family safety.
    Another example, if I try to launch the Spartan browser, it flashes up briefly then closes. The TwinUI/Operational log give the "blocked by parental controls" error, followed by an Informational entry saying
    "Activation of app Microsoft.Windows.Spartan_cw5n1h2txyewy!Microsoft.Spartan.Spartan attempted. Execution state: Attempted activation of the app, 7, The operation completed successfully.."
    Any thoughts or suggestions?

    Unfortunately, this happens in spells when someone has never used family safety. Nuking from space (refreshing PC) is not the answer I'm seeking, that's for sure. I bet this one will be patched, or just made obsolete, by the expected new build around mid-week.
    Update: In my case, which is the non-parental-control-caused version of this, it sure looks like it's tied to RAM usage, explaining the seeming randomness of it for me. Through trial and error, I've found that when hitting RAM usage
    slightly higher than 70% (according to Task Manager's figure), the flakiness begins with all things Metro (Start itself, any Metro apps within Start, even the functionality of the clock on the tray) disappear about 1 second after being clicked. So, the workaround
    for now is to keep RAM usage down. Due to RAM leakage over time, this means rebooting more than you otherwise might want.
    Update 2: I think it's at least exacerbated by, if not caused by, not having a dedicated graphics card on the above system, which uses only Intel's onboard HD Graphics 3000. I say this because on a basically identical system--which in terms
    of hardware is only different by the addition of a 1GB AMD graphics card--I'm unable to reproduce the problem.  Both systems are Core i5-2500 with 8GB RAM.

  • Equium A60-692 - Can't open start menu and keyboard issue

    I have a problem when starting my laptop A60-692 and I am not near any service points.
    When I push the power button the screen goes through its start up routine gives it's welcome fanfare loads up my desktop.
    But when I click on the start the start window only flashes up for a split sec and doesn't stay up. If I press the windows key on the keyboard I can then click on the start and the start window will appear and stay on the screen.
    However if I open a program such as note book or internet explorer, the keyboard will not respond and only gives out a cowbell sound when I operate the keyboard. If I click start then shut down and click restart the laptop will shut down and restart then everything works fine!
    It's all very annoying and time consuming. I'struggled with this for a long time, although it was not like this when new.
    Anybody had the same problem or have any advice to give?
    I would be extremely thankful!
    Regards
    Andrew

    Thanks for you input. I have never had a problem with the keyboard once I have carried out a restart.
    I have the problem when I first start and the first boot the key board will not type.
    It will bring up windows such as "help" window when I hit the H key or "tools" window when I hit the T key.
    If I now restart the laptop will shut down and reboot and everything will work perfectly!
    But its such a pain the extra time it takes. this problem has been with me for sometime and I thought that installing the recovery disc that it might get rid of it, but no.
    I arried out a hardware test on the keyboard today and it says that it is working fine.
    I will look at the Bios and see if they appear O.K.
    I will be away for acouple of weeks so it might be sometime before I can get back with any thing further about this

  • Problem with opening various text files in notepad through java

    Hi friends,
    I need to open any .txt file in notepad by running the code in Java.I could open the notepad through java but not a perticular file.I dont even want to hard code my program that only one perticular file will open through it.I want it generalised...if anyone could help me,it would be really nice...
    thanks
    Vishal.

    If your program opens notepad I'll delete it because I set UltraEdit as my default editor. So if you already must use system-specific code, how about grabbing a Windows manual to find out how to use the editor registered for these files? (Hint "start").

  • Accessing RUN through java programming

    Sir,
    i need to develop a java application t access "run" in start menu.How can i access the run menu through java programming.?I want to run the program in the run command when we input command through the java program..please help me..if you have the code palese send it tio me please..........

    But I cant access the drives for eg: I wrote c:\programfiles as input but i got an exception like this
    error=3
    at java.lang.ProcessImpl.create(Native Method)
    at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
    at java.lang.ProcessImpl.start(ProcessImpl.java:30)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
    at java.lang.Runtime.exec(Runtime.java:591)
    at java.lang.Runtime.exec(Runtime.java:429)
    at java.lang.Runtime.exec(Runtime.java:326)
    at ex.main(ex.java:10)
    how can correct this error...

  • Problems with 10049- start menu remains the same, flash crashes, spartan crashes

    I updated from 10041, I cannot open start menu at first. After I restarted several times, I can open it but it seems to be the same with old version. I tried Spartan using the search function, and it always crash the time it opens.
    Another problem I found is that I cannot use flash in all programs, it always said it crashed.
    Additionally, the system becomes really slow compared with older versions.
    Thank you for your help

    Hi whOWe,
    Please submit what you have encountered through Windows Feedback.
    Take a try with the command suggested by team zigzag, run the following command first:
    DISM /Online /Cleanup-Image /RestoreHealth /source:WIM:X:\Sources\Install.wim:1 /LimitAccess
    Where the X: is the mounted drive using the downloaded Windows 10 build 10041 ISO ifle.
    See this thread for reference:
    The "new" dism and sfc  methods do not work
    for me
    Best regards
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • How to get deleted programs in the start menu?

    Hi,
    I foolishly deleted (by accident) my all programs folder on the start menu.
    This has emptied the programs folder on the start menu through windows explorer as well.
    I still have access to all of my programs by searching for them or by going through program files. How can I rebuild my start menu back to the original WITHOUT reinstalling windows or anything like that.
    Unfortunatly, I can't do a restore because it is set to do a clean up of all old restore points, and it did this about 5 minutes before the problem occured.
    PLEASE HELP ME!!!
    Tom

    Hi,
    Is there any way of getting all of the links back without having to do them manually.
    There must be a way of restoring or forcing the computer to research for all of the installed programs on the "Vista C" drive. I have tried going through the RegEdit but that hasn't helped at all. The CMD code that I got off another forum doesn't work either.
    Thanks for your reply though
    Tom

  • Open file dialog through JSF

    can any one tell me how to display a open file dialog through java Server Faces

    Not here.
    This forum addresses Sun Jave Enterprise Messaging Server, not Java programming. We're not expert with Java.

  • How to open Internet explorer from java

    how can one open internet explorer through java and also displays the desired webpage in it.

    p = r.exec(runie);Whenever you use exec on a Runtime object, you need to get an InputStream off the System.err output. If this InputStream is not absorbed in some way, then it can stop the process. The process may not reach its destined finish point. The Java Documentation does not inform you of this, though experience will give you some unanswered questions, such as 'Why does this process never reach the finish point'.
    James

  • Firefox will not open from the start menu or the taskbar, but WILL open when called from Windows Live Messenger

    This started a couple weeks ago, but doesn't seem to coincide with any other installations or reconfigurations, so I'm having trouble getting at the root cause.
    The first time I run Firefox after installing, it runs fine (complete with a full list of add-ons.) If I then close FF and try to start it from the task bar or start menu, nothing happens. I've tried starting in safe mode (shift+FF), but get the same result. I've restored FF to all the default settings, disabled all my plugins and add ons, but no change.
    The really odd part is that if I click the 'Inbox' link in my Windows Live Messenger, FF opens perfectly. This made me think that it was my homepage causing the issue, but A: I can go to that page without problems once FF has started from WLM, and B: even if I use the FF default homepage or google.com, I get the same problem. Furthermore, if I restart FF from within FF (like after I disable/enable an add-on), it will also start properly.
    No crash report is generated by FF when it fails to load, but Windows catches the problem in it's event log. I've pasted the contents of that record at the bottom in the hopes that someone can take a stab at what's wrong.
    Finally, I've already run through the online crash help, but everything is either not related (since FF will start if called indirectly) or has already been prevented (absolutely no add-ons are running at the moment.)
    Event View Crash Report:
    Log Name: Application
    Source: Application Error
    Date: 06/06/2011 7:29:50 PM
    Event ID: 1000
    Task Category: (100)
    Level: Error
    Keywords: Classic
    User: N/A
    Computer: UberHal
    Description:
    Faulting application name: firefox.exe, version: 2.0.1.4120, time stamp: 0x4da6a9fb
    Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
    Exception code: 0xc0000005
    Fault offset: 0x8d394fd6
    Faulting process id: 0x1aec
    Faulting application start time: 0x01cc24a1a155376a
    Faulting application path: C:\Program Files (x86)\Mozilla Firefox\firefox.exe
    Faulting module path: unknown
    Report Id: df4396d9-9094-11e0-8761-0026180e006b
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    <System>
    <Provider Name="Application Error" />
    <EventID Qualifiers="0">1000</EventID>
    <Level>2</Level>
    <Task>100</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2011-06-06T23:29:50.000000000Z" />
    <EventRecordID>31380</EventRecordID>
    <Channel>Application</Channel>
    <Computer>UberHal</Computer>
    <Security />
    </System>
    <EventData>
    <Data>firefox.exe</Data>
    <Data>2.0.1.4120</Data>
    <Data>4da6a9fb</Data>
    <Data>unknown</Data>
    <Data>0.0.0.0</Data>
    <Data>00000000</Data>
    <Data>c0000005</Data>
    <Data>8d394fd6</Data>
    <Data>1aec</Data>
    <Data>01cc24a1a155376a</Data>
    <Data>C:\Program Files (x86)\Mozilla Firefox\firefox.exe</Data>
    <Data>unknown</Data>
    <Data>df4396d9-9094-11e0-8761-0026180e006b</Data>
    </EventData>
    </Event>
    Log Name: Application
    Source: Windows Error Reporting
    Date: 06/06/2011 7:29:56 PM
    Event ID: 1001
    Task Category: None
    Level: Information
    Keywords: Classic
    User: N/A
    Computer: UberHal
    Description:
    Fault bucket 2009598108, type 5
    Event Name: BEX
    Response: Not available
    Cab Id: 0
    Problem signature:
    P1: firefox.exe
    P2: 2.0.1.4120
    P3: 4da6a9fb
    P4: StackHash_0a9e
    P5: 0.0.0.0
    P6: 00000000
    P7: 8d394fd6
    P8: c0000005
    P9: 00000008
    P10:
    Attached files:
    C:\Users\MC\AppData\Local\Temp\WERD47E.tmp.WERInternalMetadata.xml
    These files may be available here:
    C:\Users\MC\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_firefox.exe_966114b87f1ef26bf245bee89f49ab1bb58152f2_0c65eb58
    Analysis symbol:
    Rechecking for solution: 0
    Report Id: df4396d9-9094-11e0-8761-0026180e006b
    Report Status: 0
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    <System>
    <Provider Name="Windows Error Reporting" />
    <EventID Qualifiers="0">1001</EventID>
    <Level>4</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2011-06-06T23:29:56.000000000Z" />
    <EventRecordID>31381</EventRecordID>
    <Channel>Application</Channel>
    <Computer>UberHal</Computer>
    <Security />
    </System>
    <EventData>
    <Data>2009598108</Data>
    <Data>5</Data>
    <Data>BEX</Data>
    <Data>Not available</Data>
    <Data>0</Data>
    <Data>firefox.exe</Data>
    <Data>2.0.1.4120</Data>
    <Data>4da6a9fb</Data>
    <Data>StackHash_0a9e</Data>
    <Data>0.0.0.0</Data>
    <Data>00000000</Data>
    <Data>8d394fd6</Data>
    <Data>c0000005</Data>
    <Data>00000008</Data>
    <Data>
    </Data>
    <Data>
    C:\Users\MC\AppData\Local\Temp\WERD47E.tmp.WERInternalMetadata.xml</Data>
    <Data>C:\Users\MC\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_firefox.exe_966114b87f1ef26bf245bee89f49ab1bb58152f2_0c65eb58</Data>
    <Data>
    </Data>
    <Data>0</Data>
    <Data>df4396d9-9094-11e0-8761-0026180e006b</Data>
    <Data>0</Data>
    </EventData>
    </Event>

    I have exactly the same issue. After FF upgraded on its own to version 5, it won't open from start menu, taskbar, desktop icon, or even by pressing firefox.exe in program files directory. It does so by pressing a link at msn messenger, inside Outlook etc.
    Disabling all addons, didn't help. Moreover, I can't start FF in safe mode or start profile manager (Start > Run> firefox.exe -ProfileManager).
    OS: Windows 7 64bit
    Windows Event Viewer entry details:
    Faulting application name: firefox.exe, version: 5.0.0.4183, time stamp: 0x4df95302
    Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
    Exception code: 0xc0000005
    Fault offset: 0x8c724fa6
    Faulting process id: 0xc0c
    Faulting application start time: 0x01cc37fe2fae7e8b
    Faulting application path: C:\Program Files (x86)\Mozilla Firefox\firefox.exe
    Faulting module path: unknown
    Report Id: 6e7f03eb-a3f1-11e0-8f4d-a4badb0238f6

  • Firefox does not load up, open up when I click the icon, or when I go to firefox using the start menu.

    I downloaded firefox 4 and used it for a few days and then it ceased to open up when I clicked the icon or went through the start menu. I uninstalled and reinstalled it and it still does not open.

    Have you tried opening in Safe Mode - Hold down the Shift key as you double click.
    Your Ask Toolbar is a known problem.
    If Safe Mode works you can work your way through this -
    https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes

  • Reader 10.1.3 keeps reinstalling when I click the icon to open it in my start menu

    I have reader 10.1.3 installed on two different computers.  Opening PDFs in a browser window is no problem.  But when I cick the start menu icon to open reade 10.1.3 I get a message saying installing reader 10.1.3 after a while reader opens after which it will open ok on the start menu icon.  However, several days later when I try to open reader from the start menu icon I go through the same install process all over again, on both computers.

    The fact that you cannot terminate the process from Task Manager is very strange!
    It seems to indicate that Reader is waiting for some resource, and cannot even terminate without it.
    If that would happen to me, I would try to observe the Reader process (AcroRd32.exe) using Process Monitor.  Hopefully that would give some clue what resource it is waiting for.

  • I was running firefox beta 9,selected about firefox, which then updated to 10, and when opening 10, began to update to version 11. now the desktop icon is beta 9, start menu beta 10, and version 11 is installed. how do i correct this problem?

    after updating from beta 9, to 10, to11, my desktop icon still says beta 9. The start menue has beta 10, and will not allow me to select open file location, which when accessing through programs(x86) is listed as beta 9. When checking uninstall programs, beta 11, is listed.
    how do i remove references to beta 9 and 10?

    Mr. Willener,
    Thank you for your reply.
    I did un-install and then re-install per the Adobe recommendations which are what you listed in your reply.  The problem remained until I did a MS Windows restore to a restore point a month or so ago.  The IE problems vanished.  However, now I'm using an outdated and unsupported version that is lower than most of the web pages require for their sites, at least the ones I want to view (they all say I need to upgrade my Flash Player which, when I did, put me in this fix).
    As to:
    Pat Willener wrote:
    Usuallyexasperated wrote:
    it requires a...... 2.33 Ghz processor!
    You can safely ignore that requirement; it is simply not true.
    Why would Adobe post a system requirement of 2.33 Ghz for 11.2 if it simply were not true?
    Message was edited by: Usuallyexasperated

  • Adobe Bridge CC (64 bit) shows in my Start menu but will not open.

    Adobe Bridge CC (64 bit) showed installed on my Start menu and on the apps CC section.
    I cannot open Bridge from either the Start Menu or the File Menu on CC PS CS6.
    I'm on Windows 7, 64 Bit.
    I also can no longer use Print Maintenance functions on my non CC PS CS5 version.

    Make sure you do not have a previous version of Bridge running in the background.  Only one version can run at a time.
    Open Task Mangaer and click on processes tab.  Look for and close and bridge.exe.

  • I keep getting the message, "Windows cannot find 'c:\Program Files (x86)\Mozilla Firefox\firefox.exe'. Make sure you typed the name correctly, and then try again." I get it when I either try to open it from the Start menu or from the desktop icon.

    I've just installed Firefox on my laptop and keep getting the message, "Windows cannot find 'c:\Program Files (x86)\Mozilla Firefox\firefox.exe'. Make sure you typed the name correctly, and then try again." I get this message whenever I either try to open it from the Start menu or from the desktop icon. I've never gotten it to work and even uninstalled it and then redownloaded it and still cannot get it to open. Any help would be greatly appreciated!!!!

    Are you installing from the official site? http://www.mozilla.com/firefox
    If you use Windows Explorer (My Computer) to check that path, is the Mozilla Firefox folder there? That is the normal installation location, but I think it's worth checking.
    If the folder isn't there or firefox.exe is not in it, I wonder whether some other software might be interfering. You might want to run some supplemental security scans. These two tools are highly regarded:
    Malwarebytes Anti-malware : http://www.malwarebytes.org/products/malwarebytes_free
    SUPERAntiSpyware : http://www.superantispyware.com/

Maybe you are looking for

  • How to change number range in solution manager

    Hi all, Recently we had upgrade of ST patch, after that our support message sequence got changed and now support messages are getting created starting from 1. We want to change the sequence(number range). how/where can i change the sequence of the su

  • HT4946 how to back up 2 iPhone different number same family plan

    hey my roommates and her daughter have 2 iphone under the same plan with ATT  with 2 differents number  they want to back up their phone on my laptop is macbook pro 10.9.1 theirs adress book got all mess up they need to divide them  so they ask me ho

  • Question on Start up disk

    I was downloading a movie onto my G4 laptop and it stopped about half was through and posted a notice that "start up disk is almost full" and it gave instruction to empty the trash and also delete some files. So I took some TV shows off and emptied t

  • Problem with Full Screen Caller App on my Nokia 67...

    Hi, am having some trouble with the Full Screen Caller App, that I downloaded yesterday from the Ovi Store.... It seemed to work ok, but is inconsistent - when texts come through, some say who the text is from (& the image associated with that contac

  • Any other options for load balancing

    hello everyone, i have been unsuccessful to implement load balancing effectively. have you come across any such problems with load balancing not working as expected? are there any othner options to implement load balancing? thank you in advance