How to retrieve last mouse button that was clicked?

Is there a function that gets the last mouse button that was pressed? I am creating a GUI in the MATLAB environment, and its mouse button detection abilities are quite limited. Since MATLAB can import Java classes, I am hoping I can get around MATLAB's limitations by issuing a java command that will tell me which button was pressed (in MATLAB a cntrl left click and a right click are given the same tag!!!!)
If this is possible, can someone show me the java code to get the mouse click info (note: I do not need any java mouse action callback behavior - I just need to know the last mouse click)
-brian

This is probably something that you will have to do yourself. You can use the MouseListener interface and then store the last mouse click in a class variable. This is only theory to me as I have not done it myself.

Similar Messages

  • How I retrieve a purchased app that was taken down?

    Hello. I would like to discuss with this problem that I have just encountered. Recently, I've chosen a back up storage and then iCloud was restoring my iPhone. There was a link of the app showing that it was there then suddenly it vanished off the iPhone screen. I've tried to restore it again and again. Same thing happened, link of the app was showing and then in a matter of seconds, it vanished. I checked my apple account(I have also checked in the hidden purchased apps, I got zero results) , the app that I have purchased for $3.99 was no longer existed. They said that the developer of the app(Yu Zeng) took it down, due to lack of office use. I really loved that app and I paid good money for it. So the question is,"How do I retrieve a purchased app that was taken down? Or "Is it possible to retrieve a purchased app that was taken down?" If there is any solution to this matter, please do tell. I really need a lot of help!
    Video Downloader Pro is the app that I really loved.
    Message was edited by: Zammy95

    osKco wrote:
    I have not tried to repurchase it since it does not say installed when I look it up
    Because it is not installed on your iPad.
    If you are signed inot ht eiTunes store wioth the same account used to purcahse that app, click on Buy and it will tell you that you have already purcahsed it and ask if you want to redownload it.

  • Using Cap6, need to create menu screen that allows user to click a button, branch to other screens, and return to main menu. When returning to the main screen the button that was clicked will be grayed out or inactive.  How do I do this?  I created image

    I am trying to emulate a piece of equipment.  I need the user to be able to click on specific buttons that will take the user to another screen(s).  After viewing those screens the user will be directed back to the main screen where the user would know which buttons had been pressed and which still needed to be pressed.  I create image buttons with the 3 states - that worked except when the user returns the slide is reset and so the user does not see the 3rd state of the button.  How can I get that 3rd state to stay after user returns to the main screen? 

    Hi Elizabeth,
    Since I just did this morning what you are currently attempting to do, I thought I'd share my method.  I must provide a disclaimer and tell you that I am not an expert in Captivate advanced actions--like you, I am still figuring them out.  However, I am happy to share here anything I have learned thus far.
    First, here is what my initial slide looks like (see interaction slide below).  I created all of the icons (including the 'grayed out' icon on the second screenshot) in a few minutes using Adobe Illustrator. The icons have been imported as custom multi-state buttons so that I could have the desired effect when the user hovers over the image--the yellow 'explore' flag appears only when the mouse is over the icon. When the learner click either image, they are sent to the corresponding slide.  Once both slides are viewed, a 'continue' button will appear at the base of the screen (something I've not figured out--I sent an email to Lieve begging for some guidance). 
    The initial slide (interaction slide):
    Second, here is a depiction of what happens when the learner returns to the interactive slide from the content slide (see image below):  Once the learner visits the 'Battery Content' slide and then returns to the interaction slide, the images have changed.  The multi-state button is hidden (through the advanced action), the replacement image (the image with the completed banner over it) is shown, and a hidden click box to allow the user to return to the previously visited page (just in case they desire to do that) is "shown" to allow navigation since the button is no longer there (because it is magically hidden).
    Content Slide 1:
    Remember, there may be an easier way to do this in Captivate.  I am using Cp6 for this module.
    1. I created two user variables as follows
    Name: v_batteryExplore
    Value: 0
    Name: v_fuelExplore
    Value: 0
    2. I created an advanced action for each as shown below (showing only one--duplicate the first and change the names to match the content):
    Credit: I learned these steps from @Lilibiri and Dr. Pooja Jaisingh!
    I have also noticed that it matters where the buttons are located on the timeline.  It seems best to have buttons above all other content.  Not sure why, but I have had images not appear when I have not done this.
    And the last step you do not want to forget; you need to remember to tell Captivate to use the action.
    As a final note, remember that the elements you do not want to appear on the initial screen must not be initially visible.  Make sure to set them to invisible by removing the checkmark in the 'Visible in output' box located next to the button name.  In my case, the image of the completed battery and the invisible button to allow a revisit of content was initially hidden.  Here is a final screenshot of my timeline for this interaction.  I hope this information helps you!

  • How to retrieve a deleted iMessage that was not backed up

    hhow do I find a number I didn't save but sent a iMessage to?

    If it is just the number you are looking for - not the message itself - and you can recall at least the first digit or two, you may be able to locate it accessing the recent contacts in the Messages app. Start a new message; type in the first characters of the number (at least as many as you can recall), and look for recommended entries that have an icon. Those should be recent contacts that are not in your contacts app.

  • How can I retrieve a mail message that was accidentally deleted.  It's not in the trashcan.

    How can I retrieve a mail message that was accidentally deleted.  It's not in the trashcan. 

    Which trashcan, mail or osx

  • My iphoto display the same picture throughout the whole album.  How do I undo that.  The last thing I did was clicking on something with sharing/privacy. thank you.

    My iphoto display the same picture throughout the whole album.  How do I undo that.  The last thing I did was clicking on something that has to do with sharing/privacy.  All my pictures are still there.  Thank you

    My iphoto display the same picture throughout the whole album.  How do I undo that.  The last thing I did was clicking on something that has to do with sharing/privacy.  All my pictures are still there.  Thank you

  • How can I retrieve my calendar info that was sucked from my iPad 2 after upgrading to OS V and backing up to iCloud (using Windows XP computer with Outlook)?

    How can I retrieve my calendar info that was sucked from my iPad 2 after upgrading to OS V and backing up to iCloud (using Windows XP computer with Outlook)?

    I think (and I'll double check) only the BBLink events will sync on a wired USB sync. I'm fairly certain of that.
    You'll need to use your calendar syncing via an EAS email account (outlook.com, for instance, is free) to sync wirelessly. It works great. I use it and was a former tied to the USB sync guy as well... and I thought I was gonna die a painful death without it. I found more freedom this way.
    This explains the process. But I don't think you'll get BBM Groups to sync.
    http://supportforums.blackberry.com/t5/BlackBerry-​Z10/How-To-OTA-Sync-BB10-and-non-BES-Outlook-Overv​...
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • HT1766 I cannot backup my iphone, it keeps telling me the backup is corrupt and not compatible. All forums have suggested I delete the last backup but that was months ago and I'm afraid if I do that and it still doesn't work, I won't have anything saved

    I cannot backup my iphone, it keeps telling me the backup is corrupt and not compatible. All forums have suggested I delete the last backup but that was months ago and I'm afraid if I do that and it still doesn't work, I won't have anything saved. Can anyone help?

    Try to connect in recovery mode, explained in this article:
    iOS: Unable to update or restore
    Before that, back up your device, explained here:
    iOS: Back up and restore your iOS device with iCloud or iTunes
    How to back up your data and set up as a new device
    You can check your warranty status here:
    https://selfsolve.apple.com/agreementWarrantyDynamic.do

  • TS1702 How can I delete an app that was purchased?

    How can I delete an app that was purchased?

    Delete an App Store app: Touch and hold its icon on the Home screen until the icon starts to jiggle, then tap the "x" . You can’t delete built-in apps. When you finish, press the Home button.
    Deleting an app also deletes all of its data. You can re-download any app you’ve purchased from the App Store, free of charge

  • How do I unpause a book that was being downloaded?

    How do I unpause a book that was being downloaded?

    iTunes: How to resume interrupted iTunes Store downloads
    From the Home screen, tap the iTunes icon.
    For iPhone/iPod touch, tap More > Downloads. For iPad, tap Downloads.
    Enter your account name and password.
    Click the "OK" button.
    Click the Resume, Resume All, or  button to start the download.

  • HT1766 How can I retreive a video that was deleted from my iphone??

    How can I retreive a video that was deleted from my iphone??

    If it was a video taken on your iPad, and if you have it backed up from the last time you did an iTunes (or iCloud) backup, then yes, you can restore your iPad using that backup.

  • Set variable equial to button name that was clicked

    I know how to do this in Flash, but don't see a way to do it in captivate? When one of 26 buttons are clicked, I need to set a varaiable with the button name. Then jump to a page that has 26 grahics hiden. On enter I need to unhide the one named the same as the button.

    I'm glad I saw this post at the top of the list.  I wanted to do this too.  I have 15 click boxes that are used as bonus points.  When clicked I would like to do the following:  (1) Hide the click box and icon group that was clicked.  (2) Increase my "score" variable.
    It would be nice if it used the "this" function, like is done in Jquery / javascript, along with wildcards in the variable name.  This way, I could create 1 Advanced Action script that could work for any of the click boxes.
    Oh well...I'm off to creating 15 scripts.  Maybe I'll watch a movie while I do it. 
    Micky

  • What happend to the Firefox triangler list history button that was just below the forward buttton.

    What happened to the Firefox 3.x triangular list history button that was just below the forward button? It was kind of small. It was on the line with the web address.
    Is there some option for getting it back?
    I am running tenfourfox. I do not see a forum for them. I know it is a port of FireFox 4.0, so maybe the answer will be the same.
    The history drop down is :
    -- in an inconvenient location
    -- has extra junk at the top
    -- is limited to ten items. Is there a way to increase the number ?
    Robert

    Use one of these methods to open the tab history list:
    * Right click on the Back or Forward button
    * Hold down the left mouse button on the enabled Back or Forward button until the list opens
    You can look at this extension:
    * Backward Forward History Dropdown: https://addons.mozilla.org/firefox/addon/backforedrop/

  • How to change a phone number that was set-up when ipad was being set-up. It was my wife's and not mine. want my number as the main number.

    How to change a phone number that was set-up when you first set Ipad up. Took wife's number instead of mine. Her number is on i-cloud and messaging, face time.

    Goto -settings-iCloud-delete account u will then have to set up a new iCloud account.if u do this it will delete anything u may have backed up in  iCloud on your old account.

  • How can i activate an ipad that was attached to someones icloud account.  I am not able to reach the person to have them release it.

    how can i activate an ipad that was attached to someones icloud account.  I am not able to reach the person to have them release it

    You can't, i'm sorry. What you're running into is the activation lock and it requires that the original owner release it with their apple ID before you can set it up.

Maybe you are looking for

  • Is there a way i can take the songs from my ipod touch and put it on a new computer and a new itunes?

    so i just got a brand new laptop(windows) and i have an ipod touch. most of the music on my ipod i bought straight from itunes ON my ipod. is there a way i can transfer the music i have on my ipod to my new computer?! Please help!! <3 thank you!

  • BPS User Exit Variable based on Planning Package Selection

    Hi, I'm implementing a SAP BW-BPS planning layout to be integrated into the CRM we user interface. Most of the characteristic selections come from the CRM fields that need to be filled by the user when creates a trade promotion. The charcteristic sel

  • GR/IR clearing question

    Hi everyone, can we just use MR11 manually clear out GR/IR without any financial or PO impact? Please advise.

  • Interactive question DVD creation?

    My client wants an interactive dvd produced ie: who wants to be a millionaire - for training use. Part of the DVD will be a multiple question session with say 3 answer choices - you choose an answer nd it tells you - say a tick with correct and a hap

  • Error when installing the business content (update rules)

    Hi Gurus, I am trying to install the Business Content for Plant Maintenance. When trying to install the update rules UPDR BN10TVY8N84KARHU2FLSSYL56, I was able to see the update rules in the collected objects. But, when trying to install, it throws a