Screencapture of a specified window

Hello,
Can anyone help me figure out a way use the screencapture command to take a screen capture of a specified window with out take a screen capture of the entire desktop or interactively.
Specifically here is what I am trying to do:
I have a 6 monitors with many different things going. I always have one Safari page open that displays charts and graphs that are displayed in Flash. Because most of the page is a Flash movie, there is no way I can think of to print that specific Safari page to a file without using screencapture. Plus, I need this to be automated.
Does any one know of a way to accomplish this? As always, thank you in advance for any help.
iBook G4   Mac OS X (10.4)  

Since I am still getting some follow-up on this, I will consider it answered. I took several tips from people on this thread as well as others on related Applescript threads. Here is what I did, just in case anyone else needs to know.
I made the monitor with the Safari page I wanted to capture my primary monitor. Then I just used the very nice screencapture command that I was inquirying about in this thread, to capture the screen. Next I used an applescript to change the URL of the Safari page so that I could screencapture another Safari page with a flash movie. I used an automator action to download other non-flash Safari pages as PDFs and then combined them all with the built in automator action.
Even though this is the UNIX forum here is the applescript I used and a link to the Automator action just in case anyone ever needs any of this info. In the end I used the UNIX command screencapture, Applescript and Automator to get the job done. Thank you for all the help!
tell application "Safari"
-- get reference to document by url
set d to first document whose URL is "someurl"
set URL of d to "newURL"
end tell
http://www.apple.com/downloads/macosx/automator/downloadurlsaspdfs.html

Similar Messages

  • The system cannot find the file specified.Windows sockets error code:2.

    Hi All,
      I am on MDM 5.5 SP6.
      I am getting the following error message when trying to logging in to the DM.
    The system cannot find the file specified.Windows sockets error code:2.This application will now exit.
    Runtime Error :
    Program C :\Program Files\SAP MDM 5.5\Data Manager\Datamanager.exe
    R6025.
    -Pure virtual function call.
    And in console also the MDM server is stopped after getting the above error message.
    Can anybody tell me what could be the problem?
    Thanks & Regards
    Sireesha.

    Hi Sireesha,
    According to me, there can be 3 problems,
    1. Kindly check whether the MDM server is stopped. If it is, then restart the MDM Server and Load the repository with Update indices.
    2. If this error is coming with every repository, the problem will be either in the Version mismatch of the Server and the GUI's you are using. Kindly ensure that the versions for the MDM server and the MDM Gui's Match.
    3. If only Data manager Client is giving the problem, then you can un-install and install the DM GUI again.
    Along with this, please refer to the link below :
    [[The system cannot find the file specified.Windows sockets error code:2.;]
    Hope it helps.
    Thanks and Regards
    Nitin jain

  • GPO don't run specified windows applications doesn't work to in win 8.1. any ideas why?

    GPO "don't run specified windows applications" doesn't work to in win 8.1. any ideas why?  it is enabled and list of progs is entered however I can still run all progs on list.  This is a local machine not on a domain.  I must
    have this work to disable games, IE, MSpaint, etc.  Computer has been restarted since enabling the GPO and also have enforced the GPO via CMD prompt.  worked fine on windows 8 and 7.

    Any success ?
    Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
    the thread.

  • I keep getting this message "A dublicate file name was specified Windows"

    I've tried everything, this has been going on for months, and now I really need help.
    I just bought an album on itunes, had to send it to myself as a gift, to make it work. It did, but now I can't download it, because I keep getting this error: "A dublicate file name was specified".
    I'm using windows 7.
    I really hope someone can help me. The support wasn't very helpful....

    Hmm, I'm most familiar with that message in the context of syncing devices when it usual means a problem with the iPod Photo Cache. Any chance of a screenshot of the error message? What exactly do you do before it appears?
    Also try this post from b noir, he seems to know most about quirkly iTunes for Windows installs. It may be we need to track down another of his posts that covers how to completely remove iTunes and all other traces of Apple software before reinstalling.
    tt2

  • Powershell, Open Explorer.exe at a specified window location and specified size

    Is it possible for powershell to open explorer.exe at a specified location (i.e. top 0 left 0) and a specified size (i.e height 400, width 600)? There are a number of options for IE but (that I can see or work out none of there transpose into the File
    Explorer (also none of the properties (membertype) fit with location or sizing ).

    This is not a script question but is a question about how to use Windows programs.
    Search for "Explorer command line"
    ¯\_(ツ)_/¯

  • How to screencapture CONTENTS of a window, without title bar?

    I've been trying to find a solution to doing a screen capture but NOT the window title bar, just the CONTENTS of the window. For example, in Photoshop, I only want the image IN the window, not the bits with the 3 coloured blobs in the upper left of all windows and the document title
    All the references I've foiund talk about capturing the wndow, but no-one talks about the contents of the window.
    Am I trying to invent a wheel here?
    Any advice gratefully received.

    Are you asking about screenshots in general? You have three choices: the entire Mac's screen, an entire window including the title bar, or a selection created by dragging a selection rectangle.
    http://support.apple.com/kb/PH11229
    To take a screenshot for posting on this site hold ⌘ Shift 4 to create a selection crosshair. Click and hold while you drag the crosshair over the area you wish to capture and then release the mouse button. You will hear a "camera shutter" sound. This will deposit a screenshot on your Desktop.
    If you can't find it on your Desktop look in your Documents or Downloads folder.
    When you post your response, click the "camera" icon above the text field.
    This will display a dialog box which enables you to choose the screenshot file (remember it's on your Desktop) and click the Insert Image button.
    ⌘ Shift 4 and then pressing the space bar captures the frontmost window.
    ⌘ Shift 3 captures the entire screen.
    Drag the screenshot to the Trash after you post your reply.

  • Geturl in specified window

    I know how to use the geturl to open up a web page, however,
    it opens outside of my flash site.
    I would like to create a window in my flash site which is
    coded to open the geturl.
    How would i go about doing this?
    Thanks in advance

    Tramaine2004 wrote:
    > I know how to use the geturl to open up a web page,
    however, it opens outside
    > of my flash site.
    > I would like to create a window in my flash site which
    is coded to open the
    > geturl.
    > How would i go about doing this?
    >
    > Thanks in advance
    in your flash as if within the SWF file ?
    No can do, flash has no browser capabilities.
    Regards
    Urami
    Happy New Year guys - all the best there is in the 2006
    <urami>
    http://www.Flashfugitive.com
    </urami>
    <web junk free>
    http://www.firefox.com
    </web junk free>

  • Screencapture of single window

    When used in a shell script (i.e. non-interactively), it appears that the screencapture command can capture the whole screen only.
    I would like to capture the frontmost (active) window of an application, preferably using something understandable to the command line (so I suppose that osascript could be used to call an AppleScript if need be).
    Before diving into the murky waters of scripting System Events, does anyone know of a way to automate taking a screencapture of the frontmost window of application X in general?

    http://discussions.apple.com/thread.jspa?messageID=5734391&#5734391
    I changed dimension to 1040x768. And saved script as desktop app. It does what you seem to want?
    Now then, how to automate?

  • Need to simulate screen-shooting a window

    Hi there
    I need to simulate a screenshot of a window of Safari. Basically: CMD+SHIFT+4+SPACE+click.
    I have a script that works for a screenshot of the entire screen, but since my screen is only 1200x800 I need to take an SS of the window while it's resized and a part of it is not visible. If I do it manually it works like a charm, but I need a script because I need to do it a few hundred times.
    I've tried using cliclick but I ran into some trouble and I'm stuck. The site loads, the window gets selected, the screen goes gray in anticipation of a click, but no clicking happens. Anyway, here's my script, hope you can help me.
    p.s. I'm not sure if my CODE tags will wrap my code in code tags, I'm a bit daft today
    [CODE]
    set myURL to "X"
    repeat with myPage from 1 to 325
              tell application "Safari"
                             set the URL of the front document to (myURL & myPage)
           activate
                             do shell script "/Users/macjohn/Desktop/cliclick d:400,100"
              end tell
      delay 5
              set myPath to ((POSIX path of (path to desktop)) & "screenshots/" & myPage & ".jpg") as string
              do shell script "screencapture -W " & quoted form of myPath
    end repeat
    [/CODE]

    Hello
    Here's a simple command line utility written in C to caputure specified window's image and save it as png. I first tried to do this in rubycocoa for convenience but in vain because the used function CGWindowListCreateImageFromArray() always returns nil in rubycocoa for some reason. So here's C version.
    # Recipe.
    A) To compile and test the C programme.
    A1) Copy the code listed below as main.c into new document of text editor (e.g. TextEdit) and save it as plain text named "main.c" on desktop.
    A2) In Terminal.app, run the following commands (type each line followed by return):
    cd ~/Desktop
    gcc -framework ApplicationServices -o windowcapture main.c
    and it will create an executable file named "windowcapture" on desktop.
    A3) For brief test, first in Ssfari, have a window open and then in Terminal.app, type the following satements (each followed by return):
    wid=$(osascript -e 'tell application "Safari" to get id of window 1')
    ./windowcapture $wid out.png
    This will capture the front window of Safari and save it as out.png on desktop.
    B) To create an AppleScript wrapper to call this utility.
    B1) Create a new AppleScript script with the following contents and save it as a script bundle or an application bundle:
    tell application "Safari" to set wid to window 1's id
    set p to (path to resource "windowcapture")'s POSIX path
    do shell script "cmd=" & p's quoted form & "; wid=" & wid & "
    out=~/Desktop/$(date +'%F %H.%M.%S.png')
    \"$cmd\" \"$wid\" \"$out\""
    B2) Show package contents (via contextual menu) of the saved bundle and put the executable file "windowcapture" loose in its Contents/Resources directory. Now you can run the script bundle or the application bundle to capture the front window of Safari and save it as a time-stamped png file on desktop.
    # Notes.
    • You need to have Developer Tools (Xcode and its command line tools) installed to build the programme.
    • Tested under 10.6.8 but no warranties of any kind.
    • This is free software you may use and modify as you like.
    # File
    main.c
        file
            main.c
        function
            capture image from window specified by window id (CGWindowID) and save it as png file.
        compile
            gcc -framework ApplicationServices -o windowcapture main.c
        usage e.g.
            ./windowcapture 251 outfile.png
    #include <ApplicationServices/ApplicationServices.h>
    #include <libgen.h>    // basename
    int
    main (int argc, char * argv[])
        if ( argc != 3 )
            fprintf(stderr, "Usage: %s <window ID> <outfile>\n", basename(argv[0]));
            return 1;
        CGWindowID wid = (CGWindowID) atoi(argv[1]);
        CFStringRef outfile = CFStringCreateWithCString(kCFAllocatorDefault, argv[2], kCFStringEncodingUTF8);
        CFURLRef url = CFURLCreateWithFileSystemPath(kCFAllocatorDefault, outfile, kCFURLPOSIXPathStyle, false);
        CFRelease(outfile);
        CGWindowID wids[] = { wid };
        CFArrayRef widarray = CFArrayCreate(kCFAllocatorDefault, (const void **)wids, 1, NULL);
        CGImageRef img = CGWindowListCreateImageFromArray(CGRectNull, widarray, kCGWindowImageDefault);
        CFRelease(widarray);
        if ( !img )
            fprintf(stderr, "Failed to create image from window id: %d\n", (int) wid);
            return 1;
        CGImageDestinationRef idst = CGImageDestinationCreateWithURL(url, CFSTR("public.png"), (size_t) 1, NULL);
        CFRelease(url);
        CGImageDestinationAddImage(idst, img, NULL);
        bool b = CGImageDestinationFinalize(idst);
        CFRelease(idst);
        return b ? 0 : 1;
    Hope this may help,
    H

  • ITunes 10 on Window 7 64 bit copys CD quickly then freezes for 1-2 minutes

    I have new and well specified Windows 7 64 bit machine with iTunes 10 installed.
    When I copy a CD, it copies very quickly compared to my old XP machine, but when it finshes copying teh last track, iTunes always freezes for 1-2 minutees and then returns to normal useability.
    All advice would be appreciated.
    Thanks,
    Steven Lyall

    We ended up getting iTunes cleanly uninstalled and were able to re-install without issue.  All is now mostly well.
    Peace...

  • Is it possible to install Adobe Web Premium CS5.5 on a Windows 8?

    I have purchased Adobe Web Premium CS5.5 as a Student version.
    Currently I run it on a Windows 7 PC.
    I want to buy a new notebook and wonder whether it is possible to install my Adobe Web Premium CS 5.5 on a Windows 8 PC?
    Alternatively, is it possible to use my Adobe Web Premium CS 5.5 on a MAC?

    Dear Eshant_Jindal,
    thanks for your answer.
    And is it possible that I use my current license for a MAC? I am not sure whether I have bought a WIN license or a general license?
    I know that the system requirements of Adobe Web Premium CS 5.5 do not specify Windows 8.
    This is why I have contacted you. So there is no better answer than “Try it”? Does it work on an average Windows 8 computer? Which system constraints need to be regarded?
    As I have not bought the new computer, I could pay attention to any system constraints that could endanger the installation of Adobe Web Premium Cs 5.5.
    Best regards
    Von: Eshant_Jindal
    Gesendet: 25 December 2014 13:49
    An: Tobias Mohr
    Betreff:  Is it possible to install Adobe Web Premium CS5.5 on a Windows 8?
    Is it possible to install Adobe Web Premium CS5.5 on a Windows 8?
    created by Eshant_Jindal <https://forums.adobe.com/people/Eshant_Jindal>  in Downloading, Installing, Setting Up - View the full discussion <https://forums.adobe.com/message/7043306#7043306>

  • Error while integrating Windows System - Share into KM

    Hi Experts,
    I am new to KM and there is a requirement of Integrating Windows System into KM.
    Portal System : a.xyz.com
    Remote System: b.xyz.com
    Share -
    b.xyz.com\d_share$
    Both systems reside in the same domain and share is created on the remote system which needs to be accessed from Portal. User xyz\Rob has given R/W access to the share.
    The steps I followed are:
    1. Created a Network Path.
        - Specified Network Path as given above.
        - Added credentials for xyz\Rob
    2. Created Windows System in KM Systems Landscape.
    3. Created File System Repository.
        - Specified Share as Root Direcory.
        - Specified Windows Landscape System as the system defined in the above step.
        - Security Manger as W2kSecurityManager
    Now when I saved it, default trace logs are giving following dump :
    #1.5 #000E0CB1BAAE005E0000000E000017F000046821B68B46BA#1240393912559#com.sapportals.wcm.service.fsmount.FSMountService#sap.com/irj#com.sapportals.wcm.service.fsmount.FSMountService#Guest#0##n/a##4bd037e02e7211dec03e000e0cb1baae#Thread[ConfigurationEventDispatcher,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Error##Plain###Error mounting drive ,path \\\\b.xyz.com\\d_share$#
    #1.5 #000E0CB1BAAE005E0000000F000017F000046821B68B617E#1240393912575#com.sapportals.wcm.service.fsmount.FSMountService#sap.com/irj#com.sapportals.wcm.service.fsmount.FSMountService#Guest#0##n/a##4bd037e02e7211dec03e000e0cb1baae#Thread[ConfigurationEventDispatcher,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Warning##Plain###FSMountService Reconfiguration (New path) failed to mount network path \\\\b.xyz.com\\d_share$ - com.sapportals.wcm.service.fsmount.RemoteAccessException:  Error Mounting Drive: \\\\b.xyz.com\\d_share$
         at com.sapportals.wcm.service.fsmount.FSMountService.mountDrive(FSMountService.java:91)
         at com.sapportals.wcm.service.fsmount.FSMountService.updateConfigurables(FSMountService.java:346)
         at com.sapportals.wcm.service.fsmount.FSMountService.reconfigure(FSMountService.java:286)
         at com.sapportals.wcm.crt.CrtThreadSafeComponentHandler.tryToReconfigure(CrtThreadSafeComponentHandler.java:302)
         at com.sapportals.wcm.crt.CrtThreadSafeComponentHandler.handleReconfigure(CrtThreadSafeComponentHandler.java:148)
         at com.sapportals.wcm.crt.CrtComponentManager.reconfigureComponent(CrtComponentManager.java:343)
         at com.sapportals.wcm.crt.CrtConfigurationEventListener.notifyComponentConfigChanged(CrtConfigurationEventListener.java:79)
         at com.sapportals.wcm.repository.runtime.CmConfigurationProvider.sendChangeEvent(CmConfigurationProvider.java:1257)
         at com.sapportals.wcm.repository.runtime.CmConfigurationProvider.sendChangeEventOrRestart(CmConfigurationProvider.java:1209)
         at com.sapportals.wcm.repository.runtime.CmConfigurationProvider.configEvent(CmConfigurationProvider.java:302)
         at com.sapportals.config.event.ConfigEventService.dispatchEvent(ConfigEventService.java:227)
         at com.sapportals.config.event.ConfigEventService.configEvent(ConfigEventService.java:112)
         at com.sapportals.config.event.ConfigEventDispatcher.callConfigListeners(ConfigEventDispatcher.java:308)
         at com.sapportals.config.event.ConfigEventDispatcher.flushEvents(ConfigEventDispatcher.java:251)
         at com.sapportals.config.event.ConfigEventDispatcher.run(ConfigEventDispatcher.java:110)
    #1.5 #000E0CB1BAAE005E00000010000017F000046821B68B6F1C#1240393912575#com.sapportals.wcm.service.fsmount.FSMountService#sap.com/irj#com.sapportals.wcm.service.fsmount.FSMountService#Guest#0##n/a##4bd037e02e7211dec03e000e0cb1baae#Thread[ConfigurationEventDispatcher,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Warning##Plain###FSMountService Reconfiguration failed to get configuration of network path CaesarNetworkPath - com.sapportals.wcm.service.fsmount.RemoteAccessException:
         at com.sapportals.wcm.service.fsmount.FSMountService.updateConfigurables(FSMountService.java:351)
         at com.sapportals.wcm.service.fsmount.FSMountService.reconfigure(FSMountService.java:286)
         at com.sapportals.wcm.crt.CrtThreadSafeComponentHandler.tryToReconfigure(CrtThreadSafeComponentHandler.java:302)
         at com.sapportals.wcm.crt.CrtThreadSafeComponentHandler.handleReconfigure(CrtThreadSafeComponentHandler.java:148)
         at com.sapportals.wcm.crt.CrtComponentManager.reconfigureComponent(CrtComponentManager.java:343)
         at com.sapportals.wcm.crt.CrtConfigurationEventListener.notifyComponentConfigChanged(CrtConfigurationEventListener.java:79)
         at com.sapportals.wcm.repository.runtime.CmConfigurationProvider.sendChangeEvent(CmConfigurationProvider.java:1257)
         at com.sapportals.wcm.repository.runtime.CmConfigurationProvider.sendChangeEventOrRestart(CmConfigurationProvider.java:1209)
         at com.sapportals.wcm.repository.runtime.CmConfigurationProvider.configEvent(CmConfigurationProvider.java:302)
         at com.sapportals.config.event.ConfigEventService.dispatchEvent(ConfigEventService.java:227)
         at com.sapportals.config.event.ConfigEventService.configEvent(ConfigEventService.java:112)
         at com.sapportals.config.event.ConfigEventDispatcher.callConfigListeners(ConfigEventDispatcher.java:308)
         at com.sapportals.config.event.ConfigEventDispatcher.flushEvents(ConfigEventDispatcher.java:251)
         at com.sapportals.config.event.ConfigEventDispatcher.run(ConfigEventDispatcher.java:110)
    #1.5 #000E0CB1BAAE005E00000011000017F000046821B68B72C8#1240393912575#com.sapportals.wcm.service.fsmount.FSMountService#sap.com/irj#com.sapportals.wcm.service.fsmount.FSMountService#Guest#0##n/a##4bd037e02e7211dec03e000e0cb1baae#Thread[ConfigurationEventDispatcher,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Warning##Plain###FSMountService Reconfiguration Failed to get configuration on network paths to mount - com.sapportals.wcm.service.fsmount.RemoteAccessException:
         at com.sapportals.wcm.service.fsmount.FSMountService.updateConfigurables(FSMountService.java:359)
         at com.sapportals.wcm.service.fsmount.FSMountService.reconfigure(FSMountService.java:286)
         at com.sapportals.wcm.crt.CrtThreadSafeComponentHandler.tryToReconfigure(CrtThreadSafeComponentHandler.java:302)
         at com.sapportals.wcm.crt.CrtThreadSafeComponentHandler.handleReconfigure(CrtThreadSafeComponentHandler.java:148)
         at com.sapportals.wcm.crt.CrtComponentManager.reconfigureComponent(CrtComponentManager.java:343)
         at com.sapportals.wcm.crt.CrtConfigurationEventListener.notifyComponentConfigChanged(CrtConfigurationEventListener.java:79)
         at com.sapportals.wcm.repository.runtime.CmConfigurationProvider.sendChangeEvent(CmConfigurationProvider.java:1257)
         at com.sapportals.wcm.repository.runtime.CmConfigurationProvider.sendChangeEventOrRestart(CmConfigurationProvider.java:1209)
         at com.sapportals.wcm.repository.runtime.CmConfigurationProvider.configEvent(CmConfigurationProvider.java:302)
         at com.sapportals.config.event.ConfigEventService.dispatchEvent(ConfigEventService.java:227)
         at com.sapportals.config.event.ConfigEventService.configEvent(ConfigEventService.java:112)
         at com.sapportals.config.event.ConfigEventDispatcher.callConfigListeners(ConfigEventDispatcher.java:308)
         at com.sapportals.config.event.ConfigEventDispatcher.flushEvents(ConfigEventDispatcher.java:251)
         at com.sapportals.config.event.ConfigEventDispatcher.run(ConfigEventDispatcher.java:110)
    I have gone through the help.sap.com documentation but I found it quite confusing.
    Please suggest.
    Br,
    Nilz

    Hi,
    Check whether you are able to access the same file share form the Portal server where your J2EE is installed.
    And also if you have used
    b.xyz.com
    d_share in the network path try using //b.xyz.com/d_share in the network path as mentioned here.
    https://www.sdn.sap.com/irj/scn/thread?messageID=1283643
    Regards
    ~Hussain

  • Windows 2008 R2 Standard side by side error

    I have a Dell Poweredge 310 running Windows 2008 R2 Standard. I have update the bios to the latest version and the bios update did take but now all of my 32bit software will not run. I receive the error “The application has failed to start because its side-by-side
    configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail”
    I have looked over other posts and most have stated to install the C++ redistribution 2008. I was able to install the 64 bit version but I cannot install the 32bit version. I receive the error “The application has failed to start because its side-by-side
    configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.”
    So I am not able to install any 32bit software.  I have tried to enable the WOW64 feature with the command DISM /online /enable-feature/featurename:ServerCore-WOW64 but get this Error: 0x800f080c Feature name ServerCore-WOW64 is unknown.
    I have also tried to use this command to setup WOW64  start /w ocsetup ServerCore-WOW64 I get this “The specified windows component could not be found: ServerCore-WOW64.
    I have looked at the .Net 3.5 that comes installed in the Windows Features and it is installed. I do not want to uninstall and reinstall the feature because it will take down the AD and I really do not want to rebuild the AD
    Is there some setting I am missing?

    Airwikg
    You can refer the following similar thread solution to do the further troubleshooting:
    SideBySide errors event ID 33
    https://social.technet.microsoft.com/Forums/windows/en-US/db028072-a3b7-46f5-981e-b40d9f7d0fa8/sidebyside-errors-event-id-33?forum=w7itproappcompat
    The application has failed to start because its side-by-side configuration is incorrect’ error related to MMC.EXE programs and weird cause & simple solution
    http://blogs.msdn.com/b/cesardelatorre/archive/2011/03/27/the-application-has-failed-to-start-because-its-side-by-side-configuration-is-incorrect-error-related-to-mmc-exe-programs-and-weird-cause-amp-simple-solution.aspx
    Can any kind expert out here help me diagnose what is wrong under event viewer. Details below.
    http://answers.microsoft.com/en-us/windows/forum/windows_7-performance/can-any-kind-expert-out-here-help-me-diagnose-what/8b542c41-a8b6-4f52-adf4-efdfb2378a1a
    More information:
    About Side-by-Side Assemblies
    https://msdn.microsoft.com/en-us/library/windows/desktop/ff951640%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396
    I’m glad to be of help to you!
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • How to open a window in full screen mode using lf_fpm_navigation?

    Hi Guys
    For the following applications
    ESS Application: HAP_START_PAGE_POWL_UI_ESS
    MSS Application: HAP_START_PAGE_POWL_UI_MSS
    When the user clicks on the appraisal document name, a seperate window(not full screen) is generated to display the Appraisal docuemnt.
    The code is as follows:
    COMP: HAP_START_PAGE_POWL_UI
    Object : COMPONENTCONTROLLER
    Method: FOLLOWUP_POWL
    Generate the URL to be called.
        CALL METHOD cl_wd_utilities=>construct_wd_url
          EXPORTING
            application_name = 'HAP_MAIN_DOCUMENT'
            in_parameters    = lt_parameters
          IMPORTING
            out_local_url    = l_url.
        wd_this->url = l_url.
        wd_this->display_document( ).
    In Method: DISPLAY_DOCUMENT
    lv_alias = 'EMPLOYEE_DOCUMENT_UI_OBN'.
    use FPM navigation
        ls_nav_key-key1 = 'HAP'.
        ls_nav_key-key2 = 'HAP_GENERIC_UI'.
        lr_fpm_navigation ?= lr_fpm->get_navigation( is_key = ls_nav_key iv_instance_sharing = abap_false ).
        CALL METHOD lr_fpm_navigation->get_key_from_alias
          EXPORTING
            iv_alias = lv_alias
          RECEIVING
            rv_key   = lv_key.
        lr_fpm_navigation->modify_parameters(
             EXPORTING
               id_target_key            = lv_key
               it_application_parameter = lt_appl_param
               it_business_parameter    = lt_business_param    ).
        lr_fpm_navigation->navigate( lv_key ).
    Any idea how to open this window in full screen?
    Highly appreciate your help.
    Thank and Regards
    Pramod

    Hi Pramod,
    This FPM navigation is achieved using settings made in Launchapd Customizing ( LPD_CUST ).
    a) Execute Tran LPD_CUST
    b) Go to Role HAP - Double Click to open it.
    c) Open the second folder on the LHS menu - there you will find 2 entries
    d) Click on second entry - in the entry setting you can see that it is configured for WD Application  - HAP_MAIN_DOCUMENT
    e) Click on button Show Advanced Parameters
    f) There you will find a input box named as Window Features - here you can specify window features like
    height=700,width=1100,position=center,menu=no,status=no,location=no,menubar=no,status=no,toolbar=no
    save the settings come out and test ur app again.
    change the height and width and other features as per ur req.
    Regards
    Manas Dua

  • Vba to dismiss an IE8 or IE9 "message from webpage" popup window

    In excel or word, paste the following code into a vba normal module and run it.   The code goes to a public web site and tries to lookup a school.  The website pops up a "message from webpage" dialog that warns me that the the school
    number is not valid.
    My program can detect that popup, but how can I reliably and automatically dismiss it?
    I have a workaround that uses sendkeys but about 10% of the time the popup remains.
    Does anybody have a solution that does NOT require sendkeys? The ideal solution would also work when objie.visible = false.
    option Explicit
    Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
    Sub t1022()
    Dim objie As Object
    Dim i As Long
    Dim htmlTable As htmlTable ' set reference to microsoft html object library
    Set objie = CreateObject("InternetExplorer.Application")
    objie.Visible = True
    objie.navigate "http://www.slforms.universalservice.org/Form471Expert/471StatusCheck.aspx"
    Do: Sleep 100: Loop While objie.busy
    Set htmlTable = objie.Document.getElementsByName("txtBenId")(0)
    htmlTable.Value = 12345
    With objie.Document.getElementById("txtFundingYear")
    .Click
    .Value = 2013
    End With
    objie.Document.getElementById("btnSearch").Click
    For i = 1 To 10
    Sleep 100
    If Not objie.busy Then Exit For
    Next i
    If objie.busy Then
    MsgBox "popup detected"
    End If
    End Sub

    Hi,
    If there is a will, there is definitely as way. The following definitely works!
    Copy and paste the following code in a module.
    Option Explicit
    Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
    'Sends the specified message to a window or windows. The SendMessage function calls the window procedure
    'for the specified window and does not return until the window procedure has processed the message.
    Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" _
    (ByVal hWND As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
    'Retrieves a handle to the top-level window whose class name and window name match the specified strings.
    'This function does not search child windows. This function does not perform a case-sensitive search.
    Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" _
    (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
    'Retrieves a handle to a window whose class name and window name match the specified strings.
    'The function searches child windows, beginning with the one following the specified child window.
    'This function does not perform a case-sensitive search.
    Public 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
    Public Const BM_CLICK = &HF5&
    Sub t1022()
    Dim objie As Object
    Dim i As Long, hWND As Long, childHWND As Long
    Dim htmlTable As htmlTable ' set reference to microsoft html object library
    Set objie = CreateObject("InternetExplorer.Application")
    objie.Visible = True
    objie.navigate "http://www.slforms.universalservice.org/Form471Expert/471StatusCheck.aspx"
    Do: Sleep 100: Loop While objie.busy
    Set htmlTable = objie.Document.getElementsByName("txtBenId")(0)
    htmlTable.Value = 12345
    With objie.Document.getElementById("txtFundingYear")
    .Click
    .Value = 2013
    End With
    objie.Document.getElementById("btnSearch").Click
    For i = 1 To 10
    Sleep 100
    If Not objie.busy Then Exit For
    Next i
    If objie.busy Then
    'MsgBox "popup detected"
    DoEvents
    hWND = FindWindow(vbNullString, "Message from webpage")
    If hWND <> 0 Then childHWND = FindWindowEx(hWND, ByVal 0&, "Button", "OK")
    If childHWND <> 0 Then SendMessage childHWND, BM_CLICK, 0, 0
    End If

Maybe you are looking for

  • Portal Report Layout Editor

    I have created a report selecting the custom report layout option. Rather than using a link on the column, I would like to add different links in the footer section in the Report Layout Editor. My problem is trying to create a link and pass a value f

  • I can't download onto my I pad. Says unable to download in safari...ideas?

    I am trying to put firefox on my iPad, how do I do it?

  • Does Automator Support Wildcards?

    I have a workflow already in Automator and all I want to do is rename a group of PDFs but ask it to ignore 3 characters, ie. ipagexxx090929 - the 3 x's being where I want the numbers ignored. I though Automator would support 'wildcards' but am having

  • Error when trying to truncate table from within PL/SQL

    Hello..... Does anyone know why I get an error when trying to execute the following command from within PL/SQL? truncate table event; The error is as follows: ORA-06550: line 20, column 14: PLS-00103: Encountered the symbol "TABLE" when expecting one

  • In-Bound BGP traffic on catalys 6500

    I have one ISP customer have issues about their inbound BGP traffic. Nowadays they have 5 upstream peers. The traffic come through only 1 or 2 upstream that make the traffic overload. Do you know any solution that can help? Thanks, Mano