Triggering an event on a picture created with LV Scripting

Hi,
I have a VI that is creating a scripted VI with a couple of pictures in it, opens the front panel and executes the scripted VI. Now I want to trigger an event by clicking on one of the pictures. I thought I might be able to do that using the mouse modifiers property node, but it looks like the VI does not react on events on the scripted VI's front panel.
If anyone had any idea on how to proceed I would really appreciate it.

Not sure I fully understand what you're trying to do, maybe if you post some code it would get clearer.
What sort of "picture" is on the scripted VI's front panel? A picture control of simply an image place on the front panel (that would then be a FP decoration).
If you want to generate a programatic mouse click, you can do it using user32.dll, see this :
Or if the scripted VI is running and has an event structure set to catch a mouse click on a certain FP control, maybe you could simply open a ref to that FP control and use a value (signaling) property node so that the event catches it.
Hope this helps
A good place to get help with scripting stuff is here : https://decibel.ni.com/content/groups/labview-apis
When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

Similar Messages

  • UI: Event Handling of forms created with the Screen Painter

    Hi,
    I created a form with the Screen Painter and saved it as XML document. After that, I loaded this form with the following code:
    <i>Dim oXMLdoc As MSXML2.DOMDocument
    oXMLdoc = New MSXML2.DOMDocument
    oXMLdoc.load("C:\form1.xml")
    SBO_Application.LoadBatchActions(oXMLdoc.xml)</i>
    Then the loaded form appears in the SBO application with all added items.
    Now, I would like to know how I could handle an ITEM_PRESSED event for a button of this imported form.
    It would be great if someone could help me with this problem and post some example code.
    Regards,
    Dennis

    Dennis,
    you have to create a function that will handle all the event receive from B1
    <i>    Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
            If (pVal.FormUid = "YourUIDForm") Then
                If ((pVal.itemUID = "YourItemUID") And _
                    (pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED) And _
                    (pVal.Before_Action = False)) Then
                    ' Here write the coe you need....
                End If
            End If
        End Sub</i>
    Off course, you need your variable SBO_Appliation declared as follow :
    Private WithEvents SBO_Application As SAPbouiCOM.Application

  • Event not triggering for SWEC entry (MM_SERVICE) on create

    Hi All,
    I have been trying to trigger a customised event for BUS2009 based on creation of the Change Object MM_SERVICE.  I have created an entry in SWEC as follows:
    - Change Doc Object: MM_SERVICE
    - Object Cat : BOR
    - Object Type: BUS2009
    - Event: RELEASEDREQCHANGED
    - On Create
    (no field conditions)
    However, the event does not seem to publish upon an insert of ESUH-SUMLIMIT (Overall Limit on the Purchase Req - a field in Change Object MM_SERVICE), as I am not seeing the event in SWEL.  Please note I have also tried to do this with field conditions in SWEC, but to no avail. 
    Alternatively, I have tried to setting the Change Doc config via SWU_EWCD, however, it comes back with an error message saying "No change document object for business object type BUS2009" - I believe this might have to do with the incompatibility of the key structures between MM_SERVICE and BUS2009.  We have written a function module to overcome this problem and placed same in SWEC, which is why the (BUS2009) event is currently publishing for "on change" of MM_SERVICE - is there any way around this?
    On the other hand, the event will publish OK if the SWEC entry is amended to "ON CHANGE" (with field conditions) - upon changing the value of ESUH-SUMLIMIT, not insert/create.
    Would anyone be able to kindly advise how I can get the event to publish upon "ON CREATE" as well?
    Thanks in advance.
    ~Andy.

    Thanks for your prompt response Surjith.
    However, I believe the above setup in SWEC is already configured for the purpose of triggering the event.  The customised event in BUS2009 (RELEASEDREQCHANGED) is linked to the Change Document Object MM_SERVICE via "on create" in SWEC - it's just that there are no events coming up in SWEL
    I have exactly the same config setup for RELEASEDREQCHANGED, MM_SERVICE via "on change" - and this is working perfectly fine (ie. I can see the event in SWEL whenever there is a change in any of the restricted fields of MM_SERVICE).
    My understanding is that upon "on create" (in SWEC), it is not necessary to set up field restrictions in order to publish the event.  In any case, I have tried to trigger the event both with and without any field restrictions, none of which came up with any event when a field in MM_SERVICE has been inserted.  This is the reason why I tried SWU_EWCD instead, however, due to the incompatibility in the key structure between BUS2009 and MM_SERVICE, the transaction did not allow me to complete the setup.
    Is there any way around this?
    Many thanks.
    ~ Andy

  • How create mail alert without triggering the event.

    1.     SR 3-4924626351: How create mail alert without triggering the event.
    We wanted to send alert mail every 10 days or 15 days or 1 month to a reporting manager of Opportunity Owner with details of that Opportunity. I don’t want to use any triggering of event like the Following. When new opportunity is created When modified Opportunity is saved etc.

    Raju,
    If you don't want to use the triggering event, you will have to do this manually.
    Manually:
    - Create a Web Link on the SR with and embed the mailto: function with the receivers email and subject and body embedded in the url (you can find this link on Google)
    - When this link is clicked, an email window will open with all the details you provide, and you can click the send button to send the email.
    - You will have to do this manually every 10-15 days or whatever is the duration
    Auto:
    - Create a time based workflow on a new Opportunity Created event
    - create a action to send an email notification to the concerned person (details in the workflow properties)
    - This workflow will auto send an email every 10-15 days to the opportunity Manager.
    The time based workflow is the best option I see. Do you see any issue/ concerns with auto generated emails?
    Hope this helps!
    Royston

  • How to create a picture presentation with text ?

    I need to create a 2 minutes video of a Bus rental company, the video has to be created with pictures text and voiceover, the text will be the subtitle of the voiceover so that the video can also be used without audio...
    I would like to make it in FCPX but I never worked with pictures in video, is there any cool plugin that you know or any particular method to create nice slideshows in FCPX ??
    Any other suggestion is welcome.
    Thanks a lot !

    I'm not familiar with any slideshow plug-ins compatible with FCPX and a quick search didn't turn up anything very promising.
    But FCP itself has plenty of capability for creating multimedia projects like this. Keyframing is pretty straight forward (easier than the old FCP) and gives you plenty of control over timing of moves and effects. And you should be able to use the stock titling tools to do your sub titling.
    Another approach would be to use iPhoto or Aperture (or some third party photo editor) to make your slideshow. (You could use one of the photo editor slideshow templates if one of them appeals to you.) Then export the slideshow as a Quick Time movie and bring that into FCP to edit your audio and subtitles into the presentation. Keynote could also be used like this.)
    Finally, if you are (or can get) comfortable working in Motion, you can create compositions that will be both and impressive and unique to your client.
    Good luck.
    Russ

  • We would like to create a picture book with text, pictures and music. What can we use, is there a template?.

    We would like to create a picture book with text, music and pictures.  Is there a template for this or an app.  What are people using for picture books?

    Have you looked at iBooks Author?
    http://www.apple.com/ibooks-author/
    It has its own forum at
    https://discussions.apple.com/community/books/ibooks_author

  • When I create a calendar on my mac it automatically syncs with my iPhone but none of the events on that calendar sync with my phone. How do I fix this?

    When I create a calendar on my macbook it automatically syncs with my iPhone, but none of the events on that calendar sync with my iPhone. How do you fix this and make it so everything syncs.

    Using iCoud?
    On the iPhone tap Settings > iCloud
    Make sure Calendars is switched ON.

  • Problems with Mouse Down event for a picture control embedded in tab.

    I noticed that when trying to get a Mouse Down event for a picture control that the Mouse Down will not be 'fired' if the picture is embedded in a tab control. It also appears that this problem exists for other controls (I only tested a slider in addition to the picture). It isn't much of an issue for me now as I can just poll the mouse property of the picture control, but the Mouse Down event has information that I may want access to in my next software revision (button pressed, and Alt mod). I could do that by handling the Mouse Down event for the tab itself and checking to see if the the mouse property isn't -1, -1 for the picture, but that seems a little bit too kludgy (sp?) to me and wouldn
    't address the issue with other control types. Any chance of this being addressed by a patch sometime in the next couple of months???
    Attachments:
    TabProblem.vi ‏69 KB

    The problem I reported above was in LV 6.1.
    As a work-around, I used the mouse down on the tab control and did the math to decide if the picture was clicked.
    I have been told that this was fixed in LV 7.0. I can not confirm.
    You could call NI and ask about the service request number I cited above.
    I hope this helps,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How do i get my photos to stream to my iPad in the events that were oringally created.  Right now they are streaming as photos and are not grouped at all.  I would like to get them back into the events that were originally created

    how do i get my photos to stream to my iPad in the events that were oringally created.  Right now they are streaming as photos and are not grouped at all.  I would like to get them back into the events that were originally created

    Hi..
    Thanks for the reply..
    My original I Phone 5 was running IOS 6.12
    My I phone 5S currently runs IOS 8..When I upgraded it, it had IOS 7 on it which made the I Photo app compatible with everything below IOS 8...( which the photo app is not compatible with ) so I just connected the I Phone 5S to my computer and thinking the new phone had IOS 7 on it that these was nothing to worry about..I thought all 900 + pictures in the photo stream would transfer but somewhere in the process, I Tunes decides to just go and install IOS 8 which requires that you run a " Photo Migration App" to transfer photos from IOS 7 & below. The problem was is that I didn't want IOS 8 on my new 5S so I thought I wouldn't have to do that part..
    Anyway the phone emerged with IOS 8 on it and the only photos that remained were the ones that were actually on the phone..The 900 + I had in the stream didn't transfer because the Photos that works on IOS 7 and below isn't compatible with IOS 8..I guess you have to use the photo migration app that comes with IOS 8 & I phone 6..But I didn't ask to upgrade to IOS 8...It just did it on it's own!
    I still have the I Phone 5 Back up that I did just before giving it back to Verizon but if I try to restore the I Phone 5S running IOS 8 those photos in the stream will not go back on the phone because IOS 8 isn't compatible with the I Photos" that ran on IOS 7 and below..
    So I have an I Pad mini that runs IOS 7..should I try and erase it...and put that I Phone 5 backup on it and pray the photos that were in the stream come back on it so I can transfer them back to my computer...then erase the I pad mini again and restore it using it's original backup that I have on the computer and the in the cloud?
    I know this sounds confusing but I'm at a loss as to what to do..This is what I found ...http://support.apple.com/en-us/HT201386
    but it doesn't help me..
    Steve

  • Event date does not agree with photo dates in the event

    Mavericks 
    Iphoto 9.5.1
    I have made a new event and put lots of genealogy pictures for one family member in it.  I changed all the photos to Jan 4, 2002.  These are docs, pics, obits, etc. Thus I have given this one person this date.  Other family names  have another date.  I modified all the original files within each event.
    Beside this couples name on the "Event" label it says Jan 3, 2002 - August 23, 2014.  Therefore it shows itself in the Jan 3, 2002 group of people.  That is about 20 family groups up the page.   
    I have done the following:
         --Made sure that there are no pictures with the date Jan 3, 2002 in the event
         --Have taken all the pictures in the event and separated them out into new events--census, certificates, pictures, obits, etc.  Thought I would trick the event to restarting! 
         --Did a "select-all"  of that event and created a new event--same thing.
         --Closed down iPhoto and started over again.
    I have no idea why the Jan 3, 2002 is showing up.  These are one side of the family.  The January 4 is the other side!
    On August 23, 2014, I did take a couple of the cemetery pictures in this event.  However, they were given the new date of January 4 and Modified the original files using the checkbox.  I put the same picture in another family member's event and it is OK.  I
    Hope I have given enough details.

    I think I have solved it!  After much frustration and then writing for help, I was not to be stopped.  I kept looking up other helps and one person suggested that one of the pictures might be a problem.  So I tried that approach.  I made an event just out of the "possible" problem pix (the August  2014 date.)  It was not causing a problem in another event, however.   From that  event with the same pix, I exported the pix to the desktop, and then imported the pix back into iPhoto.  Then I put them into the event that was having the problem.  So far so good.  The date of the event matches all the dates of the photos.  I will now delete the "problem children."
    Maybe this will help someone else. 

  • Workflow triggered.. But no instance created for BO.. !

    Hi.. I am triggering a workflow.. its been successful but the BO instance not been created..
    The workflow object is not-set.. !
    Any idea how to solve this.. ?
    Cheers

    Hi Mate.. Thanks for that..
    When I check the workflow container it says <No Instance> for the BO ZBUS2075.. Which I copied from BUS2075 and add a event to it..
    Its triggering a event from that BO.. but there is no instance of that object available in workflow container..
    The Key Field status <Not Set>
    Not sure is something with BO I need to activate.. ?
    Cheers

  • To catch click event on a picture on screen

    How to catch the click event on a picture on screen? Please answer with code.
    regards
    agn

    Try this code....
    REPORT  zaby_pic.
    CLASS cl_picture_click DEFENITION.
    PUBLIC SECTION.
    METHODS: picture_yclick FOR EVENT picture_click of cl_gui_picture IMPORTING mouse_pos_x mouse_pos_y.
    ENDCLASS.
    CLASS cl_picture_click IMPLEMENTATION.
    METHOD: picture_yclick.
    Perform onclick. "write the action of click in this form.
    ENDMETHOD.
    ENDCLASS.
    DATA: obj_cl_picture_class TYPE REF TO cl_picture_click.
    DATA: it_event_picture TYPE TABLE OF cntl_simple_event,
          wa_event_picture TYPE cntl_simple_event.
    MODULE status_001_output.
    wa_event_picture-eventid = cl_gui_picture=>eventid_picture_click.
    wa_event_picture-appl_event = 'X'.
    APPEND wa_event_picture to it_event_picture.
    CALL METHOD h_picture->set_registered_events
    Exporting
        events = it_evet_picture
    Exceptions
        cntl_error                = 1
        cntl_system_error         = 2
        illegal_event_combination = 3
        OTHERS                    = 4.
    CREATE OBJECT obj_cl_picture_click.
    SET HANDLER obj_cl_picture_click->picture_yclick FOR h_picture. "h_picture is the object of class cl_gui_picture.
    ENDMODULE
    ...................Hope this code will help you. Thanks.

  • I keep getting the message "the photo library was created with an unreleased version of iphoto.  I have reinstalled but still get the message. What do I need to do?

    I have had my iBook for years with iPhoto on and then suddenly today I get the message "The photo library was created with an unreleased version of iPhoto.  Please quit and upgrade this photo library by opening it in iPhoto 2 or iPhoto 4.  I reinstalled iPhoto but nothing has changed.  What do I need to do to get it working again?  Help!!

    Try these in order - from best option on down...
    1. Do you have an up-to-date back up? If so, try copy the library6.iphoto file from the back up to the iPhoto Library (Right Click -> Show Package Contents) allowing it to overwrite the damaged file.
    2. Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.
    3. If neither of these work then you'll need to create and populate a new library.
    To create and populate a new *iPhoto 08* library:
    Note this will give you a working library with the same Events and pictures as before, however, you will lose your albums, keywords, modified versions, books, calendars etc.
    In the iPhoto Preferences -> Events Uncheck the box at 'Imported Items from the Finder'
    Move the iPhoto Library to the desktop
    Launch iPhoto. It will ask if you wish to create a new Library. Say Yes.
    Go into the iPhoto Library (Right Click -> Show Package Contents) on your desktop and find the Originals folder. From the Originals folder drag the individual Event Folders to the iPhoto Window and it will recreate them in the new library.
    When you're sure all is well you can delete the iPhoto Library on your desktop.
    In the future, in addition to your usual back up routine, you might like to make a copy of the library6.iPhoto file whenever you have made changes to the library as protection against database corruption.

  • Accounts being created with administrative group rights

    Hello,
    The server is a Windows 2003 R2 Enterprise fully patched used for Shared Hosting purposes.  It runs Hsphere control panel.  I am trying to identify how the following hack is happening. 
    1) There are users being created with Administrative group rights.   Below is the EventViewer log for the user creation:
    User Account Created:
         New Account Name:    username
         New Domain:    PCNAME
         New Account ID:    PCNAME\username
         Caller User Name:    PCNAME$
         Caller Domain:    DOMAINNAME
         Caller Logon ID:    (0x0,0x3E7)
         Privileges        -
     Attributes:
         Sam Account Name:    username
         Display Name:    <value not set>
         User Principal Name:    -
         Home Directory:    <value not set>
         Home Drive:    <value not set>
         Script Path:    <value not set>
         Profile Path:    <value not set>
         User Workstations:    <value not set>
         Password Last Set:    <never>
         Account Expires:    <never>
         Primary Group ID:    513
         AllowedToDelegateTo:    -
         Old UAC Value:    0x2DAB2B0
         New UAC Value:    0x2DAB2B0
         User Account Control:    -
         User Parameters:    <value not set>
         Sid History:    -
         Logon Hours:    <value changed, but not displayed>
    There exists entries as well where the primary group ID is changed to the Administrative group, but I am omitting such.
    2) I tried to identify what Caller Logon ID:    (0x0,0x3E7) means.  I found out from here:
     http://blog.joeware.net/2013/01/14/2667/ that I can use LogonSessions.exe to identify it.
    Output from LogonSessions.exe is pasted below (snippet):
    [0] Logon session 00000000:000003e7:
        User name:    DOMAINNAME\PCNAME$
        Auth package: NTLM
        Logon type:   (none)
        Session:      0
        Sid:          S-1-5-18
        Logon time:   9/11/2014 12:41:53 PM
        Logon server:
        DNS Domain:   
        UPN:          
            4: System
          316: smss.exe
          364: csrss.exe
          392: winlogon.exe
          440: services.exe
          452: lsass.exe
          628: svchost.exe
          756: LMAgent.exe
          840: svchost.exe
         1000: spoolsv.exe
         1252: avagent.exe
         1268: camWMIAgent.exe
         1324: cissesrv.exe
         1380: cpqrcmc.exe
         1404: vcagent.exe
         1440: svchost.exe
         1480: HsQuotas.exe
         1740: inetinfo.exe
         1780: EmailAgent.exe
         1856: snmp.exe
         1884: sysdown.exe
         1920: smhstart.exe
         2192: svchost.exe
         2388: cmd.exe
         2396: hpsmhd.exe
         2444: cqmgserv.exe
         2464: cqmgstor.exe
         2484: HSphere.exe
         2596: wmiprvse.exe
         2676: cmd.exe
         2684: rotatelogs.exe
         2692: cmd.exe
         2700: rotatelogs.exe
         2732: searchindexer.exe
         2812: hpsmhd.exe
         2824: cqmghost.exe
         2852: svchost.exe
         3044: cmd.exe
         3052: rotatelogs.exe
         3080: cmd.exe
         3088: rotatelogs.exe
         5452: svchost.exe
         5596: GravitixService.exe
         7392: csrss.exe
         7232: winlogon.exe
         6888: csrss.exe
         9832: winlogon.exe
        10388: wawrapper.exe
        10352: cpqnimgt.exe
         9496: msiexec.exe
         6068: w3wp.exe
         4748: webalizer.exe
    3) I also learned from http://support.microsoft.com/kb/243330/en-us that   Sid:          S-1-5-18 means:
    SID: S-1-5-18
    Name: Local System
    Description: A service account that is used by the operating system
    That is all great info, but I am not sure I can put together what I have learned to attempt and get closer towards identifying how in the world users are being created and then being assigned administrative group rights.
    I am a Linux person mostly, but I am comfortable following a properly explained thread regarding windows 2003 R2 Enterprise issues.
    The server is fully patched and it is running Lumension security product.  What's more, Norman Malware tracker, tdskiller.exe (Kaspersky) and McAfee rootkitremover.exe have been run without any apparent Malware/Virus infection
    Hope someone with advanced admin skills can advise.
    Thank you

    Hi,
    You mentioned that, “I am trying to identify how the following hack is happening”, would you please tell us that why did you think the event represent a hacking behavior?
    In a Shared Server Hosting environment, the underlying hosting control panel tool (Hsphere in this case) should be creating only virtual FTP users with a specific group.  So no users with Administrative group should be ever created.  If this happens,
    it constitutes a breach of server security=positive hacking attempt.
    >how in the world users are being created and then being assigned administrative group rights.
    In addition, would you please be more specific about this question? Did you find the event message on a domain joined machine?
    I want to be able to understand in full how/what process is allowing users to be created with Admin rights.  In other words, I want to know what IP was used to issue the command, if ASP.net was used (abused in this case), or anything else related to
    it so that we can patch this particular hole.
    Best Regards,
    Amy

  • HT2513 my iCal calendar that I created with the color green keeps changing to purple.  no matter how many times I change it to green, it turns it back to purple.  Of course this only happens with iCloud and not "from my Mac".  Any ideas?

    my iCal calendar that I created with the color green keeps changing to purple.  no matter how many times I change it to green, it turns it back to purple.  Of course this only happens with iCloud and not "from my Mac".  Any ideas on how to correct this?  This seems like a trivial error, but it's super annoying.

    I called Apple and they said that they know about this problem.  It's a problem with iCloud which their Engineers know about.  (there was a new iCloud release, hence...)  No ETA for a fix yet.  I asked that this be escalated so Engineering doesn't put it at the bottom of their fix list.  I talked to a Senior Advisor and mentioned to them to have QA check their regression tests as this has happened before to me (the problem just didn't take this long to resolve).  I like to use green too for important stuff, so I've resorted to creating a new calendar using the normal calendar green for events going forward.  They could have picked another color besides green to have this problem with and I wouldn't have been so upset.  ;-)

Maybe you are looking for

  • Macbook Vs iMac

    I know this sounds mental, but with the same speed hardware and memory is the iMac slightly faster then a Macbook because it's a desktop computer?????

  • Allowing updates over cellular data

    The recent iOS updates are minor and the saddest part is that, it requires to have Wifi to update. It's great if it's allowed (say like less 100 MB) over cellular network. Also, iTunes downloads entire update (close 1GB) regardless of the version run

  • ITunes won't open on my PC anymore

    It startes About a week ago, anytime i attempt to open the iTunes application on my computer, I get an error message that says "iTunes has stopped working," followed by "check for a solution online and close the program" or "close the program." Neith

  • J2EE 1.4 Tutorial, run application

    Hi, I am following the tutorial, and have deployed the bookstore1 application. However, I am not able to access it, through the suggested URL http://localhost:8080/bookstore1/bookstore. My server could be running on some other port, as it says HTTP P

  • Ipad - Can't dowload a film

    I have downloaded a film on to my ipad through itunes. When I go into videos I have only a grey box. I double click on that and it gives me the plt summary but not the film. I have phoned itunes who say they can see it in the queue for downloading. T