Close a window with api

is it possible to close a window like the file - new - window in word??
i want to close a error message from another program
thanks
Message Edited by hmuehlbacher on 04-28-2006 03:03 AM

Hi,
You generaly don't want to close the window, but the process.
If you close the window, the program will still be running, and it will be impossible to close it, bcause it has no window! You'll have to use taskmanager...
So you need to search all processes, select the correct one by name, and kill the process. If you have multiple word windows, I don't think you can kill just one window, but I'm not sure. All word windows might run under the same process...
Try this one:
http://forums.ni.com/ni/board/message?board.id=170​&message.id=94159&query.id=114041#M94159
Or search the forum for "kill process". There seems to be a way using the system exec.
Regards,
Wiebe.
"hmuehlbacher" <[email protected]> wrote in message news:[email protected]..
is it possible to close a window like the file - new - window in word??i want to close a error message from another programthanksMessage Edited by hmuehlbacher on 04-28-2006 03:03 AM

Similar Messages

  • How to close open windows with ios7, How to close open windows with ios7

    How to close open windows with ios7, How to close open windows with ios7?

    Guess they thought we needed more exercise so now we have to swip them to close.....miss iOS6. My eyes are blurry now after looking at my phone, and my arms are tired from swipping lol

  • W/zoteroinstalledwedo a window,open() followed by a window.close() in tha window. Zotero remains and the window is still open. How do I close the window with zotero present in FF w/o disabling zotero?

    the js function to window.open() is in pageAA on a tab.
    We click the form or link to open the popup to run a video.
    We have a close button on the popup window.
    When that is clicked the window.close() js is executed on that page leaving Zotero present and the popup still open.
    We've tried using close() window.close() name.window.close() and
    all fail the same way.
    Short of disabling Zotero is there a way to close the popup in FF and any other addons with one shot?

    Thank's but still no fix.
    In safe mode everything works.
    Without Zotero - everything works.
    When the popup is loaded with Zotero, the tab shows a constant "Loading" with the circular in process icon.
    The Zotero icon shows to the left of the tab.
    If I right click on Zotero and close it, the close() js works properly
    Is there a way to do a window.open() with:
    A. no tabs -or-
    B. block all add on's -or-
    C. to kill an add on
    before doing the close()?

  • Close flashfield-window with javascript

    is it possible to close a not fixed flashfield-window with the javaScript.

    Hi,
    yes it is. It needs just a single line of JavaScript.
    FlashField1.ui.exObject.setState("deactivated");

  • How to close a window with a jbutton?

    hi all!
    im have a login box created with jframe,
    what i want is when i press the submit button and if authentication is success
    i'd like to close the jframe of my login box and open a new window.
    how can i close a jframe window with a jbutton?

    to close the window you can add an anynomous class like this:
    yourButton.addActionListener(
          new ActionListener() {
                  public void actionPerformed( ActionEvnet e ) {
                        System.eixt(0);
    );That's all Buddy, Enjoy

  • How to close browser window with AS2

    I'm currently working with a flash movie that opens up an IE browser to an external link.
    Since I'm working with a presentation that plays automatically after a few seconds and keeps loading new IE browsers with different links, I was wondering if there was a way with AS2, i can have flash close the IE window it opened?

    I need to close the IE window WITHOUT the use of a button. I need
    to have flash close the IE window it opens after a couple of frames. thanks in advance

  • Close Browser Window with view button element when view embedded into fpm

    Hi,
    is it possible to build a button into a component view which is embedded into a fpm to close the browser window?
    tried to build a exit plug within the view/window of my component. But nothing happened. the window stays open
    Maybe is it an option to fire the fpm close plug of the fpm from my component view embedded into the fpm?
    Hope you can help me.
    Using the close button of the fpm is not an option because the window should automaticaly close when clicking on a button embedded into my component view.
    Kind Regards
    Rico

    Hello,
    one more question.
    Is it possible to change the method. so that the fpm opens within the same browser window instead of a new one?
    Maybe is there a solution with the portal?
    This is the Method to create a new Shopping cart. This opens a new browser window.
    method /SAPSRM/IF_CLL_DOM_SCW_FIN~CREATE_NEW_SHOPPING_CART.
    data:
           LV_TASKCONTAINER      TYPE REF TO /sapsrm/if_cll_task_container,
           ls_obn_components     type /sapsrm/s_wd_ui_obn,
           lo_navigation_service TYPE REF TO /SAPSRM/IF_CH_WD_NAVI_SERV.
    try.
      LV_TASKCONTAINER = mo_parent_bo_mapper->get_task_container( ).
      CALL METHOD lv_taskcontainer->GET_NAVIGATION_SERVICE
        RECEIVING
          RO_NAVIGATION_SERVICE = lo_navigation_service.
      ls_obn_components-obn_system = 'SAP_SRM'.
      ls_obn_components-object_type = 'sc'.
      ls_obn_components-operation = 'shop'.
      CALL METHOD LO_NAVIGATION_SERVICE->LAUNCH_TARGET
        EXPORTING
          IV_TARGET_TYPE          = /sapsrm/if_ch_wd_navi_serv_c=>gc_target_type-obn
          IS_OBN_COMPONENTS       = ls_obn_components
          IV_OBN_PARAM_CLASS      = /sapsrm/if_ch_wd_navi_serv_c=>gc_param_class-taskcontainer
          IV_OBN_PARAM_METHOD     = 'GET_OBN_PARAMETERS_RM'
      catch /SAPSRM/CX_PDO_ERROR_GEN.
    endtry.
    endmethod.

  • Adobe photoshop cc 2014 won't close window with unsaved file

    Recently installed update to Photoshop via creative cloud. Photoshop works great but for some reason I am unable to close a window with an unsaved project. Pressing command-w or going to file close doesn't do anything. As soon as I save the file I can close the window or quit photoshop. Is this in the preferences? Please advice.
    thanks

    I'm having this same issue.  Can't close an unsaved file that has been opened, even if it is completely unedited.  When an unsaved file is present, I can't quit Photoshop, either.
    I'm on OSX 10.7.5  (yes, I know...it's aged), Photoshop CC.  Plenty of memory and disk space, so that's not the issue.
    Any ideas?  Thanks!

  • Prevent close window with Tabs present hack?

    I can't seem to find the reference but I came across in the last month or so, a hack/mod/script that prompted a dialogue box to pop up if you ask Safari to close a window while there are other tabs present. Does anyone know of this too? I'm hoping it will work as well when you accidently hit Command Q when you are meaning to hit Command W. (I lost the dozen or more pages of interest out of a recent 50-80, after hours of research) I guess another option would kill the Command Q stroke in Safari, but I'm not sure if it is a global thing or not.
    I'll of course make the suggestion to Apple, but in the mean time any ideas?

    Hi John,
    Have a search for Taboo at macupdate.com. That will give you a warning when you try to close a window with several tabs on it.
    For command-Q remapping, have a read of this:
    iBod, "changing the default shortcuts ?" #2, 12:24pm Sep 30, 2005 CDT

  • Close external window in NW04s

    Hi,
    We are using the following API in order to close an external window: TaskBinder.getCurrentTask().getClient().sendRedirect("javascript:window.close();",0);
    After closing the window, the object in the backend system remain locked (and not released). it seems that the session remains alive and hence the object is locked.
    If we close the window with the X of the window, the object of the backend is released as required.
    As suggestions?
    Thanks,
    Aviad

    Hi AVIAD,
    Check this.
    Step 1: Take a context attribute(WindowInstance) of type “com.sap.tc.webdynpro.services.session.api.IWDWindow”.
    Step 2: Take a CloseButton in the View(DisplayView) that is used as a embed View of external Window.
    Step 3:
    When you are calling the external window set “WindowInstance”
    public void onActionDisplayExternal Window(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionDisplayResult(ServerEvent)
         IWDWindowInfo windowInfo =(IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows(
         "DisplayWindow");
    //        create the Window
         IWDWindow window = wdComponentAPI.getWindowManager().createWindow(windowInfo, true);
         window.setWindowPosition(WDWindowPos.CENTER);
         window.setTitle("WindowTitle");
         window.setWindowSize(100,100);
    //        Save WindowInstance in Context
         wdContext.currentContextElement().setWindowInstance(window);
    //        and show the window
         window.show();
         //wdThis.wdFirePlugInDisplay();
        //@@end
    Step4: Associate action “CloseWindow” with the “CloseButton
    ” and destroy the window instance inside it.
      public void onActionCloseWindow(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionCloseWindow(ServerEvent)
       IWDWindow window = wdContext.currentContextElement().getWindowInstance();
       window.destroyInstance();
        //@@end
    External Window
    Re: Exit button error...
    Regards,
    Mithu

  • [dwm] can not close irssi window when opened in a xterm class

    Hello guys,
    I know the subject title is not really meaningful but the problem is a bit odd.
    When I start irssi in a opened xterm window I can easily close it via modkey-shift-c. To open it directly in a specific tag I created a new class for irssi and defined in config.h how to deal with that class.
    the script called "irc"
    #!/bin/bash
    xterm -class irc -e irssi &
    and the relevant part of config.h
    static const Rule rules[] = {
    /* class instance title tags mask isfloating monitor */
    { "irc", NULL, NULL, 1 << 1, False, -1 },
    When I then try to close the window with modkey-shift-c I just get the message "Irssi: Reloaded configuration".
    I don't really know why this happens. I defnied also a seperate class for alsamixer and closing this is working without any problem.
    What could I try to solve that?
    Best regards.
    Last edited by orschiro (2010-01-22 21:29:02)

    What key do you have assigned as modkey in dwm?
    It seems that modkey+shift+c is issuing the /RELOAD command in irssi rather than closing the window.  The modkey is superceded by whatever appilcation is running in the terminal. 
    I run irssi in xterm and modkey+shift+c closes it without issue.

  • Can't close Safari windows

    I can close tabs, but when I get to the final tab, I cannot close the window. Neither can I close any window with multiple tabs open, either by pressing the red close button or with CMD-W. I can minimize the window, however. I've tried resetting Safari and deleting prefs, all to no avail. Any suggestions would be appreciated.
    Thanks,
    Saul

    HI Saul and welcome to Apple Discussions...
    First, try restarting your Mac. If that doesn't help...
    Your profile indicates you are running 10.4.11 with Safari 3.0.4
    Tiger 10.4.11 minimum requirements for Safari is Safari 4 with the 2009-002 Security Update installed. Click Safari/About Safari to make sure which version of Safari you are runnig.
    From the Safari Menu Bar, click Safari / Empty Cache.
    Go here for trouble shooting 3rd party plugins or input managers which might be causing the problem. Safari: Add-ons may cause Safari to unexpectedly quit or have performance issues
    Web pages now include a small icon or 'favicon' which is visible in the address bar and next to bookmarks. These icons take up disk space and slow Safari down. It is possible to erase the icons from your computer and start fresh. *To delete Safari's icon cache using the Finder, open your user folder, navigate to ~/Library/Safari/ and move this file "webpageIcons.db to the Trash.*
    Carolyn

  • Confirmation from Safari when you close a window on Mavericks

    Hi all,
    I was wondering if it was possible to have like a little warning from Safari when we quit a window on this application. For example: Are you sure you want to quit this window?". Firefox has this application when you close a window with several tabs.
    I looked in the preferences, but i haven't found it. I know this kind of warning was present on the elder versions of Safari, so why not now?
    Hope you can help,
    Tim
    I have a MacBook Pro, OS X Mavericks (10.9.2) and the Safari 7.0.2

    Actually, you're right. After a little investigation, it was the way I was using the gui that was making this happen. During debuging (using Netbeans) I would open the dialog window then click on netbeans to check the console for a couple System.out.println()'s I put in the code. Then on closing the Dialog window Netbeans would be the next window selected by the OS and would appear over the original JFrame. D'oh! Just sillyness on my part imagining problems for myself.
    I guess what I was looking for was that when I close the dialog window that the OS would focus to the parent JFrame instead of the previously viewed application.
    Thanks!

  • Okay, i have 2 bugs with maverick.  First, when I delete a file within a window, the files deletes but the preview doesn't delete until I close the window and reopen it.  Second, I work on a network of computers and the search feature is now buggy...

    Okay, i have 2 bugs with maverick.  First, when I delete a file within a window, the files deletes but the preview doesn't delete until I close the window and reopen it.  Second, I work on a network of computers and the search feature is now buggy...  When I search for a file, A) it asks me if it's a name, or it wont produce anything, and B), its slower than in prior OS versions and in some instances I have to toggle to a different directory and go back to my original directory in the search: menu bar or the search wont produce anything...  Very buggy. 

    It appears to me that network file access is buggy in Maverick.
    In my case I have a USB Drive attached to airport extreme (new model) and when I open folders on that drive they all appear empty. If I right click and I select get info after a few minutes! I get a list of the content.
    It makes impossible navigate a directory tree.
    File access has been trashed in Maverick.
    They have improved (read broken) Finder. I need to manage a way to downgrade to Lion again.

  • When one window containing 1 tab is closed, the other window with several tabs closes also

    I have a set of web pages that reproducibly causes Firefox to act incorrectly. When Firefox is first started I click the "Restore previous desktop" button. Then I have 2 Firefox windows. The first to open has 6 tabs; the second has 1 tab. When I close the 2nd window (with 1 tab), it also closes Firefox completely with no error message. When I run Firefox again, "Restore" creates both windows exactly as they were before.
    I don't know yet if the actual URLs make a difference, but here they are anyway:
    '''''Window 1:'''''
    https://www.google.com/accounts/ServiceLogin?service=mail&passive=true&rm=false&continue=https%3A%2F%2Fmail.google.com%2Fmail%2Fu%2F0%2F%3Fshva%3D1%26ui%3Dhtml%26zy%3Dl&bsv=llya694le36z&ss=1&scc=1&authuser=0&ltmpl=default&ltmplcache=2&from=login#inbox
    http://branamsmile.com/gum/?gclid=CLepiIaAhqkCFVJ25QodSyk1nw
    http://www.google.com/search?hl=&q=root+viewsonic+g+tablet&sourceid=navclient-ff&rlz=1B3GGLL_enUS412US412&ie=UTF-8&aq=0&oq=root+viewsoni
    ***** NOTE THIS TAB IS PROBLEMATIC *****
    When I press Alt+D, Ctrl+C, and Ctrl+V it into this comment box, I get
    '''woot'''
    When I look at the actual contents of the web page being displayed, it is the verizon wireless rebate page:
    '''www.verizonwireless.com/rebates'''
    The page has definitely finished being rendered (the refresh icon is displayed after the url "woot"), but the URL does not match the page. The URL displayed is not even in its proper form (i.e., www.woot.com).
    Remember that this page was RESTORED by Firefox from a previous session. It is as if I was on that tab at verizon, tried to go to woot.com by typing "woot" (which would of course bring up a search rather than the web page), DIDN'T PRESS ENTER, and Firefox is duplicating that entire sequence.
    ********* END PROBLEMATIC *************
    chrome://foxtab/content/newTabMessage.html
    https://www.bankofamerica.com/Control.do?page_msg=signoff&body=signoff
    '''''Window 2:'''''
    http://www.freewaregenius.com/2011/06/01/the-best-freeware-file-manager-a-comparative-analysis/
    With this exact set of windows and tabs, as restored by Firefox in a brand new instance of it, double-clicking the red Firefox in the top left corner of the 2nd window causes both windows to close.
    I wish I could save this configuration so I could always reproduce the error, but I need my computer :)

    You can check for problems with the sessionstore.js and sessionstore.bak files in the Firefox Profile Folder that store session data.
    Delete the sessionstore.js file and possible sessionstore-##.js files with a number and sessionstore.bak in the Firefox Profile Folder.
    *Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost, so you will have to create them again (make a note or bookmark them).
    *http://kb.mozillazine.org/Multiple_profile_files_created

Maybe you are looking for

  • Hard Disk Drive not Recognized as Startup Disk

    Hi: I am an experienced Mac user, and have been for 20+ years. But I need a little help. I recently purchased a Western Digital 'Caviar Green" SATA internal 3.5" disk drive (model number WD15EARS-00Z5B1). I installed it into my Mac Pro as I have done

  • I am trying to connect my HP Officejet 6500a to my Acer 3503WLMi laptop.

    I am running Windows XP and think it may work with ePrint. I can,t  find where to go to get the app for ePrint?  I,m not very switched on when it comes to this sort of thing. Somebody PLEASE help me

  • No sound from left speaker headphone out

    Suddenly no sound coming from left speaker through headphone output only. Records in stereo plays in stereo but no sound on left. Tried all the usual suspects ....no luck.  Any suggestions

  • Screen starts dark then gets brughter.

    Hey all. I've had my iBook for about 3 months and lately I've noticed that my screen is much darker when I boot-up or awake my machine. It only takes about 30 seconds to return to normal. I usually run my laptop with the brightness down 3 or 4 notche

  • Podcasts app asks for cellular data even if the podcast is already downloaded

    When playing a podcast without a wifi access, the Podcasts app asks for celluar data access. This is even for podcasts that have already been downloaded and should not require streaming.If I do not provide cellular data access, then the podcast canno