Is it possible to remove user interaction in a eventListener ?

Hi,
I am working on two scripts that both need to deal with the user interaction.
This following script works just fine. The only matter is that Indesign alerts me that the script prevented the UI dialog from opening.
What if I don't want any alert ?
#targetengine "newdialog"
Application.prototype.main = function(){
     //app.addEventListener ("beforeNew", preventMe, false);
     var myMenuAction = app.menuActions.item("$ID/Document...");
     myMenuAction.addEventListener ("beforeInvoke", preventMe, false)
function preventMe(myEvent){
     //alert(myEvent.cancelable);
     myEvent.stopPropagation();
     myEvent.preventDefault();
app.main();
I thought about userInteractionLevel but I tried to use it recently and I couldn't get it working. My intention was to get an automated update of my modified links when opening a file.
It's like
app.scriptPreferences.userInteractionLevel
couldn't be set once the script has been launched.
#targetengine "autolinkupdate"
main();
function main(){
     var myMenuAction = app.menuActions.item("$ID/kPMOpenDocTextKey");
     myMenuAction.addEventListener("beforeInvoke",removeInteraction,false);
     //app.addEventListener("beforeOpen",removeInteraction, false);
     app.addEventListener("afterOpen",updatelinks, false);
function updatelinks(myEvent){
     var doc=myEvent.parent;
     var lk = doc.links;
     for(var i=0; i<lk.length; i++){
          try{
               lk[i].update();
          catch(e){}
     app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;
function removeInteraction(myEvent){
     app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;
So my question is : Is it possible to remove user interaction in a eventListener ?
Thanks,
Loic

Assuiming NHTEST is a database link to the remote database connecting with SCOTT, use user_Tab_cols@NHTESTNicolas.

Similar Messages

  • Is user interaction possible??

    Hi...
    just like passing parameters to the report... can we have user interaction possible with xml publisher??
    I mean can I specify something like this on the report...
    if(user clicked at some point)
    {   show table if table not shown
    hide table if table already shown }
    Want to know if this kind of interaction is possible....if yes, how?

    Brett
    Thanks for your reply.
    Actually my requirement is that I need to have a drill down of data like when I click on something, its details must be shown...
    So from your reply, I understood that it could'nt be done.
    And as you said , i tried embedding java script . but I am getting an exception saying-element script is not supported yet.
    So my doubt is ,is the syntax same as <script>my js code</script> or do we have any different syntax to follow?
    Thanks again!!

  • Is it possible for a module to remember last viewed slide and user interactions without an LMS?

    I am developing a captivate module (using Captivate 6) that can be run either off a local hard drive or web server (not an LMS).
    I am hoping that the user will be able to close down the module and then return to it at a later time. Considering the module will not be run via an LMS Is it possible for the module to remember not only the last slide that the user viewed but also any interactions that the user has conducted. For example: saved information in variables, image states (whether or not they have been clicked etc), widgets (I am hoping to use the drag and drop widget so I want the course to be able to remember what items they have dragged where).
    Is this possible? I know there is a bookmark widget that uses cookies to remember the last slide the user viewed. I am also aware of another widget that allows you to save variables for use between projects, but in this case I will only have one project file. Is there something out there that does everything I need?
    Does the 'self paced learning' checkbox in the TOC save user interactions?
    Thanks! 

    Thanks Lilybiri. So it sounds like there is no easy way to save  interactions when run locally. Would using javascript (thats run when a user clicks a save button for example) be possible? Get the script to save a cookie with all the variables and 'states'? I know that saving the variables is possible because there is already a widget that does that, so wondering if there is a way to save the slide states as well (for example whether or not images have been clicked etc).
    Alternatively, if I create the project in captivate, is it possible to import into flash with all the functionality and actionscript intact and editable? From there I could then modify it to remember the saved states? (i am not proficient with actionscript  so just thinking of potential solutions).

  • I would like to know whether its possible to start running a vi automatically without user interaction after a system has booted up and launched labview?

    I would like to know whether its possible to start running a particular vi automatically without user interaction after a system has booted up and launched labview?

    > I would like to know whether its possible to start running a vi
    > automatically without user interaction after a system has booted up
    > and launched labview?
    >
    > I would like to know whether its possible to start running a
    > particular vi automatically without user interaction after a system
    > has booted up and launched labview?
    >
    LV doesn't have any sort of Startup folder as we are a little concerned
    about the security issues this brings about. You can specify VIs on the
    command line for LV to open. And VIs can be set to run when opened.
    Combining these features, you wind up using the system's Startup folder,
    placing either a batch file or a shortcut to LV with the command line
    options added to list out the VIs, and finally, set the VI properties
    so
    that the VIs run when opened.
    Greg McKaskle

  • Auto-install updates, with no user interaction?

    Due to problems with malware, we can't really trust everyone to be logged on with administrator privileges all the time as it used to be with Windows 2000 and XP. Consequently the installed software can not be modified by staff anymore.
    This doesn't affect Windows Updates since those can be configured to install automatically on a schedule without any user interaction or privilege elevation.
    Java for Windows however does not detect when a logged in user does not have administrative rights, so it offers updates to everyone who logs on, including people who can not and will not ever be able to install the updates.
    One "solution" is to turn off the update checking so that people aren't hassled by useless update notifications, but then this means Windows desktops will gradually fall further and further out of date, opening them up to attack by malware that exploits unpatched bugs in older Java versions.
    The proper solution that I really want, is for Java to be capable of auto-update and self-install without any user interaction or privilege elevation at all. However so far I have not found a solution for this.
    A hack may be possible using Windows group policy, the Windows Server task scheduler, and a java website screenscraper.
    Nightly:
    * Screenscrape Java.com for a newer client version
    * If new one is found, download, put in global read-access share
    * Using a database of machines known to be running Java, flag each candidate that's using an older version
    * Wake-on-LAN the machines needing the update
    * Schedule a remote install of the update with Administrative privileges
    * If update successful, clear flag for that machine in central database
    * shut down again for the night.
    OR
    Java programmers could implement an auto-install mechanism of their own, that can run by itself without user interaction at system startup, shutdown, or on a timed schedule set by the administrator through registry entries (and therefore configurable via group policy applied to desktops).
    ==========
    How are other network administrators handling managed business desktops that need periodic, automatic, and non-interactive Java updates?

    We use Altiris Software Delivery solution to deploy our Java updates but you could also use similar solutions such as Microsoft System Center Configuration Manager.
    The problem is that these are both options that cost money and require investment and training.
    Altiris allows you to create a collection based on the text string held in the Add/Remove Programs list (as well as other fields) - so you can easily create a collection of computers that do not have the required version of Java.
    You can then create a software delivery task to silently install Java with admin rights and target it towards the collection that needs updating.
    The collection updates dynamically. As the computers get Java they drop out of the collection and are no longer targetted for upgrade. This used to work well for me - as I could update about 500 machines in about 2-3 days.
    The problem is that the Java installer doesn't work consistently as you mentioned since JRE 6u25 - the installer doesn't always behave as expected and the switches to do silent installs keep changing. You also have a problem if you try to update Java and the person has their web browser open... Yes, I do my updates during working hours as well.
    In a constantly changing environment in terms of security - you'd think Oracle would have sorted the deployment options out by now?

  • Project Server 2013 - Remove user from resource pool via sync

    Hello everyone,
    has anyone managed to configure their Project Server 2013 box with a resource pool sync that will actually remove user from the resource pool (disable "User can be assigned as resource" or deactivate users) when the user is removed from the AD
    group(s)?
    Setup: Single box, SQL 2012 SP1, SharePoint/Project Server 2013 + PU March + CU April. 2 PWA instances, 1 in SharePoint and 1 in Project permission mode. Tried on 2 different machines (different setup, accounts, domains).
    Proceedings:
    Create AD user U, AD group G. Add U to G.
    Go to PWA, setup resource pool sync with G, sync.
    U is now in the resource pool, has no PWA permissions.
    Remove U from G. Resync resoure pool.
    U is still in resource pool, still a resource, still active, can still be assigned as resource.
    Adding U back to G an repeating the whole spiel with a resource pool and a PWA group sync of G will result in U being added and removed from the user list (as expected), and U being added but not removed from the resource pool.
    Having read
    http://technet.microsoft.com/en-us/library/gg982985.aspx and
    http://technet.microsoft.com/en-us/library/gg750243.aspx, there does not seem to be an omission on my part.
    The first article states:
    Note:
    The corresponding Project Server User Account is not deactivated based on this synchronization. If the same Active Directory user is configured to synchronize with a Project Server security group, the Project Server user account will be inactivated when
    that synchronization occurs. For more information, see
    Best practices to configure Active Directory groups for Enterprise Resource Pool synchronization in Project Server 2013.
    Unfortunately, this deactivation either does not seem to occur even with a PWA group sync or I misunderstood the article.
    So, did anyone manage to setup their resource pool sync in a way, that new resource will be added, but also be removed from the resource pool?
    Kind regards,
    Adrian

    Hi Adrian,
    you tried to sync the same AD group that you used for the resource pool sync also with a Project Server permission group?
    And on removal of the user of the AD group the project user/resource is not deactivated? Only removed from the group
    Regards
    Christoph
    Hi  Christoph,
    even though I might have tried that before, I tried it again in several constellations. It didn't change anything. The the user will be properly added to and removed from the PWA group whenever I remove them from the AD group, the use will also stay active
    (but cannot logon without permissions). However, the user will always remain in the resource pool, i.e. the "User can be assigned as resource." checkbox will remain unless it is cleared manually.
    Having re-read the technet articles, none of the scenarios actually seem to descibe or address the process that I require, or maybe I'm just misunderstanding. Let me just try to outline the core issue:
    Add user to AD group. Sync AD group with resource pool. User is now a PWA resource and PWA user.
    Remove user from AD group, but do not deactivate/delete user from AD.
    (Magic happens!)
    User cannot be assigned as ressource in PWA.
    So, is there anything to make this step 3 happen, or is it just not possible to sync users out of the resource pool anymore unless they are deleted/deactivated in AD?
    Kind regards,
    Adrian

  • Is it possible to remove "Revision" from standard check in

    Hi,
    Is it possible to remove or disable the revision text box in the standard check in screen. This number can be changed by the user each time the document is checked in. It can be changed to go backwards and use duplicated is the user changes it without giving an error i.e. 1 - 3 - 2 - 3. The documentation says "The revision increments automatically with each check-in of the content item, so generally, you should not change this value"
    Is there a way to remove/disable this from the standard check-in to prevent people changing it.
    Thanks

    Kizume and Rhm Zanz it should be still there as that is what manages that specific feature.
    In the top menu bar, where is says:      Finder   File   Edit   View   Go   Windows   Help
    Click on the Go, and in the same time click the option key on your keyboard near the space bar.  In that the drop down menu list the word Library will appear.
    Click on Library and Finder will open, look for the Preferences folder. Within that folder which should be in alphabetical order look for the file named, com.apple.sharekit.recents.plist
    Drag that file out of finder and unto your desktop. Close out the Finder window and close out all other your applications, including Safari, and reboot your Mac and once it turns on, reopen Safari and look at your share sheet. Any recents should be gone. That file named com.apple.sharekit.recents.plist will recreate itself on a clean slate in that folder. Should you encounter that you shared something again to a contact with Safari's share sheet, be sure to follow the same directions.
    Cheers!

  • Re-image computer with no user interaction at all - SCCM 2012

    I have searched many posts and havent found a clear solution for my question.
    Basically, I have OSD task sequence ready to go on my SCCM 2012 R2. It is fine to run it as "Available".
    If I deploy the OSD through Software Center as "Required" and "ASAP", then I login the client, the client will run OSD task sequence sometime after about 30Min-1 hour later, not sure. And there will be no user interaction needed. However
    this means I need remotely log into each computer to let OSD happen.
    If I deploy the same TASK Sequence as "Required" and "ASAP" through "PXE", it will first ask PXE Password(Which I set in DP->PXE Panel), then I need hit "Next" again to start the assigned OSD, which means I need
    physically go to each computer to do this. (EDIT: If needed, I can remove PXE password and add VB scripts in other Task Sequence, however I want to know if I still need press NEXT to start the OSD).
    The clients are not AMT enabled but Lan Wake up enabled and also can be set to LAN WAKE UP Enabled with boot from LAN. I can wake up/shutdown the whole collection with command if needed. 
    Is there a way that I can Re-image one collection of Computers without any interaction on client side?  
    The other question is how long to wait for OSD when it is set to "ASAP"?
    RockyOZ

    Guess I just answered question myself. With PXE Password removed, the OSD runs without user interaction. Thanks. I will add the password in task sequences instead.
    RockyOZ

  • Is it possible to remove any built in columns?

    I might have used some built-in columns in my list, is it possible to remove them?There is no DELETE button when I open the column. I am Admin of the site.
    Thanks.

    Hello,
    Why you want to remove them? Anyway you can't delete them but you can hide them from users while viewing the items (i.e. modify the list view and uncheck column which you don't want to show).
    I would suggest keep them as it is in list and create new column as per your business requirement.
    Hemendra:Yesterday is just a memory,Tomorrow we may never see<br/> Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • CSOM: remove user at web application level

    Hi,
      I want to remove  user at web application level so that the user will permanently be removed from all the site collections including their sub sites . I want to do it for sharepoint 2013 CSOM(c#) for an office 365 site.
    Please guide me.
    Regards,
    Chaitanya.

    Using Apps server object model is not possible. But mine is not an app it's a console application. I will maintain a list which has 2 fields peoplepicker and expirydate. Based on the content of the list i wll remove the users from the web-application level
    directly, if users expirydate is matched. This exe of console application will be put in a scheduler of another server to run it periodically.
    Please let me know my above scenario is possible or not?
    Regards,
    Chaitanya.

  • Silent Flash player Autoupdate over internet without user interaction

    Is it possible to set Flash Player to auto update without ever having any user interaction?  We don't have any internal application depending on flash player so I would like to install an version of flash update with auto update settings and forget it.
    I did install 15.0.0.152 with settings:
    mms.cfg:
    AutoUpdateDisable=0
    SilentAutoUpdateEnable=1
    But it has updated to 15.0.0.167 instead of 15.0.0.189.   Does the autoupdate use always the latest version or does it install only critical updates?  Why did I get 167 and not 189 ?  I can see that the task launching the auto-update run every hour, with default settings, but no new updates are made, wheter my browser (IE) is running or not.

    Please do the following.
    Open IE6, go to Tools and then Manage Add-ons.
    Change the menu dropdown (on the left) to "All Addons", then scroll down to Adobe (if it's there) and then check the version number. The current version is 11.1.102.55 (See screenshot)
    If it's not listed, or if it's a different version, download this uninstaller, but choose to Save it (doesn't matter where). Do not choose "Run". http://download.macromedia.com/pub/flashplayer/current/uninstall_flash_player_32bit.exe
    After you save the file, close IE.
    Run the uninstaller (even if Flash is not listed in Manage Add-ons) and then reboot.
    Next, go to: http://get.adobe.com/flashplayer/ and when you see the prompt, choose "Run" to install it immediately. Oh, and uncheck any third party installation options like the Google Toolbar / McAfee. You can install those any time.
    Go back to Manage Add-ons and confirm that 11.1.102.55 has been installed.

  • Remove user from group with MaxL

    hello,is it possible to remove a user from all groups he belongs to without knowing these groups?I want to execute a command such as "alter user my_user remove from ALL_GROUPS;"thanks for your help/

    Not sure if it's feesible, but you could use the 'drop user' command to remove the user from the system, which would of course remove them from all groups, then use the 'create user' command to recreate the user and reassign them to the proper groups.Good luck

  • Removing user name

    Is it possible to remove the uername that Lion inserts in the top right of the taskbar?

    Go to System Preferences
    Click Users & Groups
    Click Login Options
    Remove the check mark "Show fast users switching menu as"
    or leave it checked and change it from Full Name to Short Name or Icon

  • Automated cropping and resizing with user interaction

    Dear all,
    after hours of tests with batch processing and search in the internet maybe somebody of you can help me:
    I have roughly 3000 jpgs. in one folder (all different sizes and proportions), and I need all of them cropped to a specific proportion (width:height = 4:3) and then resized to a specific size (e.g. 800 x 600px). Batch processing can do a lot, but one critical step is not possible: As soon as one picture has been loaded into PS, I need a user interaction to determine the crop area freely (size and position) before the rest of the process (cropping, resizing and saving) can run automatically again.
    For example a picture of 2000 x 1000 px: The"crop window" lets me to choose an arbitrary area concering size and position (i.e.at 20px from the left, and 10 px from the top, size 1000 x 750 px = fixed aspect ratio  - and different for each picture), then the cropped area is resized to 800 x 600px, then it is saved.(Similar to the marquee tool with fixed aspect ratio)
    The crucial act is the interaction with the "proportional cropping". If the resizing is not possible in the first step, I coudl also do this with a second batch run myself.
    If somebody can help me, I would be very glad....
    Thanks a lot,
    Elmar Hartje

    This should give you the user resize then resize to 800x600.
    var doc=activeDocument;
    if(doc.width>doc.height){
    cropFourThreeRatio(true);
    doc.resizeImage(new UnitValue(800,'px'), undefined, undefined, ResampleMethod.BICUBIC);
    }else{
    cropFourThreeRatio(false);
    doc.resizeImage(undefined, new UnitValue(800,'px'), undefined, ResampleMethod.BICUBIC);
    function cropFourThreeRatio(landscape) {
    var startRulerUnits = app.preferences.rulerUnits;
    app.preferences.rulerUnits = Units.INCHES;
        var desc1 = new ActionDescriptor();
            var desc2 = new ActionDescriptor();
            desc2.putUnitDouble( charIDToTypeID('Top '), charIDToTypeID('#Rlt'), 0.000000 );
            desc2.putUnitDouble( charIDToTypeID('Left'), charIDToTypeID('#Rlt'), 0.000000 );
      if(landscape){
            desc2.putUnitDouble( charIDToTypeID('Btom'), charIDToTypeID('#Rlt'), 147.000000 );
            desc2.putUnitDouble( charIDToTypeID('Rght'), charIDToTypeID('#Rlt'), 195.750000 );
      }else{
       desc2.putUnitDouble( charIDToTypeID('Btom'), charIDToTypeID('#Rlt'), 127.500000 );
       desc2.putUnitDouble( charIDToTypeID('Rght'), charIDToTypeID('#Rlt'), 96.000000 );
        desc1.putObject( charIDToTypeID('T   '), charIDToTypeID('Rctn'), desc2 );
        desc1.putUnitDouble( charIDToTypeID('Angl'), charIDToTypeID('#Ang'), 0.000000 );
    if(landscape){
        desc1.putUnitDouble( charIDToTypeID('Wdth'), charIDToTypeID('#Rlt'), 288.000000 );
        desc1.putUnitDouble( charIDToTypeID('Hght'), charIDToTypeID('#Rlt'), 216.000000 );
    }else{
      desc1.putUnitDouble( charIDToTypeID('Wdth'), charIDToTypeID('#Rlt'), 216.000000 );
        desc1.putUnitDouble( charIDToTypeID('Hght'), charIDToTypeID('#Rlt'), 288.000000 );
        desc1.putUnitDouble( charIDToTypeID('Rslt'), charIDToTypeID('#Rsl'), 0.000000 );
    try{
        executeAction( charIDToTypeID('Crop'), desc1, DialogModes.ALL );
    }catch(e){app.preferences.rulerUnits = startRulerUnits;}
    app.preferences.rulerUnits = startRulerUnits;

  • Removing user access after hours

    All,
    We are running Oracle 10g. What is the best way to remove user access after hours say from 5:00 pm to 6:00 am? I have searched this site and the only thread that I found was Can I limit user access to Oracle DB based on time?? which is not helpful to me. My manager wants users to access the Database only during the user's work hours which is M-F 8:00 am - 5:00 pm. Any suggestions would be greatly appreciated.
    Seyed                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    >
    Creating a logon trigger will need a restart of the database, but I think it is the best approach.
    Am not sure why restart would be required?
    Possibly creating a seperate listener entry on a different port especially for the users could also be a solution.
    Then after 05:00 pm, stop that perticular listener only
    HTH
    What if I know the port number of another listener?
    FJFranken
    My Blog: http://managingoracle.blogspot.com
    If this answer satifies your question, mark the question as answered and award the points. It is appreciated!Regards
    Anurag

Maybe you are looking for

  • Problem with Connection Manager. Can't change connection string / Server name

    p.MsoNormal, li.MsoNormal, div.MsoNormal {margin-top:0cm;margin-right:0cm;margin-bottom:10.0pt;margin-left:0cm;line-height:115%;font-size:11.0pt;font-family:'Calibri','sans-serif';} .MsoChpDefault {font-size:10.0pt;} .MsoPapDefault {line-height:115%;

  • Calling US from Canada...Who knows the answer ?? Surely someone knows ?

    One time trip to Canada.. We bought a gophone to take a trip to canada later this year. Probably use the phone a dozen times or so while we are there, to make 5 min or so calls to the states..or get same from the states..so that's about 60 min or so.

  • Installing Final Cut Express

    Here's the deal, a friend installed Final Cut Express onto my iMac for a short time for me to test the application. I liked it a lot on decided to buy it. Here's the problem, after I deleted the old Final Cut Express (registered under my friends name

  • How to call procedure in Java from SQL Server Database

    Hello Every Body i Have Question about How to call procedure in Java from SQL Server Database Thanks

  • Some .gpx files not fully loading in Aperture 3

    I use the MotionX GPS iPhone app to create a .gpx file which I can import into Aperture 3. Some of the files do not completely display the tracked route despite multiple attempts. I have uploaded the same track to Facebook and it does display the ent