Capture keyboard from GAMECANVAS

Hi:
I take the keys 1, 2, etc. since the method of Gamecanvas RUN.
Normally use the following code, which I used for the other keys:
keyState = getKeyStates();
if ((keyState & LEFT_PRESSED) != 0)
But I do not know how to do with the keys 1, 2, ...
Thank you very much.
Federico (translated by Google)

This problem I will get crazy! Taught me what more I researched it online, I managed to incorporate this method in the class GAMECANVAS, which displays the code of the key pressed. It works perfect, except for one detail, the keys 1, 3, 7 and 9 did not call the method keypress !!!!!
protected void keyPressed(int keyCode)
Graphics g = getGraphics();
String aString = Integer.toString(keyCode);
g.setColor(0,255,255);
g.fillRect(0,0,getWidth(),getHeight());
g.setColor(0,0,255);
g.drawString (aString, 13, 10, Graphics.LEFT | Graphics.TOP);
flushGraphics();
Federico (translated by Google)

Similar Messages

  • FCE: Capturing footage from my Canon XL1

    Got FCE and when capturing footage from my Canon XL1 I get the video however there is no audio!
    Tried capturing footage via iMovies and works no problem!
    Not sure if this has anything to do with it but I'm using a external mic. on my XL1 into one ch. on the audio inputs. Also scratch disks is on a external 1TB WD drive. Finally tried virtually all the set-ups on the 'easy set-up' but still no joy.
    Can anyone throw me a life line on this one?!

    sorry I should have made myself abit clearer.....when the tape is played back in my XL1 I can hear audio when my headphones are pluged into the camera also the camera has audio monitors which I can see movement verifying there is audio. However in FCE I don't see any audio level movement.
    In terms of equip. I just have a external WD 1TB drive (USB), firewire cable for video camera and the USB cable for the keyboard & mouse.
    Additional application: Flip video s/w (however had fce issue prior to installing this).

  • Capturing data from a RS232 device

    how do I capture data from an RS232 device to my APEX application. Precisely, I am using a barcode scanner and I need to know how to get the barcode data into an item (say P12_barcode) in my application. I have tried the keyboard wedge and the problem is that I have to set the input focus each time I need to collect the barcode of an item, so I have to switch to RS232 mode but how do I get this barcode data now?
    Please HELP...

    Thanks a trillion for this reply! wether your reply was helpful is an understatement in this matter!
    That is the type of Barcode scanner I am using man... they call it USB Keyboard emulation. It scans into note pad, word processors and text items freely.
    In my design for a solution to this problem, I have on paper, your type of solution but I lack the ability to set the focus on the desired Text Field when my cash_sales page loads.
    Secondly you said "I did have to set it to include a "Enter" after each scan" that touched upon another bug in me: I had always wanted the form to submit after each scan so that my procedure can use it against the items database and display the item in my Current Transaction Report. How did you set it to include a "Enter" after each scan? Is it on the scanner or at the page item level?
    Precisely I am using Metrologic MS9520 barcode scanner a.k.a Honeywell MS9520 barcode scanner!
    If I can set a cursor in my Px_Barcode text item after loading my CASH_SALES page and automatically submit the page after a scan(without clicking any button) then my nightmare is over...and you become my Virgo 2009 Hero.
    Happy September :)

  • Unable to capture video from VHS through DAC-200

    (Running Final Cut Pro 5.1.4)
    I have a DAC-200 to hook up my VCR to my G5 in order to capture video from VHS tapes into Final Cut. I had this set-up working a few months ago, but it was disconnected to rearrange equipment and now I can't get it working again. I have followed the advice from the DAC-200 installation instructions and advice from other forum topics but can't seem to get it to work. I finally was able to get something in the log and capture window besides "preview disabled" and "cannot capture because there is no video." I now can get Final Cut to capture video, however it only captures a blank black screen (and this is all I can see in the preview window).
    I've triple-checked every cable hook-up, the G5 recognizes the converter box, the video tape plays fine to a tv. I've even had our IT-guy here at work come check out my set-up for help and he can't figure out what is wrong either. (He did get my log&capture window to get white fuzz in the black screen at one point though. Does that mean anything?)
    Any help is greatly appreciated! (I'm happy to answer any other questions too.) Thanks!

    I had difficullty with the X.4.10 plus QT7.2 and put my info on the Forum as well as sending feedback to Apple. Shortly afterwards, Apple brought out a short security update which I downloaded and, hey presto, I was then able to use QT7.2 with OSX.4.10. It may be that you missed out on the later small update to QT7.2..... ? Another factor I found was that some little while later I again had a problem so I again installed QT7.2 and over-installed FCP5.1.4 which has resolved my problems for the time being. Worth a try if you still can't get through on the DAC.
    Ron.

  • Unable to capture data from drop down list in custom added field in migo tcode at item level

    Hi guys,
    need bit help in resolving query related to custom added field in Tcode migo.
    i have added a field in migo at item level ,in this i have used drop down list
    to get data but unable to capture data from drop down list.gown through
    many blogs in scn but unable to resolve.
    Please help me out in this.
    Thanks,
    Umakant.

    Hi,
    U can use following code to fill the list box
    write this code in PBO
    In layout editor please select listbox in dropdown attribute of input field and put some fctcode attribute
    TYPE-POOLS vrm.
      DATA values TYPE vrm_values WITH HEADER LINE.
      TABLES: <ur custom Database table>.
      clear values, values[].
      SELECT * FROM <ur custom Database table>.
        values-text = <TABLE FIELD TO DISPLAY IN DROPDOWN> .
        values-key = <TABLE KEY FIELD TO DISPLAY IN DROPDOWN>.
        APPEND values.
      ENDSELECT.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id              = '<SCREEN INPUT FIELD NAME>'
          values          = values[]
        EXCEPTIONS
          id_illegal_name = 1
          OTHERS          = 2.
    Also please define the following before accessing the listbox value
    data: <listbox input field name> type <table field name>,
            <inputfield name where text to display> type string  in top include
    In PAI, select the text from the table into <inputfield name where text to display>  depending on value selected which will be called when enter key is pressed or any vale is selected

  • Unable to capture video from webcam in JMF in xlet

    hi
    I am unable to capture video from webcam in an Xlet. I am using Xletview to run Xlet. The method CaptureDeviceManager.getDeviceList(vidformat) returns empty array. Which videoformat should I use and why do I get empty array?
    Thanks
    Rajesh

    MHP and OCAP only use JMF 1.0, which does not include support for capturing video. You will not be able to do this in any current MHP/OCAP imlementation that I know of.
    Steve.

  • Unable to capture video from webcam in JMF

    hi
    I am unable to capture video from webcam in an Xlet. I am using Xletview to run Xlet. The method CaptureDeviceManager.getDeviceList(vidformat) returns empty array. Which videoformat should I use and why do I get empty array?

    MHP and OCAP only use JMF 1.0, which does not include support for capturing video. You will not be able to do this in any current MHP/OCAP imlementation that I know of.
    Steve.

  • Capturing data from ALV grid

    Dear experts.
    Can anyone help me to capture data from ALV grid to pass to a BAPI FM.
    My ALV grid has the check box as first column and I want to capture only the rows in the grid with these checkboxes checked. I would prefer to do it without OO.
    Regards
    Sathar

    Loop at the table used for ALV data where <checkbox-field> = 'X'.
    Best,
    Jim

  • Capture contents from an editable alv

    I'm trying to capture fields from an editable alv. I have an update button in the application toolbar. So when i press this button, whatever changes I have done on the screen, the internal table should get updated. I'm using the function module    REUSE_ALV_GRID_DISPLAY.
    Can anybody help me out??

    Yes you can,
    If you have access to the element in the context that is bound to the row in the ALV then you can connect the message. Marking a * is not possible by default with the WD message manager and you willl need to do it manually. Use the element method of the message manager API for this purpose.

  • What are the settings for capturing video from Canon HV20

    Hi All,
    I want to capture video from Canon HV20 with Premiere Elements 11. What kind of settings should I use to capture the video with full information?
    Here is what I did:
    1) According the manual, I went to Capture settings panel (Edit > Project Settings > Capture) and selected HDV as capture format, because my video is at high definition.
    2) In addition, I checked "Capture to Timeline" and "Split Scenes by cotent".
    Are these settings enough?
    Thanks.

    HV20user
    Sounds reasonable, using Add Media/HDV Camcorder, but....
    Have you reviewed the Adobe write up on Premiere Elements 11 DV and HDV capture firewire into it.
    http://help.adobe.com/fr_FR/premiereelements/using/WS5CDA0F91-60F1-4b79-ABF6-E9E75F498DB2. html#WS2AF26FB5-4C63-4c46-9DB3-7249558F6528
    The mention of Get Media instead of Add Media makes me wonder if the video's instructor was demo'ing from Premiere Elements 10, but...
    Major factors have always included having Premiere Elements project preset set correctly to correspond to your camera settings...For HDV data capture firewire...
    NTSC HDV HDV 1080p30 or PAL HDV HDV 1080p25 depending on if you are targeting a NTSC or PAL area where frame rates are typically a consideration.
    I had not done any DV or HDV data capture firewire into Premiere Elements. But, Premiere Elements 11's take over of the project preset setting would encourage me to encourage you to verify your project settings before the capture.
    There are probably many more, but the following is online discussion of one Canon HV20 issue
    http://forum.videohelp.com/threads/316970-video-capture-problems-HV20-camcorder-is-control led-but-no-video-capture
    If you experience difficulty with the HDV capture fireware into Premiere Elements 11, you might consider what some others have done in this regard, that is, use HDVSplit for the capture firewire and then import the split (.m2t) clips "Add Media" into Premiere Elements 11 with the appropriate HDV HDV 1080p (1440 x 1080 HD anamorphic 16:9) project preset.
    Please update us on your progress when you get a chance.
    Thanks.
    ATR

  • Capturing Video from a Camera that only has a USB port

    I have read a number of posts from people who have been frustrated because they can not 'capture' video from a video camera that only has a USB port on it.  Unfortunately, Premier wants to see a Firewire connection; otherwise, it won't connect to a camera.   However, it is still very easy to import your video clips from such a camera into Premier Pro:
    1. Turn on your video camera and connect it to your computer via the USB connections.
    2. In Premier, go to the Media Browser.
    3. In the Media Browser, you will see all the drives on your computer. Amongst those drives will be a drive that was created for your camera. (It will be identified as X: (Removable).  Double click on that drive and you will see all your recorded video clips in the column just to the right.
    4. Highlight any/all clips that you want to import. Then, simply drag those clips/files up into your Project Organizer (normally, in the upper left corner of the page)
    That's it.
    You'll probably find this method of importing your clips/files off of your camera easier than if you did have a Firewire and utilized the 'Capture' function.

    And a bigger problem will be that that camera (with its card or HDD) will have to be connected, whenever one wishes to edit, and it cannot be overwritten to).
    As has been mentioned, the Project file does NOT contain any Assets, with the exception of Titles created in PrPro's Titler. This ARTICLE will give a bit more background on what is in the Project file, plus a bit more.
    The same sort of problem can arise if one Imports a VOB from a DVD-Video disc, without Copying the VOB's over to the HDD. First, that DVD must be inserted for each editing session, and things will be horribly slow.
    Good luck,
    Hunt

  • Capturing dv from camcorder on powerbook internal drive then moving to exte

    I plan on installing FCE HD in an OS 10.4.6 Sandbox partition on my 667MHz Powerbook G4 Ti DVI w/ a 60 GB 7200 rpm HD w/ a 13GB Scratch partition.
    Since the PB has a single Firewire port, can I capture video from my camera through that FW port to the internal drive Scratch partition and then transfer that file (or files: I have a bunch of footage) to an external FW drive for further work, again using the single FW port for the initial transfer and then editing, etc.? Can I use USB 2.0 for the transfers after capture?
    Any special considerations in doing this? Things I haven’t thought of? :–)
    Powerbook G4 Ti DVI 667 MHz   Mac OS X (10.4.6)   60 GB 7200 rpm internal HD, 1 GB ram, Dell 24" monitor

    A Sandbox partition is one generated by SuperDuper! to allow an independent, second OS on a drive. Mine has been working fine and allows me to run new software, including OS updates without affecting the Main partition with it's 'master' set of 'original' applications (the Sandbox uses aliases of the apps on Main). If the new OS or app works, then it can be installed on the Main partition with less danger of unexpected problems. By running from the Sandbox, corruption of the Main partition is less likely.
    Why is a scratch partition on the internal drive 'not really a good plan'? Is your caveat for real time capture only, as here or with audio capture, where the disk may be given other, higher priority, tasks by the OS, dropping frames? Hadn't thought of that. The Scratch volume appears to work fine for Photoshop, etc. And I would think it would for post-capture editing in FCE.
    'You can daisy chain the camera through the FW drive to the computer. This works with most cameras'. Perhaps I am crying before I am bitten. I have seen posts elsewhere (places I can't recover now!) that recommend using 2 separate FW busses (i.e., adding a FW cardbus to my PB) for the camcorder and the capturing disk, saying that chaining the 2 is likely to cause dropped frames. (My camcorder is an original Optura so it may not play anyway. But that is something else again.)
    'USB is not supported by Apple for use with video applications'. Does this include USB 2.0? And I have not seen eSATA mentioned anywhere. ???
    Powerbook G4 Ti DVI 667 MHz Mac OS X (10.4.6) 60 GB 7200 rpm internal HD, 1 GB ram, Dell 24" monitor
    Powerbook G4 Ti DVI 667 MHz Mac OS X (10.4.6) 60 GB 7200 rpm internal HD, 1 GB ram, Dell 24" monitor
    Powerbook G4 Ti DVI 667 MHz Mac OS X (10.4.6) 60 GB 7200 rpm internal HD, 1 GB ram, Dell 24" monitor
    Powerbook G4 Ti DVI 667 MHz Mac OS X (10.4.6) 60 GB 7200 rpm internal HD, 1 GB ram, Dell 24" monitor
    Powerbook G4 Ti DVI 667 MHz Mac OS X (10.4.6) 60 GB 7200 rpm internal HD, 1 GB ram, Dell 24" monitor
    Powerbook G4 Ti DVI 667 MHz Mac OS X (10.4.6) 60 GB 7200 rpm internal HD, 1 GB ram, Dell 24" monitor

  • Capturing Audio from DAT

    Hello,
    I'm trying to capture audio from a DAT deck (Tascam DA-20) into FCP HD by routing it through my JVC BR-DV600U DV deck (RCA output from DAT, RCA input to DV deck, Firewire into FCP).
    The DV deck's input is set to line-in, and the audio is being routed through (audio meters on DV deck mimic those on DAT deck, and I can hear the audio through the headphones jacked into my DV deck).
    However, when I try to capture the audio on FCP, I am unsuccessful, prompting the following window from FCP: "Error: Final Cut Pro HD was unable to read the movie file just captured."
    Now, I use the same set up I described above to capture footage from my Beta deck into FCP with no problems (route Beta signal through DV deck and firewire it into FCP). This leads me to believe that perhaps the glitch lies within my Capture Presets.
    At first, I tried to capture the signal as an Audio-Only DV NTSC 48 Khz/Non-controllable device. After that failed, I tried to create my own capture preset, but am not sure it will make a difference, as the only input choices I am given are DV Audio, Built-In Audio, and None.
    Any suggestions?
    Thanks.

    Why not capture the audio content outside of FCP, check the sample rate for 48Khz/16-bit, convert if necessary, save as an AIFF file, and then import that resulting sound file into FCP?
    Any good audio app, including STP will do captures.
    You are probably going to need to do some cleanup on the audio anyway before you use it, so why not just use an audio app to do it beforehand?
    Besides, if you have an audio device (PCI card or Firewire device) in your Mac, you can use the S/PDIF port for your connection to the DAT and do a digital transfer when you import.
    As I understand the way you are doing it now, you are taking digital content from the DAT, converting it to analog for the connection into your deck, and then re-converting it into digital when you capture it back into FCP.
    One big advantage of digital audio (and video) is to avoid generation loss and added noise during transfer if you go D-to-D.
    If you don't have an audio card or Firewire A/D audio I/O device with S/PDIF ports in your Mac, then see if you can find a friend who has one and can do the transfer for you. Then he can give you the file on a CD-ROM.
    That's what I'd do.

  • Capturing data from usb webcam

    I'm interested in the acquisition of footage from a usb webcam into labVIEW. I have the professional development system and downloaded NI-IMAQ which I believe i'll need from reading online material.
    I don't really know where to start to link the camera with labview so any material would be a great help...
    Final question, is it a big undertaking acquiring data from a video camera in labVIEW? it's just i've limited time to work on a project and want to know if it's worthwhile undertaking or if it will be very time heavy. I've a few months labVIEW development experience if that would give an indication to anyone...
    Strokes 

    Hi,
    First your USB Cam needs to be DirectShow Compliant.
    Then you will need NI-IMAQdx from the Vision Acquisition Software 2009 (supports LV 8.2 and higher) or higher to acquire images from USB cameras. The NI IMAQ driver is to capture images from framegrabbers, and the NI SmartCamera, not for USB. There is also a own IMAQ USB Library for the Vision Acquisition 8.6 but since you need to buy the Acquisition Software I would recommend to use 2009 or higher where we added the DirectShow Support to IMAQdx.
    The Vision Acquisition Software is just for image acquisition and processing. If you want to do image processing you will need the Vision Development Module.
    And when doing a search at ni.com you should find some articles, examples and tutorials too.
    I can't estimate how much time you will need get that running, but you could just try to run one of the examples for IMAQdx in LabVIEW and then see how it works.
    Christian

  • Capturing footage from Canon XH A1

    Hi All -
    I'm a bit new to Final Cut Express but ran across the following problem:
    When I try to capture footage from my Canon XH A1 HD video camera, FCE does not recognize that there's any connection or that the camera is plugged into my MacBook Pro via the firewire cable. When I plug in my Sony VX2100 it does recognize this camera and I'm able to capture footage when I use that camera, but no luck with the Canon.
    Funny thing is, when I try to capture footage from my Canon using iMovie it recognizes the camera and captures the footage with no problem.
    Any idea why FCE is not recognizing this camera when iMovie does? Is there a setting on FCE that needs to be changed?
    Any help would be appreciated.
    Thanks!!

    Are you using the correct Easy Setup?
    Normally it should be HDV-Apple Intermediate Codec 1080i50 (or i60 if you are using NTSC).
    I believe your Canon is an HDV camera whilst your Sony shoots DV.
    They both need different Easy Setups. iMovie deals with this automatically.

Maybe you are looking for