Ole web browser, prevent F8 key from firing

Hi all,
I have added an OLE Web Browser control to a window in PB11.2 and load a PDF document.  This works fine.
But I want to prevent the user from pressing F8/right-clicking within the ole.  Because doing so allows the user to see the adobe reader toolbar (F8) / context-menu (right-click) which allows him to other stuff (save/print) which we dont want the user to do.
I have been able to prevent the user from right-clicking inside the ole control via the following code (in "other" event):
IF wparam = 516 THEN
    //disable right-click
    ole_control.POST SetFocus( )
END IF
However, am unable to prevent key event from being fired inside the ole control.  Does any one have any ideas/suggestions?
Thanking you in advance.
Cheers,

Hi Roland,
Thanks for your reply.
I have decided to stop trying these work arounds (disable right-click, F8, etc)...
instead, I now generate the pdf (as read-only) by encrypting it thus automatically disabling the save/print/etc functionality from the adobe reader.
unfortunately, the mail button cannot be disabled (no idea how? why?).  So, I leave it here...
Best,
-a

Similar Messages

  • Can I prevent a web browser on my computer from adjusting to tablet/mobile views??

    So, I would like my responsive project to only use the primary viewport when it is being displayed on a desktop computer. I don't want to use the tablet/mobile layouts unless on a tablet or phone. Ideally, like most websites, if you make the browser window small enough the horiz/vert grey scrollbars kick in and I would like this behavior when on a desktop. Right now as I decrease the size of my desktop web browser the project changes from primary to tablet to mobile.
    So can I "lock" the primary viewport if on a computer?? Thanks in advance!!

    The only examples i've seen need the likes of jQuery, i suggest having a look on Stackoverflow. Its a very bad idea though to restrict the user like that and i would recommend you not do it, with responsive design you need to appreciate that the user will view your content in the way that best suits them.

  • ADG/DataGrid prevent render even from firing immediately on property

    Hi,
    Is there any way to tell the ADG to not re-render itself immediately after a
    propertyChanged even has been fired in the dataProvider?
    I have quite a wide row (lots of cells) and lots of custom logic that updates
    these dependent properties on each row. i.e. calculated columns. I am doing the
    calculations at dataProvider level vs labelFunctions. On each "set" function of
    one of my cells in the row I raise a "propertyChanged" event if the value was
    changed. Tracing through what the ADG is doing I'm finding that its re-rendering
    each time I raise this event even if its in the same row. Is there any way to
    tell the ADG to wait a few milliseconds in case another propertyChanged event
    comes in so as to render once instead of 10 times?
    If there is no ADG option what is the best pattern for this assuming I want to
    do this in my underlying dataprovider objects. Should I raise custom events and
    fake a itemUpdated once I know there are no more changes? I don't see a clean
    way to do this however since I never really know when I'm done, and using a
    timer or something of this nature seems like a major hack.
    -Tom
    Rest of discussion from FlexCoders ...
    Re: ADG/DataGrid prevent render even from firing immediately on propertyChange
    You might try enableAutoUpdate and disableAutoUpdate on ICollectionView, not
    sure if that has the desired affect or not.
    You could also put custom events in your model objects and manually dispatch
    collection events or call explicitly tell the grid when to update.
    By "explicitly tell the grid when to update" do you mean manually calling
    itemUpdated at the View level?. If so does the grid actually "know" to re-render
    only that updated row? It seems to me that it always re-rendered all visible
    cells regardless of what was changed. So passing null or a real row into
    itemUpdated has the same results.
    Also if I am to manully dispatch propertyChanged from my row, and I never really
    know when I'm done updating all of my dependant cells is there any good way to
    do this. i.e. Cell A update cell B and cell B update updates cell E, and this
    can go on indefinatley. By catchign all property changed events at Row level and
    using a timer of say 50ms i would almost guarantee that I wouldn't rethrow more
    than a single propertyChanged event on any of the updated cells in a row. Do you
    think there is a better way to do this?
    Follow up finding,
    Do 10 propertyChanged events from my dataProvider cause grid to refresh once or
    10 times? My most recent observations show that it's just once, though for some
    reason the first load invokes my labelFunction 3 times. Is there any point in
    using enableAutoUpdate if grid appears to be 'smart' enough?

    >>And what about the the most important question, how exactly is TableAssetsViewSource defined in the XAML markup and what is
    its Source property set or bound to? And what about the reproducable sample...?
    Here is the Markup of the TableAssetsViewSource:
    <Page.Resources>
    <local:RETAILISOAMDDataSet x:Key="RETAILISOAMDDataSet"/>
    <CollectionViewSource x:Key="TableRegionsViewSource" Source="{Binding tableRegions, Source={StaticResource RETAILISOAMDDataSet}}"/>
    <CollectionViewSource x:Key="TableLocationsViewSource" Source="{Binding tableLocations, Source={StaticResource RETAILISOAMDDataSet}}"/>
    <CollectionViewSource x:Key="TableAssetsViewSource" Source="{Binding tableAssets, Source={StaticResource RETAILISOAMDDataSet}}"/>
    </Page.Resources>
    The ItemsSource of the DataGrid is bound to the TableAssetsViewSource:
    <DataGrid DataContext="{StaticResource TableAssetsViewSource}" ItemsSource="{Binding}" x:Name="TableAssetsDataGrid" AutoGenerateColumns="False" EnableRowVirtualization="True" Margin="15,10,10,10" RowDetailsVisibilityMode="VisibleWhenSelected" Grid.Column="1" HeadersVisibility="Column" CanUserResizeRows="False" IsReadOnly="True">
    Just remember, this code was auto-generated with the drag & drop onto the Page, so I did little in terms of setting the actual bindings.
    All in all, what I have done so far works as intended, except that when I want to add a row to the table it does not reflect, and that it only shows after refreshing/restarting the application.
    I will try and put together a reproducable sample.

  • Preventing enter key from submission-- javaScript

    Hi,
    I am using the following code for preventing enter button from submission
    It is not working for other explorer's like AOL,FIREFOX,NETSCAPE
    onkeydown="if ((event.which && event.which == 13) ||
    (event.keyCode && event.keyCode == 13))
    {document.FormName.ButtonName.click();return false;}
    else return true;"
    Can any one help me better solution than this...
    Thanks in advance...

    Double-posted:
    http://forum.java.sun.com/thread.jspa?threadID=5131933
    (And this is still a java and not javascript forum)

  • Prevent Enter key from proceeding movie

    I am using this code to get the user to enter the answer 16
    in an input text field. It works but if the user hits the enterkey
    after they've gotten the question right, the playhead starts and
    moves to incorrect. This is not happening only in the testing
    environment, the published file continues when Enter is pressed.
    Can anyone help?
    keyListener = new Object();
    keyListener.onKeyUp = function() {
    if (input_txt2.text == "16" and Key.getCode() == 13) {
    //13 is key code for 'Enter'//
    gotoAndPlay("1_3_13a");
    _root.answer1 = "Correct!";
    } else if (input_txt2.text != "16" and Key.getCode() == 13)
    //13 is key code for 'Enter'//
    _root.answer1 = "Incorrect.";
    gotoAndPlay("1_3_13b");
    Key.addListener(keyListener);

    I'm not following what "…activated when the enter key
    is pressed even after the event has occurred." means. You mean that
    even after this first entry you press enter and the value of
    input_txt2.text != "16" so it is jumping to 1_3_13B?
    I think I know what you mean, maybe. Notice how you are
    setting up a listener? Well it keeps listening, it isn't a one time
    deal. It listens for a keyUp until you tell it to stop. So just
    because it works once why would you expect it to stop working? :)
    What you need to do is either inside your conditionals or
    perhaps just inside the onKeyUp function put a
    Key.removeListener(keyListener); to tell it to stop listening. If
    you are doing some kind of remediation at 1_3_13b and then want
    them to have another try, perhaps you will want to leave the
    listener or you might want to remove it and then add it back. I
    don't know the exact structure of what you are doing, but I hope
    this points you in the correct direction.

  • Prevent ESC key from closing movie

    Hi!
    Can anyone please advise me how to stop a movie closing when the ESC key is pressed.
    I have a dialog function that opens another movie to confirm quit.
    I would prefer it to minimize instead of simply closing with no warning.
    Many Thanks
    Sarah

    You set 'the exitLock' to TRUE - check the docs for more details. Also, once the exitLock is true, you can implement an 'on closeRequest' handler to detect your using pressing the ESC key, or clicking the close box on the titlebar.

  • How to prevent Enter key from closing form?

    I have a page with a single text entry field on it. When I press enter the page closes, not saving the data (it is as if I clicked cancel). How can I change this behavior?

    Hi Daveio,
    Can you please let me know whether the Text Field that you have created is of type:
    Text Field (always submit page when entered pressed)?
    Secondly, does your page have any branches associated with it?
    Tony.

  • Opening a web browser from an After Effects script

    Hi,
    This may be a stupid question, but is there any way to open a web browser with a URL from an AE script, other than explicity lanuching the browser app via a sys.callSystem() command?
    I'm asking because obviously scripts need to run on both Windows and MacOS, and the user's default/preferred browser isn't necessarily going to be IE or Safari. That and I'd need to find the file path of the browser anyway somehow.
    It's to display external help.
    Thanks,
    Christian

    system.callSystem() can launch a URL without specifying the specific app. This code user's default browser. The last line is the main deal, the other stuff keeps it universal for PC and MAC.
    //CHECKS FOR USER OS
    function osCheck(){
              var op = $.os;
              var match = op.indexOf("Windows");
              if(match != (-1)){
                        var userOS = "PC";// User is on PC
              }else{
                        var userOS = "MAC";// User is on MAC
              return userOS;
    // RUNS OS CHECK FUNCTION
    var userOSVer = osCheck();
    //DEFINES PC OR MAC TERMINAL SYNTAX
    if(userOSVer == "MAC"){
              var urlLaunchCode = "Open";//Mac based
    }else{
              var urlLaunchCode = "Start";//PC based
    //ONCLICK FUNCTION FOR YOUR URL BUTTON CONTROL
    //urlLaunchCode = Open or Start / " " = keeps a space character separator / "http://myurl.com" = Defines the actual URL path
    myURLButton.onClick = function(){system.callSystem(urlLaunchCode + " " + "http://forums.adobe.com/thread/993523?tstart=0")};

  • MacBook 2010 web browsing super slow!!?? Wireless Internet.

    I purchased my MacBook in May, and at first everything worked fine, but lately the web browsing has been super slow with the page taking forever to load or just not loading whatsoever. The connection signal is strong and the internet is working fine as my computer downloads files at a good speed. I have an old PC laptop that the web browsing works fine on from the same connection so the problem must lie with my macbook. any ideas?

    HI and welcome to Apple Discussions,
    You didn't mention which browser you are using so I assuming it's Safari...
    From the Safari Menu Bar, click Safari / Reset Safari. Select the top 5 buttons and click Reset.
    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 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 using the Finder, open your user folder, navigate to ~/Library/Safari/ and move this file "webpageIcons.db to the Trash.*
    Check for duplicate or corrupted fonts, instructions here. http://reviews.cnet.com/8301-13727_7-10389716-263.html?tag=mncol;title
    Open System Preferences/Accounts then select the Login Items tab. Delete any files or apps there. And go to /Library/Startup Items. Remove any files or apps there.
    Quit Safari if it's open for this.
    Try troubleshooting the Safari .plist file. Open a Finder window. Select your Home Folder in the Sidebar on the left. It has a small house icon. Then open the Library folder then the Preferences folder. Move the com.apple.Safari.plist file from the Preferences folder to the Desktop. Now launch Safari. If Safari speeds up loading web pages, them move the .plist file to the Trash.
    Carolyn

  • I Pad email access using web browser

    I plan to give my I Pad I 3G to my wife and purchase a new I Pad 2 for myself. My wife wants to use the I Pad I Wi-FI for internet access and not purchase a paid subscription for a data plan. She has a mobileme paid account on her IMac. When she tries to access her email on the I Pad 1 via mobileme using a web browser, the IPad will not allow her to do this; it keeps bumping her to a page that says requires a paid account. She already has a mobile me paid account and should be able to access her me.com mail via web browser as she does from other computers when traveling away from home. Please advise.

    Your email account was hacked, that's what happened, & it happens all the time. Change your password...use at least 10 characters...a combination of upper/lower case...numbers & characters.

  • Xmonad - prevent web browser from going "fullscreen"

    Hi,
    is there a possibility in xmonad to prevent an application (in my case the web browser) from resizing to fullscreen when it's the only window on a workspace? I have a huge display and do not want chromium to resize to the full resolution. I've done a lot of searching on this problem (and I can't believe that I'm the only one with this issue) but didn't find anything about that. Maybe because of my bad English...
    As mentioned in the title, the WM is xmonad.
    Thank you very much.

    Well, you could write a manageHook that tests if it is the only window on the screen, and if it is, changes the layout, or floats the browser with a spesific size

  • Issue with opening pdf file from web browser

    I have Acrobat Pro ver 6 and Adobe Reader 9.1 on a computer.  when my user tries to open up a pdf from the web he is getting the following error message:
    "The Adobe Acrobat/Reader that is running can not be used to view PDF files in a WEb Browser.  Adbe Acrobat/Reader version 8 or 9 is required.  Please exit and try again."
    What also happens is that Acrobat Pro ver 6 opens up and nothing is there.
    I am not sure why he is getting that message since Reader 9.1 is installed.
    Can any one shed some light on this for me.
    This user needs to have Acrobat and Reader on his system.  I understand that there are issues with having both.
    Also he has it set up so that any PDF is opening using the Reader 9.1.
    Thanks,

    Your PC's default reader configuration for embedded PDFs has become confused, due to multiple Adobe PDF document solutions installed on one PC.
    Solution 1:
    Go to Start > Run
    Type regedit and click OK.
    Browse to the following key: HKEY_CLASSES_ROOT\Software\Adobe\Acrobat\Exe
    Make sure that the correct Default data value is set for the path where Adobe Reader or Acrobat are installed.
    The default installation values are:
    "C:\Program Files\Adobe\Reader 9.0\Reader\AcroRd32.exe"
    or
    "C:\Program Files\adobe\acrobat 6.0\acrobat\Acrobat.exe" (not sure about this path.  Check on your PC to be sure)
    depending on whether Adobe Reader or Adobe Acrobat is installed.
    Solution 2:
    Configure the browser to use Acrobat or Adobe Reader as a helper application.
    If you are using Firefox to browse the web, you can change this setting in Firefox by going to:
    Tools > Options
    Click on the "Applications" Tab.
    The first item in the list should be "Adobe Acrobat Document".  Under the Action list, click the drop down arrow and select the application you want to read PDFs within the web browser.  Click OK, and you should be done.
    If you're using Internet Explorer to view PDFs, try the below steps.
    After you configure Acrobat or Adobe Reader as a helper application, the browser starts the helper application in a separate window and displays PDF files within that window. Acrobat and Adobe Reader both include a preference that lets you specify Acrobat or Adobe Reader as the helper application.
    To configure Acrobat or Adobe Reader as a helper application:
    Start Acrobat or Adobe Reader.
    Choose Edit > Preferences.
    Select Internet on the left.
    Deselect Display PDF In Browser Using [Acrobat application], and then click OK.
    Quit Acrobat or Adobe Reader.
    The next time you select a link to a PDF file in the browser, a dialog box asks what you would like to do with the file. If you select Open It, the browser opens the PDF file in Acrobat or Adobe Reader (the helper application); if you select Save It To Disk, the browser saves the PDF file to your hard drive.

  • How do I prevent my emails from being sent without my hitting the send key. Many of my emails are just "taking off" and sending while I am in the middle of typing. If this is a keyboard shortcut, I must disable it, so how do I do that

    How can I stop emails from being sent without my hitting the "send" key.

    Firefox doesn't do email, it's a web browser.
    If you are using Firefox to access your mail, you are using "web-mail". You need to seek support from your service provider or a forum for that service.
    If your problem is with Mozilla Thunderbird, see this forum for support.
    [http://www.mozillamessaging.com/en-US/support/] <br />
    or this one <br />
    [http://forums.mozillazine.org/viewforum.php?f=39]

  • ASDM doesn't run from application, but runs from web browser

    Not sure what the deal is.
    All of our firewalls are running 8.4(7.22) and ASDM 7.2.2.
    The primary campus firewall works fine when running Program Files-->ASDM launcher
    Our VPN firewalls only allow access to ASDM when launched from a web browser. Attempts to connect through the ASDM application respond with "Unable to connect to x.x.x.x".

    If the devices are using the default self-signed certificate dynamically generated during boot-up they could have rebooted and thus changed their certificates (which would then have to be trusted anew by Java).
    To avoid this, we generally try to use persistent certificates on the ASAs.
    If that's the case for your, it's a good opportunity to generate a new certificate (using a 2048-but RSA key if you don't already have one) and bind it to the interface(s) you manage from.

  • How do I prevent browsing and search data from being forwarded to Google by Mozilla, while still using Mozilla's Firefox as my default browser?

    I do enjoy using Mozilla's Firefox as my default browser, BUT, I don't enjoy the details of my life, to include my Internet activity, to be archived by Google, or anyone else, via Mozilla's/Firefox's sharing of my Internet browsing and/or search engine activity with any aspect or facet of the Google organization. With all of this said, my question is, "How do I prevent browsing and search data from being forwarded to Google by Mozilla, while still using Mozilla's Firefox as my default browser?"

    Firefox's default behavior includes no automatic interaction with Google.
    We do use Google as default search engine and to report web forgery in the 'help' menu, but no data are sent to Google without your knowledge, and you can change your preferred search engine at will.
    However many websites themselves make use of Google Ads which do cause interaction with Google when you load the webpages. This is visible in status bar and happens in any browser. The [https://addons.mozilla.org/en-US/firefox/addon/noscript NoScript] add-on for Firefox can largely save you from this problem.
    If you see things happening otherwise, please reply with details on what you see.

Maybe you are looking for