Firing keydown event from software`

I would like to know how to fire a keydown or mousedown etc. event from the program itself. Without actually pressing the keys or buttons.
Something to do with dynamic event programming?

Dynamic events are one of the best features added to LV 7.0 and have saved me a few times.  The idea is that you can add events which an event handeler can register for the only thing you have to do it decide on the parameters which define the event. basically you craete a user event, register for the event, pass the event to the dynamic event terimina (right click on the event structure and "show dynamic event terminal" then add the event case just as you do with a native event.  In addition you can turn on and off the dynamic events as needed.  I will post an example I did later if it would help.  Spent the time to learn dynamic events, well worth the effort.
Paul
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA

Similar Messages

  • Eventing from a PDK appln to a Webdynpro appln ! :(

    Hi,
    I would like to trigger an event in webdynpro and catch subscribe for it from a PDK application..
    (And passing data b/w WD appln and a PDK appln ...)
    How can i acheive the same..
    WDPortalEventing will work only across WD applns !
    Is their any API that suits my requirement !
    Any help is appreciated !
    Regards
    Bharathwaj

    Hi Bharath,
    You can trigger in WD and catch it in the PDK application.
    The following code is for firing an event from webdynpro.
    WDPortalEventing.fire ("urn:com.sap.tc.webdynpro.test.portal", 
                           "TestEvent", 
                           "AParameter");
    http://help.sap.com/saphelp_nw04/helpdata/en/5c/1d584289e59041e10000000a1550b0/frameset.htm
    It can be captured in portal using EPCF
    EPCM.subscribeEvent( "urn:com.sap.tc.webdynpro.test.portal",
             "TestEvent",Function_name);
    http://help.sap.com/saphelp_nw04/helpdata/en/f6/aebf40b87e0366e10000000a1550b0/frameset.htm
    Regards
    gEorgE

  • How to stop events from firing

    helo..
    is there a way to stop an event from firing.. or making an effect event if it was raised..
    for example in my application.. i have a JList which has a ListSelectionListener and a PopupListener... when i right-click.. the populistener fires.. and also my selection (say i made a select-all-items) gets changed.

    Remove one if the listeners??
    /Kaj

  • Ctrl-v key combo not working in keydown event in Adobe Air

    I am needing to capture the ctrl-c/ctrl-x/ctrl-v keys in the keydown Javascript event from within Adobe Air.
    I have managed to get the events to fire correctly.
    When I press ctrl, c, x, v, ctrl-c and ctrl-x, I get the correct corresponding keycodes. However, when I press ctrl-v, no event gets triggered.
    Is Air preventing the key presses from reaching this event in the case of ctrl-v?
    Here is the code I am using:
        document.getElementById('main_grid').addEventListener('keydown', keyDownEvent, false);
        keyDownEvent = function(e) {
            alert(e.keyCode);

    I'm surprised you get ctrl-c and ctrl-x. Do they work when you have selected text? What is probably happening is the default handler for the paste event is "swallowing" the keystroke. You could try listening for the paste event and calling the event object's preventDefault() method. (I haven't tried it, though, so I'm not positive that would allow the keystroke to be passed along.) If you are trying to create your own copy/paste functions, you might be better off listening for the copy and paste events themselves, rather than the raw keystrokes.
    Another alternative is to listen for the keystrokes on window.htmlLoader, which should get the keystrokes before they are passed to the HTML engine.

  • Can't pass event from WebDynPro to JspDynPage - why?

    I Created JSP project and embedded in main page script (in its title),
    which subscribes to event by EPCM API,
    EPCM.subscribeEvent("urn:ru.intertech.common.wd.component", "save",   go);
    and created WebDynPro page that fires event using, when pressing on some bution:
    WDPortalEventing.fire("urn:ru.intertech.common.wd.component", "save", navUrl);
    but first code newer receives that event...
    why so ?
    for test reason I tested firing EPCM event on same JSP page,
    and it was received,
    also
    I tested receiving Portal event  "urn:com.sapportals:navigation", "Navigate"
    it was received on same JSP page.
    both iViews is not URL isolated according their properties.
    WebDynPro package is:
    package ru.intertech.common.wd.component;
    note from else people expirence:
    Does it important that receiving and firing side must be in same package? as written there:
    https://www.sdn.sap.com/irj/scn/thread?messageID=462647
    "The problem was that I created the Sender Application in package "com.sender" and the Receiver Application in "com.receiver".
    I created them in the same package and it works."
    What means domain for JSP page or WspDynPro component?
    Does it important?
    =================
    JSP code is (changed script formattin to be able to post here, and removed else business content):
    [hbj_content  ]
      [hbj_page_title"]
      [script_type="text/javascript__"]
      //alert["title started"];
      //EPCM.subscribeEvent["urn:com.sapportals:navigation", "Navigate", eventHandlingFunctionName]; 
      //EPCM.subscribeEvent["urn:ru.intertech.navigation:epcm", "Navigate", eventHandlingFunctionName]; 
      //EPCM.subscribeEvent["urn:ru.intertech.navigation:epcm", "Navigate",   pop];   
      //EPCMP.subscribeEvent[ "urn:ru.intertech.navigation:epcm", "Navigate", window,"eventHandlingFunctionName"];
        EPCM.subscribeEvent["urn:ru.intertech.common.wd.component", "save",   go];
         EPCM.subscribeEvent["urn:com.sapportals:navigation", "Navigate", eventHandlingFunctionName]; 
         EPCMPROXY.subscribeEvent["urn:ru.intertech.common.wd.component", "save"  , window,   go];
      function eventHandlingFunctionName[ eventObj ]
         alert["title started=" + eventObj.sourceId + ": " + eventObj.dataObject  ];
      function go[ evt ]
         alert["go started=" ];
      </script>
       <hbj:form id="myFormId" >

    your reply is worth.
    what is the domains for views on one page?
    where to see it?
    Also, standard SAP MDM controls which we are using not working under any other browser except IE,
    I tested on FF and Google Chrome, they do not erform dynamic part of the controls.
    Despite this, debugging of scripts is important thing, so every piece is worth.
    One more detail:
    Also, two such a controls do not receive events from each other,
    but ony within self..
    why so ?
    Edited by: Vladimir Grigoryev on Jan 27, 2009 10:00 AM

  • Best practice for responding to keyDown event

    I am writing my first Cocoa application.  It's a simple utility app -- a calculator.  I've got everything working, the last thing I want to add is I want the app to respond to key press events.  So, you could click the "4" button with the mouse, or you could just press the "4" key on the keyboard.  I'm reading all the event handling documentation, but I'm not picking up on the recommended approach for getting an NSResponder (or NSView) that handles the event.
    I can make a subclass of NSWindow and tell the interface builder to make the main window of that type.  Then when I override the keyDown message in my new NSWindow subclass, it gets the events, but I'm not sure how to connect it to my application delegate class (since I basically just want to switch on the key pressed and call the corresponding message in the delegate that the button "select" action targets.
    Or, I think I heard something about doing this by changing the super class of the application delegate class from NSObject to NSView, or NSResponder or something.  I haven't poked at that idea much, but I'm not sure how to actually get the application delegate object then actually set up as the first responder (I think that's what I'd want to do).
    So, I'm hoping someone can give me specific directions on how/where I should implement my keyDown method, but I'd also like to understand what the recommended "best practice" is for doing this.  What would Apple say is the right architecture for doing this?  I'm as much interested in learning how to make this work as learning the Apple design pattern behind it.
    The structure of my program is as follows:
    I have one nib file (actualy a .xib) where I've designed my window with a textbox for display and a hand-ful of buttons.  I've registered outlets and actions from there to the AppDelegate class (the one that the standard project template sets up for you).  Following the MVC pattern, I then have a Calculator class that the AppDelegate initializes and all the actual logic of the calculator is in that class.  The AppDelegate basically just responds to messages from the buttons, passes them along to methods in the Calculator class, and then asks the Calculator for the current display value and updates that back into the textbox. So, the graphical elements in my nib file are the "view", the AppDelegate is the "controler" and the Calculator class is the "model".  Right? 
    So, who is supposed to be handling keyDown events?   Seems like the view should capture them and send them to the controller, but how do I set that up?

    Dear Noppong,
    You can do it with multiple ways like :-
    1. Get the current host name and make complete URL with using host name for the webdynpro iview.
    request = (IPortalComponentRequest) this.getRequest();
    HttpServletRequest req = request.getServletRequest();
    StringBuffer strURL = req.getRequestURL();
    2. Create the KM Document or Link for webdynpro Iview OR Create the WPC Web Page for the webdynpro ivew
    Refer to [http://help.sap.com/saphelp_nw70/helpdata/en/06/4776399abf4b73945acb8fb4f41473/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/en/06/4776399abf4b73945acb8fb4f41473/frameset.htm]
    [http://help.sap.com/saphelp_nw70/helpdata/en/06/4776399abf4b73945acb8fb4f41473/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/en/06/4776399abf4b73945acb8fb4f41473/frameset.htm]
    [http://help.sap.com/saphelp_nw70ehp1/helpdata/en/ff/681a4138a147cbabc3c76bde4dcdbd/content.htm|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/ff/681a4138a147cbabc3c76bde4dcdbd/content.htm]
    Hope it will helps
    Best Regards
    Arun Jaiswal

  • Why Photos in "Events from my Mac" are not in order?

    I am currently running iOS 8.1.1 on an iPhone 6 with 128GB on AT&T.  My iMac is running OS X 10.10.1 and iPhoto is at version 9.6 (everything up to date).
    As you might be able to see, when I go to "Events from My Mac" in the Photos app on my iPhone, none of the events are in order.  This makes it impossible to find anything when looking for a particular picture or album.  First off, what order are they even in? I cannot come up with any reason for the order that they are in.  Secondly, how can I switch it so that my events are in sequential order by date like they used to be on the old iOS.

    Meet the minmum software requiremets, subscribe to iCloud, log ina dn turn it on
    http://www.apple.com/icloud/setup/
    LN

  • I just purchased Aperture and have 20,000  photos in my iPhoto Library. Can I import only certain events from iPhoto into Aperture or do I have to merge the whole iPhoto library?

    I just purchased Aperture and have 20,000 + photos in my iPhoto Library. I see that I can create a unified library between the two. I am wondering if I can import only certain events from iPhoto (like only 2014 events) into Aperture or do I have to merge the whole iPhoto library? Are there any benefits to bringing the whole iPhoto library over to Aperture (iPhoto is SO SLOW for me, I wonder if it is because I have so many photos). Or, any detriment to only bring a few events over?
    And, if I don't merge the two libraries, I assume that means I cannot do it at a later date?
    Help. My local Apple store has had very few Aperture workshops, and the next one is like 2 months away.

    Thank you so much for this information. Here are some responses/comments:
    Disk space - it says 114.43 GB out of 499.25 GB free. I have no idea if that is enough.
    iPhoto version is 9.5.1
    Again, I am not sure how to know if I have 3rd party software...but I don't think I do. Is 3rd party software anything non-apple?
    I will try rebuilding the library. if that doesn't help, maybe I need more memory...? That is what Apple suggested, but that, of course, means buying something else. I've already bought APERTURE, on their recommendation...
    It wasn't, and they told me it was slow because I had too many photos for iPhoto to handle and that I should buy Aperture. Which I did.
    What is your iPhoto version? Are you using the most recent version 9.5.1?
    iPhoto can handle 20000 photos, no problem.  Your computer can be slow for several reasons:
    The most common problem for slowness - insufficient disk space. Don't let your free disk space drop below 20 GB of free space, better more. If the operating system does not have enough working space and the applications you are using, you will notice a very lagging behaviour.
    Older or incompatible softweare can cripple your mac. Do you have any older third-party software installed, that might have installed incompatible kernel extensions?
    Aperture might be slow or keep crashing, if you imported a corrupted image or incompatible video,  that cannot be processed. Then Aperture will try over and over again to create previews and never succeed.  You could test for this situation, by launching Aperture with the Shift-key held down. This will defer the generation of previews. If Aperture will launch and work better this way, you probably have some bad media in your photo library.
    Another problem to check for is a corruption of your Aperture/iPhoto library. You have run the First Aid Tools to repair the iPhoto Library, but have you ever tried to rebuild the library? See this post by Old Toad: Rebuild iPhoto Version 11

  • Webdynpro and eventing from team viewer

    Hi.
    We are trying to add new fields to the MSS "General Data" iView (com.sap.pct.hcm.eeprofilegeneraldata.par) and are considering the following approaches:
    1.) Write additional java code to retrieve the data we need and display it on the iview.
    2.) Create a new iview from scratch using webdynpro.
    At the moment we are leaning towards option 2 as we do not have much java experience and have found webdynpro relatively easy to use. But my question is....how difficult would it be for a webdynpro iview to pick up the eventing from the standard Team Viewer iview? I would want to make sure that when a user clicks an employee on the Team Viewer, his/her data would show up in the new webdynpro iview. Any details on how to go about this would be appreciated.
    Thanks in advance,
    Chris

    Hi Chris
    If you are creating a new  iview from the scratch to display the details you had to have the epcf subscribe function. Here you get the parameter passed from the first iview. For this the raise event have to be fired from the MSS iview. So in the Msssiview You write the code for Raiseevent ON click of the button.
    <b>Event Sending from par</b>
    EPCM.raiseEvent("urn:com.sap.tc.webdynpro.example.reponamespace","linkclickevent",variable);
    <b>
    Event Receving on Webdynpro</b>
    WDPortalEventing.subscribe("urn:com.sap.tc.webdynpro.example.reponamespace","linkclickevent",wdThis.wdGetEpcflistenAction());
    public void onActionepcflisten(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String dataObject )
        //@@begin onActionepcflisten(ServerEvent)
    //    wdContext.currentContextElement().setName(dataObject);
    //      wdComponentAPI.getMessageManager().reportSuccess("listen eventfired......");
         wdComponentAPI.getMessageManager().reportSuccess("dataobj is....."+dataObject);
        //@@end
    (The variable dataObject cannot be changed to other name)
    Regards
    Geogi

  • Event handler of inbound plug not called when plug fired by event handler

    Hello All,
    I have a rather bizzare problem, hopefully someone out there can figure out what is going on, as I'm rather stumped.
    I have 2 views, A and B. They are linked by plugs, InA, InB, OutToA, OutToB. OutToB is linked to InB from A to B, OutToA is linked to InA from B to A.
    There is an onActionLink in view A. Clicking on this triggers an action which calls the wdFirePlugOutToB method.
    In view B some handling is done in the method onPlugInB, then wdFirePlugOutToA is called to change the displayed view back to A.
    As far as the user is concerned they don't ever see view B. (this bit works perfectly!)
    Now also in view A I have an event handler which handles a event from the component controller. It also calls wdFirePlugOutToB.
    If I trigger an event in the component controller this event handler is called and the method called. However, when I put a breakpoint in the onPlugInB, flow never reaches here. Flow does get to the wdDoModifyView of view B but never to the inbound plug event handler.
    Any suggestions as to what I might need to do? I would have thought calling the wdFirePlugOutToB method would ALWAYS trigger the linked event handler onPlugInB.
    I am running NW04 SP18.
    Thanks!

    Hi Bharathwaj,
    The project I'm working on has a requirement to allow for a road-mapped process (FPM) which has one step in which multiple screens can be accessed. I'll give an example: A user in step A selects the cost centre that they want to work with, in step B they need to maintain several pages of information about this cost centre. The do not want to break this information into steps, as there is no logical progression from one step to the next, and it may well be that the user wishes to go from maintaining screen 1 to screen 3, and then screen 2, and then screen 4. Stepping between all screens (1->2->3->2->3->4) wastes time and is not very user friendly. Step C of the process confirms the data that the user entered in step B, and Step D is the validation that the changes have been committed to the database. (a very familar 4 step process for those using ESS).
    To allow for this requirement, I have designed a left navigation pane type screen. links appear on the left of the screen and the user can use these to navigate between different screens (implemented as FPM IVAC VCs) on the right of the screen.
    It is quite an elegant solution (even if I do say so myself although quite complex to implement. I have relied very heavily on reading the code SAP put together for the FPM. The most complex part is that in order to update the the content of view containers in an application you must trigger a web dynpro view navigation by firing a plug to a different view.
    Unfortunately I don't have any sample application code, only the finished product, which I can't really share. But I can say that if you look at the FPM code carefully, working from where the wdInit of the FPM is called, it will eventually make sense.
    One thing I found slightly frustrating, you can't use the FPM's component usage register (FPM method attachComponentUsage(IWDComponent, IWDComponentUsage)) to add a VC... darned inconvienient really (you'd think that the web dynpro framework could have implemented the concept of extending an interface, but the IBLC and IVAC interfaces are different! - even though the IVAC is just IBLC + a few methods), but then again you can manage the instantiation of the used VC yourself and call the onInit method of the VC passing the current fpm reference, to attach it to a common FC, and given that you should be sharing context through the FC and never the VC, then really this isn't too much of an issue. (I spent ages worrying that I couldn't add the instances of the VC that I was using within my navigation pane VC to the fpm instance list, until I realised that it really didn't matter!)
    One day - when I have time (yeah right!) I might put together a blog about this sort of stuff, in the meantime, it keeps me plenty busy enough not to have the time!
    Hope this helped in some small way,
    Cheers,
    Chris

  • I have an ipad mini, how can i bring in to the ical, events from my yahoo and google calendars

    i have an ipad mini, how can i bring in to the ical, events from my yahoo and google calendars

    You might ask at the iPad forum, the forum here is for developers of software.
    https://discussions.apple.com/community/ipad/using_ipad

  • Events from C# Control ? Urgent !!

    Hi all,
        Is there any way to handle events from a C# customcontrol in ABAP?
        When I used ActiveX controls, it was easy - just check by EventID in DISPATCH, and RAISE EVENT that would then be handled...
        But now, with C# controls, events are "delegate" functions, and I just can't figure out how to make ABAP subscribe to this tricky kind of event...
        Please, help!!!
    Thanks,
    Arnaldo.

    This article will explain how to declare and use the C# events in your application as Event Control. You can design your event control in couple of mints, making your event as control will be easy for GUI developers to implement events in client side.
    Here are the steps:
    Create one Windows Application Project
    Add “Component Class” using "Add New Item". This is going to be your Event Control.
    Declare your delegate in your Event Control under your namespace
    Now declare your event inside your Event Control class.
    Also add the FireTheEvent method to fire the event.
    Build the project.
    Go to Form, then ToolBox, add the Event Control using “Add/Remove Items” menu by right clicking on the tool box.
    Drag and drop the new control. Using the property window of the control you can easily implement the Event method in your application.
    Call The FireTheEvent method in your button click after adding new button to your form.
    Run the application and click on your button, you should see your Event firing.
    Here's a list of all the events for the DataGrid control:
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemWebUIWebControlsDataGridEventsTopic.asp.
    After referring to the DataGrid Event Handler (http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemwebuiwebcontrolsdatagriditemeventhandlerclasstopic.asp) information, I think you'll want your code to look something like this:
    <%@ Page Language="C#" AutoEventWireup="True" %>
    <%@ Import Namespace="System.Data" %>
    <script language="C#" runat="server">
    void Page_Load(Object sender, EventArgs e)
    // Set things up...
    void Item_Data_Bound(Object sender, DataGridItemEventArgs e)
    // Your event code
    </script>

  • Automatically add Date events from Microsoft Word,MS Outlook to ical?

    Hi
    Was wondering if theres anyway(native or software) for outlook,word or ical to automatically scan and add date events from docs,mail to ical so that i can sync it to my iphone

    I am anxiously awaiting delivery of my new 24 inch iMac and I've got tons of contacts and calendar data to export from MS Outlook in PC to my new Mac. I also got loads of emails to export from MS Outlook Express to Mac Mail which I'm beginning to fear.
    Would be a real relief if someone can provide some hints or ideas. Thanks a million.

  • Handling SAP Events from CPS

    Hello ,
              is there anyway can we handle SAP events from CPS  , our scenario is if we schedule a job in SAP from CPS , the job in SAP is firing an SAP event based job , how can we get the status of event based job from SAP to CPS.
    Regards
    Raghu

    Hi Raghu,
    There are a few options here.
    You could monitor the SAP event based job in CPS, to see the status.
    You could also create the SAP event based job from CPS, then it is automatically monitored.
    The best would be to verify if you can simply put the two jobs in a CPS job chain. If the second job only waits for the event and does not do anything with the message of the event, this should be very easy. If the ABAP programs involved are custom developments, you could remove the event dependency and replace it with a CPS job chain too.
    Regards,
    Anton.

  • Can I transfer photos in 'Events from my Mac' back to my iMac?

    I lost my entire iphoto library and I am not entirely sure how. I have run a few searches on my imac and cannot seem to find the hidden library anywhere. Luckily my library is still appearing on my iPad within a folder called Events from my Mac - any tips as to how I can move these pictures from my ipad back to my Mac please? When I open iPhoto on my Mac I am unable to see these, I can only see these photos on my iPad. Thanks.

    Meet the minmum software requiremets, subscribe to iCloud, log ina dn turn it on
    http://www.apple.com/icloud/setup/
    LN

Maybe you are looking for