Possible to send a mouse click through a JFrame

Hi there.
is there a way to send a mouse click event through a frame to the whatever underneath (another application for example)?
Scenario: I use a Frame for (bigger, colorful) MouseCursor representation (see http://forums.sun.com/thread.jspa?threadID=5394797). But of course... The Cursor has to be on top... And so it catches all mouseClickEvents....
Please; all hints are welcome! How do I achieve to send mouse clicks through the JFrame...
Thx in advance
Andi
Edited by: neobond on 30.06.2009 09:43

You don't do it that way - you'd just tell the button to dispatch a CLICK MouseEvent and anything listening for the click would get it... something like:
myButton.dispatchEvent(new Event(MouseEvent.CLICK));

Similar Messages

  • Is it possible to Disable Right Mouse click In WebDynpro Java Application??

    Dear Experts,
    Is it possible to Disable Right Mouse click In WebDynpro Java Application??
    If yes then kindly suggest how.
    Warm Regards,
    Upendra Agrawal

    What is the use-case?
    Armin

  • Is it possible to generate a mouse click at specific coordinates on the stage?

    Let's say x = 100 and y = 100. So, I have my main swf file that contains an external swf file with a button. Would it be possible to generate a mouse click on that button?
    Any help would be greately appreciated.

    You don't do it that way - you'd just tell the button to dispatch a CLICK MouseEvent and anything listening for the click would get it... something like:
    myButton.dispatchEvent(new Event(MouseEvent.CLICK));

  • Is it possible to send an excel file through xi

    Hi all,
    is it possible to send an excel file through xi? if it is possible plz tell me that.....
    plz help me on this........
    Thanks...

    Hi,
    See this link
    integrating legacy system & sap r3 system
    Amresh

  • Exec utl_mail.send when mouse click

    Hi,
    I have a question,
    I want to exceute the exec utl_mail.send inside when mouse click i a form. how can i do that?
    Thanks and regards

    The ULT_MAIL, package is a utility for managing email which includes commonly used email features, such as CC, BCC etc.
    To install UTL_MAIL
    Method 1:
    sqlplus sys/<pwd>@db_sid
    SQL> @ORACLE_HOME/rdbms/admin/utlmail.sql
    SQL> @ORACLE_HOME/rdbms/admin/prvtmail.plb
    you define SMTP_OUT_SERVER parameter in the init.ora rdbms initialization file. However , if SMTP_OUT_SERVER is not define, this invoke a default of DB_DOMAIN which is guaranteed to be defined to perform appropriately.
    Method 2:
    Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
    Connected as SYS
    SQL> grant execute on utl_mail to public;
    Grant succeeded
    SQL> create or replace public synonym utl_mail for sys.utl_mail;
    Synonym created
    SQL> CREATE OR REPLACE FUNCTION SEND_MAIL
    (pIssuer IN VARCHAR2,
    pReceiver IN VARCHAR2,
    pSender IN VARCHAR2,
    pSubject IN VARCHAR2,
    pMessage IN VARCHAR2) RETURN VARCHAR2 IS
    c utl_smtp.connection;
    respuesta utl_smtp.reply;
    pServer VARCHAR2(50) := 'SERVER';
    BEGIN
    -- Open the connection to the Server-mail
    c: = utl_smtp.open_connection (pserver);
    answer: = utl_smtp.helo (c, pServer);
    - Starts the Issuer mail.
    answer: = utl_smtp.mail (c, pSender);
    - Start the receiver
    answer: = utl_smtp.rcpt (c, pReceiver);
    answer: = utl_smtp.open_data (c);
    - Write the header of the e-mail
    utl_smtp.write_data (c, 'From:' | | pIssuer | | utl_tcp.CRLF);
    utl_smtp.write_data (c, 'To:' | | pReceiver | | utl_tcp.CRLF);
    - Write the Subject
    utl_smtp.write_data (c, 'Subject:' | | pSubject | | utl_tcp.CRLF);
    - Write the text of the Message.
    utl_smtp.write_data (c, utl_tcp.CRLF | | pMessage);
    utl_smtp.write_data (c, utl_tcp.CRLF | |'.');
    answer: = utl_smtp.close_data (c);
    - Close connection
    answer: = utl_smtp.quit (c);
    RETURN '0 ';
    EXCEPTION
    Utl_smtp.permanent_error THEN WHEN OR utl_smtp.transient_error
    utl_smtp.quit (c);
    RETURN SQLERRM;
    - raise_application_error (-20000,
    - 'Sending email failed, returning the following error:' | | SQLERRM);
    WHEN OTHERS THEN
    RETURN SQLERRM;
    END;

  • Send a mouse click?

    Does anyone know how to generate a mouse click with lingo? I
    need a 'genuine' mouse event - not sendsprite(x,#mouseup)
    Cheers

    If your project is Windows only, Gary Smith (the fellow who
    brought us
    BuddyAPI) has posted a beta version of baMouseClick which
    will do just
    what you need. Though it is Windows only...
    http://www.mods.com.au/budapi/future.htm

  • Can I send keyboard/mouse commands from a VI to an external application?

    I am launching an external application (BeamScan.exe by Photon) in Windows 95 from a LabVIEW 5.1 VI using Exec. I want to be able to configure the external application from its own menu bar, sending key commands or mouse clicks from the VI. I need to do it this way because the external application has only limited ActiveX capabilities which do not include the menu options I want to control.
    Is it possible to send keystrokes or mouse clicks through Windows 95 to the other application?

    Steve_rvk wrote:
    > I am launching an external application (BeamScan.exe by Photon) in
    > Windows 95 from a LabVIEW 5.1 VI using Exec. I want to be able to
    > configure the external application from its own menu bar, sending key
    > commands or mouse clicks from the VI. I need to do it this way
    > because the external application has only limited ActiveX capabilities
    > which do not include the menu options I want to control.
    >
    > Is it possible to send keystrokes or mouse clicks through Windows 95
    > to the other application?
    Download "Simulate Click" and "Simulate Key Event" from my web site.
    It's on G Toolbox page.
    George Zou
    http://gtoolbox.yeah.net
    http://go5.163.com/~georgezou

  • Pass Mouse click events from JavaScript to Falsh Movie

    Hi,
    I have an interesting problem here.
    i am trying to create a web page which has my
    flash-presentation movie. i need to disable mouse click &
    keyboard click navigation of the flash movie. The only way by which
    i can navigate my slide in the flash movie should be using 2
    buttons say Next & Prev that are i my web page.
    when i click the Next button i should be able to go to the
    next slid or the animation in the same slide like how i do in the
    power Point.
    Is there any way by which i can send these mouse click
    events from my javascript to my flash movie or is there any other
    means by which i can achieve this.
    ~Blackperil

    Hi Mathias,
    What i understood is that you want to triger a server side event (simulate onClick event of button)from a client side event (javascript confirm popup), based on the choice of user..
    You can also try this one...
    Check = confirm("Do you really want to proceed?");
    if (Check == true)
    document.getElementById('do_proceed').click();
    else
    document.getElementById('do_cancel').click();
    Regards,
    Anubhav

  • Catching mouse click on an irrigular shape image

    Is it possible to catch the mouse click on an irrigular shape image on a JPanel? Can I simply attach a mouse listener to the image?

    Hi,
    you should use a mouseListener, and test the coordinates of the click in the mouseClicked() method, then you can use the inside() method of the Shape to see if the click occured in the shape.
    Hope this will help,
    Regards.

  • Simulate mouse clicks with keyboard

    Hello,
    I'd like to create a little tool in JAVA that would simulate a mouseclick when I pressed a key on the keyboard.
    But that should be valid even when I have any other program as active (selected).
    Can that be done in Java or Java can only listen to events generated when the java application is active?
    If you have working code that would be very appreciated.
    Thank you in advance,
    Nuno Vidal

    Ok... have never done anythong with JNI before, can
    you give me an insight?The way I would do it would be to write a system wide keyboard hook, (which you can't do in Java and should do in C++)into a JNI dll as smg123 said. Then you will have that method notify your java program on a key press and from your Java program you can use the Robot class to send a mouse click or since your already using a native code you could write a C++ function to do it and invoke that from your Java app.

  • Mouse click and drag through turntable animation

    Hi all,
    First - thanks for taking the time to look through and possibly helping me with this question.
    I'm just getting to grips with flash cc actionscript 3.0 - so I apologise in advance to my not so technical jargon.
    In the past I have used actionscript 1.0 to create an interactive html file that contains a turntable animation of a 3D model. Users can mouse click and drag to the left or right to 'spin' the model around - however what they are really doing is scrubing through the timeline which contained 360 images of it from 360 degrees. Similar ideas can be found here: Interactive Thyroidectomy
    Now annoying I can't use the old code any more as I'm working in the latest flash cc actionscript 3.0
    So how do I do the same thing but in actionscript 3.0?
    So I've worked this bit out so far
    On my main stage I have two layers - actions layer and another layer with my movie clip (movieclip_mc)
    In the actions layer so far:
    movieclip_mc.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown);
    movieclip_mc.addEventListener(MouseEvent.MOUSE_UP, onMouseUp);
    function onMouseDown(event:MouseEvent):void
      movieclip_mc.addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
      //I should put something in here about mouseX  - but no idea what
    function onMouseUp(event:MouseEvent):void
      movieclip_mc.removeEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
    function onMouseMove(event:MouseEvent):void
    //I have to put something in about total frames - width of movieclip_mc etc but I'm not sure how   
    // this is what someone else did on another forum - but I'm not sure what it means:
         var delta:int = backgroundClip.mouseX - clickedMouseX;
       var wantedFrame:uint = (clickedFrame + delta * clip.totalFrames / backgroundClip.width) % clip.totalFrames;
       while (wantedFrame < 1)
      wantedFrame += clip.totalFrames;
      clip.gotoAndStop(wantedFrame);
    Also I think i need something in the beginning like.....:
    import flash.events.MouseEvent;
    import flash.display.MovieClip;
    import flash.display.Sprite;
    var clickedMouseX:int;
    var clickedFrame:uint;
    var backgroundClip:Sprite = getChildByName("background") as Sprite;
    var clip:MovieClip = getChildByName("animation") as MovieClip;
    clip.stop();
    clip.mouseEnabled = false;
    .....but I'm a bit confused about what all of it means
    So I understand the principle but no idea how to actually make it work - Could anyone help explain it to me or help with the code?
    Thanks so much to anyone who can offer some help
    Catherine

    Hi Ned,
    sorry to bother you again on this subject -
    the script...
    function onMouseMove(event:MouseEvent): void {
      movieclip.gotoAndStop(Math.round(mouseX/movieclip.width*(movieclip.totalFrames-1))+1 )
    worked fine - but when you click and drag on the movie clip it didn't always get to the end of the movie and never carried on through the frames back to the beginning like i wanted it to (such as this one does Interactive Thyroidectomy)
    So I went back to the older 2.0 script and played with it a bit to be :
    function onMouseMove(event:MouseEvent): void {
      changeDistance = movieclip.mouseX - startX;
      travelDistance = startFrame + changeDistance;
      if (travelDistance > movieclip.totalFrames) {
      movieclip.gotoAndStop (travelDistance % movieclip.totalFrames);
      } else if (travelDistance < 0) {
      movieclip.gotoAndStop (movieclip.totalFrames + (travelDistance % movieclip.totalFrames));
      } else {
      movieclip.gotoAndStop (travelDistance);
    .... which almost works but it is very stuttery to mouse over and then it has this output error..
    mouseDown
    ArgumentError: Error #2109: Frame label 2.3500000000000227 not found in scene 2.3500000000000227.
      at flash.display::MovieClip/gotoAndStop()
      at flashdoc_fla::MainTimeline/onMouseMove()
    ArgumentError: Error #2109: Frame label 3.6499999999999773 not found in scene 3.6499999999999773.
      at flash.display::MovieClip/gotoAndStop()
      at flashdoc_fla::MainTimeline/onMouseMove()
    ArgumentError: Error #2109: Frame label 4.949999999999989 not found in scene 4.949999999999989.
      at flash.display::MovieClip/gotoAndStop()
      at flashdoc_fla::MainTimeline/onMouseMove()
    ArgumentError: Error #2109: Frame label 6.25 not found in scene 6.25.
      at flash.display::MovieClip/gotoAndStop()
      at flashdoc_fla::MainTimeline/onMouseMove()
    ArgumentError: Error #2109: Frame label 7.600000000000023 not found in scene 7.600000000000023.
      at flash.display::MovieClip/gotoAndStop()
      at flashdoc_fla::MainTimeline/onMouseMove()
    ArgumentError: Error #2109: Frame label 8.899999999999977 not found in scene 8.899999999999977.
      at flash.display::MovieClip/gotoAndStop()
      at flashdoc_fla::MainTimeline/onMouseMove()
    ArgumentError: Error #2109: Frame label 11.5 not found in scene 11.5.
      at flash.display::MovieClip/gotoAndStop()
      at flashdoc_fla::MainTimeline/onMouseMove()
    ArgumentError: Error #2109: Frame label 12.850000000000023 not found in scene 12.850000000000023.
      at flash.display::MovieClip/gotoAndStop()
      at flashdoc_fla::MainTimeline/onMouseMove()
    ArgumentError: Error #2109: Frame label 14.149999999999977 not found in scene 14.149999999999977.
      at flash.display::MovieClip/gotoAndStop()
      at flashdoc_fla::MainTimeline/onMouseMove()
    ArgumentError: Error #2109: Frame label 15.449999999999989 not found in scene 15.449999999999989.
      at flash.display::MovieClip/gotoAndStop()
      at flashdoc_fla::MainTimeline/onMouseMove()
    ArgumentError: Error #2109: Frame label 16.75 not found in scene 16.75.
      at flash.display::MovieClip/gotoAndStop()
      at flashdoc_fla::MainTimeline/onMouseMove()
    mouseUp
    I've obviously put some code in the wrong place - could you help me find out what it might be?
    I haven't labelled any frames odd numbers such as 15.4499999999999989 or labeled scenes than number either.
    I can send you my scene if that would help?
    Thanks very much for your time Ned
    (p.s Or maybe if it is easier you might offer some guidance as to how i can change the action script
    function onMouseMove(event:MouseEvent): void {
      movieclip.gotoAndStop(Math.round(mouseX/movieclip.width*(movieclip.totalFrames-1))+1 )
    to allow it to be more like Interactive Thyroidectomy

  • Need a shortcut to "Allow pages to choose their own colors, instead of my selections above option preference" I know where it is and how to use it but I have to go through 7 mouse clicks to change it, then a few minutes later change it back. I also k

    Need a shortcut to "Allow pages to choose their own colors, instead of my selections above option preference" I know where it is and how to use it but I have to go through 7 mouse clicks to change it, then a few minutes later change it back. I also know the sequnce is alt t, alt o, alt c, alt a, then ok, ok. Got to be a way to make a one key short cut for this. I use a black background to reduce eye strain, but about 10% of the webpage I go to can't be send with black so I have to go into tools and hit 6 or 7 things to chnage it then after through with webpage have to do it all over at Not allow webpages to have own color. Very very cumbersome.
    == This happened ==
    A few times a week
    == made that way

    https://addons.mozilla.org/en-US/firefox/addon/toggledocumentcolors-198916/
    The above addon will solve your problem.
    Shortcut to toggle user color/page color :- Ctr+Shift+C

  • Is it possible to send the Pdf format of WebI linking report through email?

    Hi All,
    I have created linking between 2 WebI reports through OpenDocument. I can schedule the parent report and send it to User Email as PDF format, But when the user click the link in parent report its not opening the PDF format of child report after passing the parameter from Parent report. It throws following error.
    Is it possible to send the linked reports(without breaking the functionality of passing the parameter to Child report) to user who don't have access to BO environment? Please help me out.
    User needs to get the Parent PDF report in email, once they click the link it should pass the parameter to child report and the corresponding child report should open in PDF format. (In Infoview "View Mode" i can able to achieve this, how about in Email?).
    Thanks and Regards,
    Tharini Prabhu

    So to achieve my requirement, according to my understanding I have to do the following steps.
    Please correct me if I am wrong.
    1.     Without BO credentials the user can’t able to access the Link and child report created using OpenDoc.
    2. To overcome this I have to create one reserved userid through Admin and assign to all set of Users who will use the Reports.
    3. Have to use Single Sign on function through SDK to avoid the popping window for entering credentials right ?
    I can’t able to find the Sap Note 1326701 in http://www.sapossnotes.com/
    Could you please provide me the details how to implement that?

  • Mouse clicks send app to crazy land

    I have a multi-threaded app with two main windows. One is the data display / main user interface event handler. The other is a seperate window with nothing but the menu bar--basically categorized commands that may be executed independent of what the main user interface is doing. This way I can move the commands around, hide them, etc--they are seperate.
    From the user interface I am running a script. At first the sub-vi that ran scripts was a modal 'Cancel' button to end the script and return to the user interface. The modal property kept the user from doing anything with the user-interface while the script was executing. Perfect. The problem is, it also kept the user from accessing the command window. So I changed the scri
    pt from a modal dialog box to a non-modal pop-up window that i set to Always-on-Top. This allows access to the command window and keeps the 'Cancel' button on top so it won't disappear behind the user interface if the main window gets clicked. Also, the user interface remains locked out because the script sub-vi is called from the user interface event handler.
    The problem I have is that clicking on the main user interface (for example, selecting a different tab to view) while the 'Cancel' button dialog box is visible, does nothing. When the dialog box exits however, all of the clicks done previously (which you'd think would have been forgotten), get propogated. The application goes haywire momentarily trying to change and update things. If you clicked five different tabs while the dialog box was open, it would do nothing, then all of a sudden (when the dialog box exits), flip rapidly between the five different tabs selected, as fast as possible.
    Is there any way to cancel
    or ignore these mouse click events that get sent to the main user interface? Is this a problem with the windows Always-on-Top setting?

    This is certainly occuring because of the "Always on Top" selection. However, there is one option you have here. You could try using Dynamic Events. They're new to LabVIEW 7.0. You can actually unregister a particular event (tab changed) and have it only trigger when you want. For instance, you could unregister this right before the cancel window comes up. Then, if the user clicks the tabs, since this event is unregistered, they will not be tallied. Then, when you get back to that window, there will be no events stored up so nothing should happen.
    J.R. Allen

  • Is it possible to have emtpy space in program that can "click through"?

    I am writing a java program that would need me have a table look that I can click through the space in the square within the table, so I can click on the stuff on Windows desktop. Is it even possible with Java?
    Thanks a lot!

    This is part of my school project.
    I am working a program that is a table, and detect the color on the windows desktop area under each "hole", once the color change, the program would do something to show this "hole" has something change. I need to able to click in the "hole" as well, directly click the Windows area right under the Java. That's why I need to do "true" transparent for the "hole" area in the table.
    Really hope someone knows how to do it.

Maybe you are looking for

  • "USB Device Not Recognized. One of the USB devices has malfunctioned..."

    I'm running Windows XP with external hard drive. When hard drive is connected, iPod will not sync and I get message stating "USB Device Not Recognized. One of the USB devices has malfunctioned..." When disconnect the external drive, he iPod appears i

  • Query parameter transaction,Query transported but not found in QAS

    Hello all, I have an issue with my custom transactions pointing to queries I created. Here is one of 2 examples: I have a query in the Global and Standard areas in DEV. Here are my transaction parameters from SE93: D_SREPOVARI-EXTDREPORT     QUE_JPTR

  • Display graphs from excel data

    Hi,  I have the data in Excel(sample.xls). there are 2 columns of data. I want to read the data from excel and display in the form of XY graph (x-axis -one column of data and Y-axis one coumn of data). can anyone please provide the VI for this or els

  • Roll-up and Drill-down in JOLAP

    HI!!!! I'm studing the JOLAP specification and I don't understand how to implement the drill-down and roll-up operations. Where can I find some example about it? HELP, PLEASE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • Smashing Pumpkins Pre-Order Ticketmaster Offer: Where's My Code?

    I pre-ordered the new Smashing Pumpkins album specifically for the special Ticketmaster offer. The offer stated that a pre-sale code would be mailed to me today (7/10), allowing me the opportunity to purchase 4 tickets for upcoming SP shows before th