Detect click and coordinates on a PDA

Hello everybody,
I'm trying to detect a stylus click on a picture and the coordinates of the click on a PocketPC 2002 PDA. In the PC, this works fine with a "mouse down" event for a picture, which detects the click and the coordinates, but this event is not supported in the PDA module (ver 7.0). Another option I found for the PC is using the LV windows message queue DLL, but this is an especially written DLL and I wouldn't know how to write one for windows, let alone for windows CE, and - to make matters worse - I don't know the equivalent of User32.dll in CE. Does anyone have any suggestions?
Thanks in advance.
Try to take over the world!

I managed to find that the Getmessage function allows you to access the message queue, and I found 2 files which may be relevant:
1. coredll.dll (which as I understand from the documentation is supposed to hold the function) in "C:\Windows CE Tools\wce300\MS Pocket PC\emulation\palm300\windows".
2. coredll.lib in "C:\Windows CE Tools\wce300\MS Pocket PC\lib\arm" which is supposed to the file to link to. There's also one in "C:\Windows CE Tools\wce300\Pocket PC 2002\lib\arm".
When I used this coredll.dll I found a GetMessageW function and I've managed to use this on the PC to detect the click and the coordinates (when I used this DLL and was targeting the PC, a Pocket PC 2000 emulator came up and the origin for the coordinates was it's top-left corner).
When I try to build the application (with and without the lib file), I get the error that says GetMessageW is a missing VI or C file. I attached the VI which works fine on the PC.
Try to take over the world!
Attachments:
getmessage2.vi ‏30 KB

Similar Messages

  • Detecting click ( single and double) on row (displayed using iterator)

    Hello All,
    I am using jdev 11.1.1.6
    I am displaying a list as below.
                                   <trh:tableLayout>
                                        <af:iterator value="#{pageFlowScope.Bean.List}" var="temp">
                                         <trh:rowLayout>
                                          <trh:cellFormat>
                                           <af:outputText value="#{temp.value1}"/>
                                          </trh:cellFormat>
                                          <trh:cellFormat>
                                           <af:outputText value="#{temp.value2}"/>
                                          </trh:cellFormat>
                                          <trh:cellFormat>
                                           <af:outputText value="#{temp.value3}"/>
                                          </trh:cellFormat>
                                          <trh:cellFormat>
                                           <af:outputText value="#{temp.value4}"/>
                                          </trh:cellFormat>
                                        </trh:rowLayout>
                                        </af:iterator>
                                      </trh:tableLayout>
    My requirement is, when user clicks on a row, that row should be detected in backend and those value will be used.
    My requirement is, On single click row should be detected(in backend/bean)
    On double click, the values is saved(in backend/bean).
    How can i detect single and double click on a particular row ?

    I have updated the code as below, single click and double click are getting detected on a row
        <af:resource type="javascript">
                function singleClick(){
                    alert("Single Click");
                function doubleClick(){
                    alert("Double Click");
        </af:resource>
                                   <trh:tableLayout>
                                        <af:iterator value="#{pageFlowScope.Bean.List}" var="temp" onclick="singleClick()" ondblclick="doubleClick()">
                                         <trh:rowLayout>
                                          <trh:cellFormat>
                                           <af:outputText value="#{temp.value1}"/>
                                          </trh:cellFormat>
                                          <trh:cellFormat>
                                           <af:outputText value="#{temp.value2}"/>
                                          </trh:cellFormat>
                                          <trh:cellFormat>
                                           <af:outputText value="#{temp.value3}"/>
                                          </trh:cellFormat>
                                          <trh:cellFormat>
                                           <af:outputText value="#{temp.value4}"/>
                                          </trh:cellFormat>
                                        </trh:rowLayout>
                                        </af:iterator>
                                      </trh:tableLayout>
    Now,
    suppose i have following values for some/any row,
    value1=20, value2="abc", value3=009, value4="Language" 
    How can i retrieve these values in java script (if in backing bean then very good)

  • How to detect only single click and not double-click mouse events in Swing?

    Hi,
    In my application, I want to implement a functionality only for single click. But problem is on double click, first i can see a single click and then double click.
    i.e e.getCount() return 1 and then 2 for double click. I want to avoid this situation.
    Shouldn't it be just one event with a clickCount of 2? or any alternative solution?
    Please let me know how can i stop this.
    Thanks in advance..
    Cheers
    Somasekhar
    Edited by: SomasekharPatil on Mar 13, 2009 3:36 PM

    Maybe something like the below example:
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseListener;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.SwingUtilities;
    import javax.swing.Timer;
    public class SingleClickOnly {
        public static void main(String[] args) {
         SwingUtilities.invokeLater(new Runnable() {
             @Override
             public void run() {
              new SingleClickOnly().createGUI();
        public void createGUI() {
         JFrame frame = new JFrame();
         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         JLabel label = new JLabel("Only acts on a single click");
         label.addMouseListener(createListener());
         frame.add(label);
         frame.pack();
         frame.setLocationRelativeTo(null);
         frame.setVisible(true);
        public MouseListener createListener() {
         return new MouseAdapter() {
             private int clickCount = 0;
             private final Timer timer = new Timer(1000, new ActionListener() {
              @Override
              public void actionPerformed(ActionEvent e) {
                  if (clickCount == 1) {
                   System.out
                        .println("Executing action on click count 1 only");
              timer.setRepeats(false);
             @Override
             public void mouseClicked(MouseEvent event) {
              clickCount = event.getClickCount();
              System.out.println("Clicked: " + clickCount);
              if (clickCount == 1) {
                  if (timer.isRunning()) {
                   timer.stop();
                  timer.start();
    }Piet

  • My mac book air has a virus which is creating a lot of issues...how do i get rid of it? is there a free software to detect it and remove it?

    my mac book air has a virus which is creating a lot of issues...how do i get rid of it? is there a free software to detect it and remove it?

    There is no need to download anything to solve this problem.
    You may have installed one or more of the common types of ad-injection malware. Follow the instructions on this Apple Support page to remove it. It's been reported that some variants of the "VSearch" malware block access to the page. If that happens, start in safe mode by holding down the shift key at the startup chime, then try again.
    Back up all data before making any changes.
    One of the steps in the article is to remove malicious Safari extensions. Do the equivalent in the Chrome and Firefox browsers, if you use either of those. If Safari crashes on launch, skip that step and come back to it after you've done everything else.
    If you don't find any of the files or extensions listed, or if removing them doesn't stop the ad injection, ask for further instructions.
    Make sure you don't repeat the mistake that led you to install the malware. It may have come from an Internet cesspit such as "Softonic" or "CNET Download." Never visit either of those sites again. You might also have downloaded it from an ad in a page on some other site. The ad would probably have included a large green button labeled "Download" or "Download Now" in white letters. The button is designed to confuse people who intend to download something else on the same page. If you ever download a file that isn't obviously what you expected, delete it immediately.
    Malware is also found on websites that traffic in pirated content such as video. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect more of the same, and worse, to follow. Never install any software that you downloaded from a bittorrent, or that was downloaded by someone else from an unknown source.
    In the Security & Privacy pane of System Preferences, select the General tab. The radio button marked Anywhere  should not be selected. If it is, click the lock icon to unlock the settings, then select one of the other buttons. After that, don't ignore a warning that you are about to run or install an application from an unknown developer.
    Still in System Preferences, open the App Store or Software Update pane and check the box marked
              Install system data files and security updates (OS X 10.10 or later)
    or
              Download updates automatically (OS X 10.9 or earlier)
    if it's not already checked.

  • HT201210 I tried to update my iphone4, in the middle it gave an error and now when try to connect it the computer doesnt even detects it and neither does itunes

    I tried to update my iphone4, in the middle it gave an error and now when try to connect it the computer doesnt even detects it and neither does itunes

    Power the phone off completely. Plug the USB end of the cord into the computer, leaving the other end unplugged from the phone. While the phone is powered off, open up iTunes, hold down the home button on the phone, and plug in the USB cord to the phone, making sure you keep holding down the home button. In about 15 seconds you should get a pop-up in itunes saying that it's detected an iPhone in recovery mode. Click 'Ok' and 'Restore'.
    Your iOS update crashed and your phone is in recovery mode. The good news is that this will fix it, bad news is that unless you had everything backed up in either iTunes or iCloud, you've lost everything as your phone was wiped when the iOS update crashed.

  • Detecting clicked column in JTable (with JCheckBox in column)

    I am struggling with something that seems like it should be so simple, but it doesn't work as I expect;
    I have a table with 5 columns, the 5th column is a CheckBox. What I need to do is detect when the 5th column changes, ie. the check box is clicked;
    If I use a MouseListener on the table, and derive the table from the event, the column that I get back from getSelectedColumn() is -1, which is not conclusive. I assume this is because clicking the check box is not actually selecting the column.
    I implemented a TableModelListener as follow;
    tableModel.addTableModelListener(new TableModelListener()
    public void tableChanged(TableModelEvent e)
    System.out.println("Changed Column is " + e.getColumn() + " " + e.getFirstRow());
    This seems to do the same as before, and gives a first row of 0 and selected column of -1. Once again inconclusive.
    The cell as I say is rendered as a JCheckBox, the data in the table model obviously being Boolean.
    Can anyone suggest how I can determine if my column with a Check Box in has been clicked, and if so, which Row? (I have thought about overriding JCheckBox, but this seems more work than necessary)
    Thanks in anticipation

    You need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html]
    that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on
    the information provided.
    Don't forget to use the [Code Formatting Tags|http://forum.java.sun.com/help.jspa?sec=formatting] so the posted code retains its original formatting.

  • Keep getting error message that iphoto has detected inconsistencies and needs to rebuild

    while adding photos to library keep getting error message that iphoto has detected inconsistencies and needs to rebuild the library..how do I fix?

    By rebuilding your library.
    Back up your iPhoto library before you do that.
    If iPhoto is open, quit it.
    Hold down the Option and Command keys while you open iPhoto (click the iPhoto icon in the Dock).
    The Photo Library First Aid window opens.
    Click "Rebuild database" and click the "rebuild" button.
    If this does not solve the problem, see "option 2" in Terence Devlin's post here:
    Re: i keep getting the message iPhoto has detected inconsistencies in your library but after repairing it it just quits
    Regards
    Léonie

  • My problem is that one of the USB ports and the device does not detect this and inactive but can not find how to reactivate.Help me please! greetings thanks!

    Hello good evening, I have a MacBook Pro and my problem is that one of the USB ports and the device does not detect this and inactive but can not find how to reactivate.
    Help me please! greetings thanks!

    Do you have the Firefox new tab page but the actual sites are missing, or do you have some other page?
    If you have some different page, try the quick fix in Fred McD's reply.
    If the sites are missing, did you use the Reset feature? That will clear the storage associated with the new tab page. I'm not sure it's possible to recover from that; you probably need to rebuild your page from scratch as you browse.
    For possible future reference, here is how to access the hidden setting for the page to display on new tabs:
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the search box above the list, type or paste '''newtab''' and pause while the list is filtered
    (3) Double-click the '''browser.newtab.url''' preference and enter your preferred page:
    * ''Page thumbnails (default)'' => about:newtab
    * ''Blank tab'' => about:blank
    * ''Built-in Firefox home page'' => about:home
    * ''Any other page'' => full URL to the page
    Press Ctrl+t to open a new tab and verify that it worked. Fixed?
    Some gotchas:
    ''If Firefox won't let you edit this setting:'' you may have something called SearchProtect on your system.
    ''If Firefox lets you save your change but ignores it:'' one of your extensions may be overriding it. You can review, disable, and/or remove extensions on the add-ons page:
    "3-bar" menu button (or Tools menu) > Add-ons > ''in the left column click'' Extensions
    ''If the change works during your session, but at the next startup is back to an unwanted page:'' you might have a user.js file in your personal Firefox settings folder (your Firefox profile folder). This article describes how to track down and remove the file: [[How to fix preferences that won't save]].
    Any luck?

  • Trackpad will click and select but will not move cursor

    After breaking the trackpad in my early 2008 MBP I replaced it. 
    Upon startup the trackpad will click and select but will not move cursor... I have tried all system resets short of wiping and reinstalling OS.
    Any suggestions?

    Because the click has to deal with a physical button press while the movement has to deal with the trackpad detecting the movement of your finger on it.
    Just for giggles, if you hold down the Option key on bootup and get to the boot menu on it, does the mouse work then?  If so, then it's an OS issue (could be a setting or some .plist that's jacked up.

  • Ipod Only fill to part capacity and harddrive clicks and whirrs?

    My Ipod Only fill to part capacity and harddrive clicks and whirrs, everything else works fine...why would this happen? Do i need a new harddrive?. Cheers, Michael

    It's possible that your iPod's hard drive has started to fail. Take your iPod and place your right thumb on the centre SELECT button and your left on the top MENU button. Press down both thumbs for about 6 seconds until your iPod reboots. Immediately move your left thumb around to the rewind button |<< on the left and hold this down together with SELECT for a further 6 seconds. Your iPod should now switch into Diagnostic Boot mode. Press MENU for *Manual Test*, then select *IO > HardDrive > HDSMARTData* to reveal your stats. For comparison here are mine for my 2 year old 6th Generation Classic:
    Retracts: 889
    Reallocs: 12
    Pending Sectors: 0
    PowerOn Hours: 2202
    Start/Stops: 894
    Temp: Current 24c
    Temp: Min 10c
    Temp: Max 50c
    Take a note of your results. When finished press *SELECT & MENU* for 6 seconds to reset the iPod again.
    With modern disc drives sectors are no longer marked bad by a disc scan, if the SMART firmware detects a sector it has trouble accessing it will attempt to invisibly reallocate it to a spare area of the disc.
    Note that I've only 12 remapped sectors and none pending. To help explain what the numbers mean here is an extract from the Wikipedia S.M.A.R.T. article:
    *Reallocated Sectors Count*
    Count of reallocated sectors. When the hard drive finds a read/write/verification error, it marks this sector as "reallocated" and transfers data to a special reserved area (spare area). This process is also known as remapping, and "reallocated" sectors are called remaps. This is why, on modern hard disks, "bad blocks" cannot be found while testing the surface – all bad blocks are hidden in reallocated sectors. However, as the number of reallocated sectors increases, the read/write speed tends to decrease. The raw value normally represents a count of the number of bad sectors that have been found and remapped. Thus, the higher the attribute value, the more sectors the drive has had to reallocate.
    *Pending sector count*
    Number of "unstable" sectors (waiting to be remapped, because of read errors). If an unstable sector is subsequently written or read successfully, this value is decreased and the sector is not remapped. Read errors on a sector will not remap the sector (since it might be readable later); instead, the drive firmware remembers that the sector needs to be remapped, and remaps it the next time it's written.
    Large numbers of Reallocs or Pending Sectors would suggest your drive is failing and that you may need to repair or replace your iPod. Check your stats after another attempt to update your iPod. If the numbers increase that again points to hard drive failure. While it won't be good news at least you'll know it isn't some random software problem and you can decide what to do next.
    tt2

  • Detecting Clicks on Lines

    Hello,
       I am building a canvas application that allows users to drag and drop different icons on the canvas and connect them through edges. I am using the graphics of the canvas to draw these lines.
    However, one of my requirements is to detect clicks on the lines and enable users to modify edge properties. Since lines are not first class objects, it is hard to add click listeners on them. I would like to avoid doing my own click detection through MBRs, etc. Here are my questions:
    1) Is using the graphics object in the canvas to draw the lines a recommended approach? It seems cumbersome and requires me to maintain too much state
    2) Do you have suggestions on how I can detect clicks on these lines without writing my own code to see if each click interested with any of the lines?
    Thanks in advance.

    Thanks Alex. I will give that a shot. On a related note, I decided to do this in gumbo to learn my way around it. I can't seem to use Sprites properly in gumbo.
    I tried the following:
    var s: Sprite = new Sprite();
    s.graphics.clear();
    s.graphics.moveTo(0,0);
    s.graphics.lineTo(10,10);
    p.addChild(s);
    But I get the following error:
    Error: addChild() is not available in this class. Instead, use addElement() or modify the skin, if you have one.
    at spark.components.supportClasses::SkinnableComponent/addChild()[E:\dev\beta1\frameworks\pr ojects\flex4\src\spark\components\supportClasses\SkinnableComponent.as:953]
    at Test/handleCreate()[/Users/ksshams/dev/workspaces/Adobe Flash Builder Beta2/Test/src/Test.mxml:18]
    at Test/___Test_Application1_creationComplete()[/Users/ksshams/dev/workspaces/Adobe Flash Builder Beta2/Test/src/Test.mxml:3]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[E:\dev\beta1\frameworks\projects\framework\src\mx\co re\UIComponent.as:11260]
    at mx.core::UIComponent/set initialized()[E:\dev\beta1\frameworks\projects\framework\src\mx\core\UIComponent.as:1513]
    at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\beta1\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:759]
    at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\beta1\frameworks\projec ts\framework\src\mx\managers\LayoutManager.as:1067]

  • I have an Epson printer on a Wifi network. Windows 7 desktop and and HP Win 7 laptop (my wifes) print to it just fine. My MacBook Pro running Yosemite won't detect it, and I have the latest driver installed. No problem when I had a Canon...

    I have an Epson printer on a Wifi network. Windows 7 desktop is running the network, and my wife's HP Win 7 laptop prints to it just fine. My MacBook Pro running Yosemite won't detect it, and I do have the latest driver installed. I didn't have a problem when I had a Canon Pixma on the network, but when I replaced it with the Epson nothing seems to work. I go to add a printer to the queue and only the FAX function of the printer shows up - not the WS-4530 print function. Does anyone out there have any suggestions?  Please??? :-)

    Hi Kelly,
    As someone who has to print from my Mac to a networked printer at home all the time, I can certainly understand how frustrating it must be to have that fail to perform as expected. Let's see if we can get you up and running.
    I would suggest that you troubleshoot using the steps in this article -
    OS X Yosemite: Printing troubleshooting
    Start with the section titled Check the network.
    Thanks for using Apple Support Communities.
    Sincerely,
    Brett L 

  • I know I've heard that iPads/iPhones can't get viruses but is it possible that they can? While using my iPad, it keeps going in and out of apps. On Facebook, status and profiles keep getting clicked and it keeps zooming in and out. Can anyone help

    I Have an iPad mini, iOS 8.1. When I'm on my iPad, it keeps going in and out of random apps. Going to settings is the worse. As soon as I click settings and it opens,it starts clicking different things and tries turning on and off settings! In Facebook, profiles and status get clicked. The screen zooms in and out multiple times. It reminds me of when you call the help desk for a computer or a computer at work and they gain access and move around clicking and you're doing nothing. Basically things are being clicked and I'm not doing it.....can anyone help?

    At this point, I would go for reset to its factory default condition, using the iTunes program to get a clean system install. That way you'll clean everything out and just have it set up the way it would come from the factory. You'll need to do your backup (on the iTunes program too) and be sure you understand which stuff will be saved and which will not (from the links below). Also turn off any anti-virus program you may have on your desktop. Then when you reset it to the factory default condition, don't restore your backup just yet ... until you check it out without your data put back on it. Verify its operation first, to make sure that you know it's okay. Hopefully everything is okay at that point, otherwise you'll have to take it into Apple to check it out for any hardware failure.
    Here are the links, and the last one pertains to the reset to factory default condition ...
    Choosing an iOS Backup Method (Should I Use iTunes or iCloud to back up ...)https://support.apple.com/kb/HT5262
    Back up and Restore your iOS Device with iCloud or iTunes
    http://support.apple.com/kb/ht1766
    iTunes: About iOS Backups
    http://support.apple.com/kb/ht4946
    Create and Delete iPhone, iPad and iPod Touch Backups in iTunes
    http://support.apple.com/kb/ht4946
    iOS: Troubleshooting Encrypted Backups
    http://support.apple.com/kb/TS5162
    Use iTunes to Restore your iOS Device to Factory Settings
    http://support.apple.com/kb/ht1414

  • When I click on links in websites the links don't work unless I right click and choose open website in another tab/window. This is even a problem on the Firefox page.

    When I try to open a link on any page/website Firefox does not open the link. It doesn't even "work" at opening the link, it just sits idling. I have to right click and choose "open link in new tab/window" in order for Firefox to open the link. It doesn't happen 100% of the time but happens especially if there is a button or picture that must be clicked. Simple text links seem to work more often then button or picture links. One example provided below. When you click on the "launch Jumpstart" button it will not open unless you right click & open new. This also happens from my Yahoo! Email account, on Facebook, Cructhfield.com and other websites with "button" related links.

    I have the same problem but it appears that an add-on I'm using is causing the problem. Try opening Firefox in safe mode (which disables add-ons) Then try it. If that solves the problem, you need to disable all your add ons and enable them one by one to figure out which one(s) is causing the problem.
    [http://www.chowins.com David Chowins]

  • I can't open links in firefox. I must drag them to the tool bar or right click and open in a new page

    I am running Vista and installed a new version of firefox yesterday plus I messed around with trying to block some obnoxious advertising pop up windows. Now I can't open links and must drag them to the browser bar or right click and "open in a new window". How do I fix this? I tried to restart Firefox but it didn't help. thanks!

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Try to open a new window and see if that window works.
    You can check for problems with the localstore.rdf file.
    *http://kb.mozillazine.org/Corrupt_localstore.rdf

Maybe you are looking for