Mouse motion and mouse clicks

I want to make a class that can detect these. How do I do this? I was thinking of using implementation of a Listener class but I'm not sure which and I'm not sure how.

Take a look at java.awt.event.MouseAdapter, which implements interfaces MouseListener, MouseMotionListener, MouseWheelListener and EventListener.
For sample codes on how to use these classes, read through the posts on the Swing forum and you'll find plenty.
If you have a more specific question, feel free to post back.
db

Similar Messages

  • Motion and expanding

    I am reducing a video clip (to about 50%) and placing it at the top right corner of the screen. As it starts to play, I want it to move to the middle of the screen and slowly expand to 100% as it moves. I can get it to move to the middle, but I can't get it to expand on the way down. It only expands after it gets to the middle. I've tried rendering the motion first and then entering the expansion, even restarting and then doing the expansion. Nothing works. Any ideas?

    Set up the image in the corner position in Motion and then click the Scale and Centre keyframes.
    Move your playhead to the point where you want the picture to finish up and drag and expand the image to fill the frame.
    Job done!

  • Mouse clicks and path not exporting to flash

    Hey Guys, I've just started using Captivate v5 and all seems to work fine but when I export to Flash CS5, the mouse animates as linear and the click effect doesn't appear. If I preview from captivate the paths and clicks are there. If I click the mouse icon on the slides, they are all set to flash blue circle and straight pointer path is unchecked. The slides do not contain live film either, just screenshots. If I go into the movie in flash, the tween is there but no motion path. Any ideas?  Thanks

    Yeah, when I export to flash it opens the doc as AS3. Also, I noticed the default click effect does work, but when I change to any of the custom ones it gets ignored by flash.

  • Automator - How do I: Mouse Click, Move Windows, and more

    Hello,
    I am attempting to create my own Automator programs and for a while I had some that worked nicely. I have recently been tweaking my iMac so that it can "think" on its own (by automator of course) and do things for me. However, I've run across a block with Mavericks (I believe it's due to Mavericks).
    1. How can I get Automator to register a mouse click? "Watch me do" does not seem to want to work for me at all. I also would prefer if it would just be a registered mouse click, but not actually use the mouse (I know this is possible) so that if I'm doing something and it runs, it won't disturb my mouse and I can keep working.
    2. How can I register a keyboard stroke? Same as above
    3. How can I have automator move windows? I have two monitors and there are times when I may want it to move a window from one mintor to another
    The following is a list of all the things I'm attempting to accomplish at the moment (with other things when I think of them) with automator (either through applications, folder actions, or ical actions):
    1. Register a mouse click at a given area or on a given element in a safari page
    2. Register a keyboard stroke in a given program (be able to focus on a program and then do the keystroke)
    3. Move windows from one location to another
    4. Full-screen and Un-full-screen iTunes at certain times of day
    5. Download all purchased items on iTunes that aren't on the computer (sometimes iTunes doesn't download stuff if it was downloaded on my MacBook Pro first)
    6. Automatically voice read reminders (that I've set in Reminders) each day at a given time (I can use loop to repeat it to make sure I hear it all)
    I'll think of more of course, but the mouse click, keyboard stroke, and moving windows is the big thing I'm trying to figure out how to do. Can anyone help?
    Also, I am not a computer tech. I am tinkering with this because it's fun and helpful, but an answer of "just use applescript" or "just use java" will likely just give me a headache. I know that it's going to be one of those codes, but I'm hoping someone has a "base" code that can be copied and pasted that's just a standard click that I can adjust for where I need to click and what process I need to click on.
    If there is an Action Pack that includes a "Register Mouse Click" and/or "Register Keyboard Stroke", then that would work great, but the only action packs for automator I've seen that work with Mavericks is for photoshop.

    You're asking for a lot in one post.  It would be better to break your requests down a bit. 
    For example, to deal with mouse clicks, you can use the Automator Action Run Shell Script with this python script:
    import sys
    import time
    from Quartz.CoreGraphics import *
    def mouseEvent(type, posx, posy):
            theEvent = CGEventCreateMouseEvent(None, type, (posx,posy), kCGMouseButtonLeft)
            CGEventPost(kCGHIDEventTap, theEvent)
    def mousemove(posx,posy):
            mouseEvent(kCGEventMouseMoved, posx,posy);
    def mouseclick(posx,posy):
            mouseEvent(kCGEventLeftMouseDown, posx,posy);
            mouseEvent(kCGEventLeftMouseUp, posx,posy);
    ourEvent = CGEventCreate(None);
    # Save current mouse position
    currentpos=CGEventGetLocation(ourEvent);
    # Click the "Apple"
    mouseclick(25, 5);  
    # 1 second delay       
    time.sleep(1);        
    # Restore mouse position
    mousemove(int(currentpos.x),int(currentpos.y))
    It will look like this in Automator:
    To drag something (i.e. a window, a file icon) from position 40,60 to 60,300:
    import time
    from Quartz.CoreGraphics import *
    def mouseEvent(type, posx, posy):
               theEvent = CGEventCreateMouseEvent(None, type, (posx,posy), kCGMouseButtonLeft)
               CGEventPost(kCGHIDEventTap, theEvent)
    def mousemove(posx,posy):
               mouseEvent(kCGEventMouseMoved, posx,posy);
    def mouseclickdn(posx,posy):
               mouseEvent(kCGEventLeftMouseDown, posx,posy);
    def mouseclickup(posx,posy):
               mouseEvent(kCGEventLeftMouseUp, posx,posy);
    def mousedrag(posx,posy):
               mouseEvent(kCGEventLeftMouseDragged, posx,posy);
    ourEvent = CGEventCreate(None);
    # Save current mouse position
    currentpos=CGEventGetLocation(ourEvent);
    # move mouse to upper left of screen
    mouseclickdn(40, 60);
    # drag icon to new location
    mousedrag(60, 300);
    # release mouse
    mouseclickup(60, 300);
    # necessary delay
    time.sleep(1);
    # return mouse to start positon
    mouseclickdn(int(currentpos.x),int(currentpos.y));
    For keystokes in AppleScript (which can be added to Automator with the Run Applescript Action) see: http://dougscripts.com/itunes/itinfo/keycodes.php

  • Diable "open dialog box" on right mouse click so I can use l mouse to advance to next slide and r mouse click to "go back."  How in PP 2010 for mac????

    I do presentations in PP10.  I am new to macair, and used to Windows.  HOW DO I DISABLE THE "OPEN DIALOG BOX ON RIGHT CLICK"?  I would like to use L mouse to advance slide, and R mouse to go back.  The default is to use R mouse to open dialog box.  I can disable this by unchecking the box in "advanced" on the PC.  How do I do it with the Mac????
    Thanks
    hacmd

    Hi Rod,
    As originally stated in my opening post, the SWF is to be inserted into an Articulate '13 slide (what I called an aggregator originally - I tried not to bring them up since I don't want the chatter about "There's your problem - using Articulate"! ).
    Recall that posting this published file to our LMS did not allow right-mouse click functionality as the flash player menu just gets in the way.
    If I insert the captivate 6 files into Articulate as a Web Object (referencing the entire folder with html, htm and assets, and then posted to our LMS, and it DOES allow RM click operations in both IE and FF (although no sound on the Captivate slide in FF). But this is not what we want to do as this introduces 2 navigation controls (the Captivate one and the Articulate Player).
    Why must anything be posted to a web server for this functionality to work?
    I am able to go into the Captivate 6's published folder, and launch the Captivate demonstration by simply double clicking on the index.html file and this works great in both FF and IE after changing the security settings for flash.
    Again - I can not believe I am the only one out there trying to use the right-mouse click feature to do a software simulation by embedding the Captivate SWF into an Articulate '13 project.

  • Recording keystrokes and mouse clicks?

    Greetings,
    I need to be able to make scripts/macros by recording keystrokes and mouse clicks with location.
    Is this possible with Automator?
    Does anyone know of a way program to do this?
    It seems so simple.
    Thanks

    Keyboard shortcuts were often missed.  For example, I tried this sequence many times. 
    0: (setup:  text editor is scrolled to first line and cursor is at the beginning of the first line)
    1: Click on text editor window to focus it.
    2: press SHIFT-DownArrow to move cursor down one line and select the first line
    3: press CMD-X to cut the line.
    Automator never would capture those key strokes. 
    But today I has a break through.  This sequence does work:
    0: (setup:  text editor is scrolled to bottom of the file and the cursor is placed below the last line.)
    1: Click on text editor window to focus it.
    2: press SHIFT-UpArror to move cursor up one line and select the last line.
    3: press CMD-X to cut the line.
    about 70% of the time this did get recorded correctly (I did maybe 3 recordings and one failed to select).  Once it got recorded correctly it worked reliably. 
    So it seems to be able to capture some sequences but not others.  Both sequences work very reliably when I type them but automator can only capture the last sequence. 
    Thanks for the suggestions.  This tool is better than nothing but not anything I would recommend.

  • Mouse clicks and keystrokes

    When I edit mouse click in mouse properties, it
    doesn't always make the sound when it's checked (ticked), and
    sometimes makes a mouse click sound when it's not ticked. If you
    run it through again, it often responds differently. The same thing
    happens with keystroke sounds, though less frequently. Is this a
    common problem, is it my computer, or is there some way of fixing
    this problem?

    Keyboard shortcuts were often missed.  For example, I tried this sequence many times. 
    0: (setup:  text editor is scrolled to first line and cursor is at the beginning of the first line)
    1: Click on text editor window to focus it.
    2: press SHIFT-DownArrow to move cursor down one line and select the first line
    3: press CMD-X to cut the line.
    Automator never would capture those key strokes. 
    But today I has a break through.  This sequence does work:
    0: (setup:  text editor is scrolled to bottom of the file and the cursor is placed below the last line.)
    1: Click on text editor window to focus it.
    2: press SHIFT-UpArror to move cursor up one line and select the last line.
    3: press CMD-X to cut the line.
    about 70% of the time this did get recorded correctly (I did maybe 3 recordings and one failed to select).  Once it got recorded correctly it worked reliably. 
    So it seems to be able to capture some sequences but not others.  Both sequences work very reliably when I type them but automator can only capture the last sequence. 
    Thanks for the suggestions.  This tool is better than nothing but not anything I would recommend.

  • External Interface and Mouse Clicks

    I'm new to writing ActionScript.
    I am working in .NET (C#) environment using
    AxShockwaveFlashObjects.
    I am simply trying to react to a mouse click on the Flash
    ActiveX Control.
    I have inserted the code in a layer only used for script:
    import flash.external.ExternalInterface;
    var mouseListener:Object = new Object();
    var boolMouseDown:Boolean = false;
    mouseListener.onMouseDown = function ()
    boolMouseDown = true;
    mouseListener.onMouseUp = function()
    if (boolMouseDown)
    ExternalInterface.call("MouseClicked", "NavigateToURL", "
    http://www.adobe.com");
    boolMouseDown = false;
    Mouse.addListener(mouseListener);
    I get the MouseClick event in my C# code. The problem is that
    I get TWO of the same event ??
    Can someone tell me why or how I should be doing this to get
    only one event.
    Thanks,
    Steve

    Take a look at java.awt.event.MouseAdapter, which implements interfaces MouseListener, MouseMotionListener, MouseWheelListener and EventListener.
    For sample codes on how to use these classes, read through the posts on the Swing forum and you'll find plenty.
    If you have a more specific question, feel free to post back.
    db

  • NSView subclass and mouse clicks

    I wrote a relatively simple program. It's got a single visual component on the window, an NSView subclass with drawing delegated out to another class called Arrow. Anyway, it uses a timer to trigger calls to drawRect which in turn "animates" a layer. I have a 100x100 layer and a velocity & position which get updated each time through depending on how much "real" time has passed. As the layer bounces around the screen, the animation seems smooth and everything looks good. If I start clicking in the window, however, things get wonky. The animation stutters (probably expected) and the position sometimes gets set back to the origin (0,0, bottom left corner of screen). I wonder if there's something I can do to stop mouse clicks from affecting the view, I have no set up anything to use the mouse clicks AT ALL so I don't really know how they can affect anything in the code I wrote. If this isn't enough info to answer the question, I'll post the xcode project.

    The end result is going to be a very simple 2d game with maybe 8-10 things on the screen moving around at any one time. My next step is to try out openGL but using these CALayers seemed a lot simpler. However, since you say any event will block, I expect that will happen to opengl as well. I'll dig some more in the examples. It seems I followed the pattern from the crash landing demo (although I'm doing it on the mac itself, not iphone/simulator) to set up the rendering.
    When you suggest using core animation, are you talking about just telling it the start/end position and the speed, and letting it handle everything in between? I don't think that will work for my case because eventually I will have to handle mouse/keyboard events to alter the movement in real-time. Am I missing something?
    Thanks again for your help.

  • Firefox stops responding to mouse clicks after one click; am on iMac PPC G5,OS 10.4.11; this freeze happens with Logitech AND Mac mice.

    About a month ago Firefox would stop responding to the clicks of my mouse after a click or two. Minimizing the page and reopening, or clicking off to another window and back, sometimes gives me another click or two but it always freezes again. I'm on an iMac G5 PPC (from around 2005) desktop running OS 10.4.11. I have a Logitech mouse and loaded a newer driver, and upgraded to Firefox 3.6.12 but the problem persists. I also tried running in Safe Mode but this did not fix the problem, and tried both the original Mac mouse and my Wacom tablet but neither fixes the problem.

    Same problem FF3.6.13 WinXP. I had this before but it went away. Upgraded from Firebug 1.6.1 to 1.6.2 tonight and the problem returned; not sure if that's coincidence.
    Weird thing is, it's not just that Firefox doesn't respond to the mouse clicks. The click goes right through Firefox to whatever's underneath. However, only the top FF window is affected. If I have two FF windows open, alt-tab into window A, then into window B (both maximised), then when window B stops responding the clicks are picked up by window A.
    With window B not responding but over window A, if I click where window A has a SELECT, window A receives the mouse event and the OPTIONS appear over window B.
    Only alt-tabbing to another non-Firefox window fixes the problem, and only temporarily.

  • A script that captures the coordinates of the mouse clicks and saves them into a file

    Hello,
    I'm trying to create a cartoon taking a movie (I've chosen blade runner) as base. I've got the real movie and I've exported all the pictures using VirtualDUB. Now I have a lot of images to modify. I would like to modify the actors faces with the faces generated by Facegen modeller. I'm thinking how to make the whole process automatic because I have a lot of images to manage. I've chosen to use Automate BPA,because it seems the best for this matter. I'm a newbie,so this is my first attempt using Adobe Photoshop and Automate BPA. I wrote a little script. It takes a face generated with Facegen modeller and tries to put it above the original actors faces. But it doesn't work very good and I'm not really satisfied,because the process is not fully automated. To save some time I need to write a script that captures the coordinates of the mouse when I click over the faces and that saves them into a file,so that Automate BPA can read these coordinates from that file and can put the face generated with Facegen Modeller above the original face. I think that Automate BPA is not good for this matter. I think that two coordinates are enough,X and Y. They can be the coordinates of the nose,because it is always in the middle of every face. It is relevant to knows how big should be the layer of the new face,too. This is the Automate BPA code that I wrote :
    <AMVARIABLE NAME="nome_foto" TYPE="TEXT"></AMVARIABLE>
    <AMVARIABLE NAME="estensione_foto" TYPE="TEXT"></AMVARIABLE>
    <AMSET VARIABLENAME="nome_foto">br</AMSET>
    <AMSET VARIABLENAME="estensione_foto">.jpeg</AMSET>
    <AMVARIABLE NAME="numero_foto" TYPE="NUMBER"></AMVARIABLE>
    <AMVARIABLE NAME="coord_x" TYPE="NUMBER"></AMVARIABLE>
    <AMVARIABLE NAME="coord_y" TYPE="NUMBER"></AMVARIABLE>
    <AMWINDOWMINIMIZE WINDOWTITLE="Aggiungere_layer - AutoMate BPA Agent
    Task Builder" />
    <AMWINDOWMINIMIZE WINDOWTITLE="AutoMate BPA Server Management Console
    - localhost (Administrator)" AM_ONERROR="CONTINUE" />
    <AMENDPROCESS PROCESS="E:\Programmi_\Adobe Photoshop
    CS5\Photoshop.exe" AM_ONERROR="CONTINUE" />
    <AMRUN FILE="%&quot;E:\Programmi_\Adobe Photoshop CS5\Photoshop.exe&quot;%" />
    <AMPAUSE ACTION="waitfor" SCALAR="15" />
    <AMSENDKEY>{CTRL}o</AMSENDKEY>
    <AMPAUSE ACTION="waitfor" SCALAR="1" />
    <AMINPUTBOX RESULTVARIABLE="numero_foto">Inserire numero FOTO di
    partenza -1</AMINPUTBOX>
    <AMINCREMENTVARIABLE RESULTVARIABLE="numero_foto" />
    <AMPAUSE ACTION="waitfor" SCALAR="1" />
    <AMMOUSEMOVEOBJECT WINDOWTITLE="Apri" OBJECTNAME="%nome_foto &amp;
    numero_foto &amp; estensione_foto%" OBJECTCLASS="SysListView32"
    OBJECTTYPE="ListItem" CHECKOBJECTNAME="YES" CHECKOBJECTCLASS="YES"
    CHECKOBJECTTYPE="YES" />
    <AMMOUSECLICK CLICK="double" />
    <AMPAUSE ACTION="waitfor" SCALAR="10" />
    <AMSENDKEY>{CTRL}+</AMSENDKEY>
    <AMPAUSE ACTION="waitfor" SCALAR="20" />
    <AMSENDKEY>l</AMSENDKEY>
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSEMOVE MOVEX="429" MOVEY="281" RELATIVETO="screen" />
    <AMMOUSECLICK />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSEMOVE MOVEX="659" MOVEY="281" RELATIVETO="screen" />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSECLICK />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSEMOVE MOVEX="659" MOVEY="546" RELATIVETO="screen" />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSECLICK />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSEMOVE MOVEX="429" MOVEY="546" RELATIVETO="screen" />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSECLICK />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSEMOVE MOVEX="429" MOVEY="281" RELATIVETO="screen" />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSECLICK />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMSENDKEY>v</AMSENDKEY>
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSECLICK CLICK="hold_down" />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSEMOVE MOVEX="131" MOVEY="99" RELATIVETO="screen" />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSEMOVE MOVEX="99" MOVEY="162" RELATIVETO="screen" />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMMOUSECLICK CLICK="release" />
    <AMPAUSE ACTION="waitfor" SCALAR="2" />
    <AMINPUTBOX RESULTVARIABLE="coord_x">Inserire coordinata X</AMINPUTBOX>
    <AMINPUTBOX RESULTVARIABLE="coord_y">Inserire coordinata Y</AMINPUTBOX>
    <AMMOUSEMOVE MOVEX="200" MOVEY="200" RELATIVETO="screen" />
    <AMMOUSECLICK CLICK="hold_down" />
    <AMMOUSEMOVE MOVEX="%coord_x%" MOVEY="%coord_y%" RELATIVETO="position" />
    <AMMOUSECLICK />
    and this is a short video to explain better what I want to do :
    http://www.flickr.com/photos/26687972@N03/5331705934/
    In the last scene of the video you will see the script asking to input the X and the Y coordinates of the nose. This request is time consuming. For this reason I want to write a script that captures automatically the coordinates of the mouse clicks. The only thing to do should be click over the nose and the script should make the rest. As "c.pfaffenbichler" suggested here : http://forums.adobe.com/thread/775219, I could explore 3 ways :
    1) use the Color Sampler Tool’s input with a conventional Photoshop Script.
    2) use After Effects would provide a better solution.
    3) Photoshop’s Animation Panel might also offer some easier way as it might be possible to load two movies (or one movie and one image) and animate the one with the rendered head in relation to the other.
    Since I'm a totally newbie in graphic and animation,could you help me to explore these ways ? Thanks for your cooperation.

    These are the coordinates of the contours of the face that you see on the picture. Can you explain to me how they are calculated ? The coordinates of the first colums are intuitive,but I'm not able to understand how are calculated the coordinates of the second one.
    Thanks.
    1 COL     2 COL (how are calculated these values ?)
    307.5000 182.0000 m
    312.5000 192.0000 l
    321.5000 194.0000 l
    330.5000 193.0000 l
    335.0000 187.0000 l
    337.0000 180.5000 l
    340.0000 174.0000 l
    338.5000 165.5000 l
    336.0000 159.0000 l
    331.5000 153.0000 l
    324.5000 150.0000 l
    317.0000 154.0000 l
    312.5000 161.0000 l
    309.0000 173.0000 l
    307.5000 182.0000 l
    Message was edited by: LaoMar

  • The Hyperlinks and even the active buttons(like Back, Forward, Maximize,minimize,closeetc) on a webpage opened on Firefox page become inactive and there is no action on mouse click on them.

    == Issue
    ==
    I have another kind of problem with Firefox
    == Description
    ==
    I use Firefox Version 3.6.6. If firefox is kept opened for a day or two with some tabs opened, then the active buttons like the "Back","Forward","Maximize","minimize","Close", etc and even the links on the webpage become disabled. On mouse click no action gets performed on these type of links. Once this starts only a PC restart causes Firefox to work normally.
    Please kindly help me with a solution and I would request a fix for this issue.
    == This happened
    ==
    A few times a week
    == Firefox is kept opened for long time, may be for a day or two with quite a lot of tabs opened.
    ==
    == Troubleshooting information
    ==
    Application Basics
    Name Firefox
    Version 3.6.6
    Profile Directory
    Open Containing Folder
    Installed Plugins
    about:plugins
    Build Configuration
    about:buildconfig
    Extensions
    Name
    Version
    Enabled
    ID
    Google Redesigned 0.4.5 false
    Greasemonkey 0.8.20100211.5 false
    Java Console 6.0.16 true
    Java Console 6.0.17 true
    Java Console 6.0.20 true
    Java Quick Starter 1.0 false [email protected]
    Microsoft .NET Framework Assistant 1.1 false {20a82645-c095-46ed-80e3-08825760534b}
    New Tab King 3.1.4 false
    RealPlayer Browser Record Plugin 1.1.1 false
    Stylish 1.0.8 false {46551EC9-40F0-4e47-8E18-8E5CF550CFB8}
    Modified Preferences
    Name
    Value
    accessibility.typeaheadfind.casesensitive 1
    accessibility.typeaheadfind.flashBar 0
    browser.places.smartBookmarksVersion 2
    browser.startup.homepage_override.mstone rv:1.9.2.6
    extensions.lastAppVersion 3.6.6
    general.useragent.extra.microsoftdotnet (.NET CLR 3.5.30729)
    network.cookie.prefsMigrated true
    print.print_printer \\secureprint\Level 8 Right Wing Printer
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_bgcolor false
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_bgimages false
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_command
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_downloadfonts false
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_edge_bottom 0
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_edge_left 0
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_edge_right 0
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_edge_top 0
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_evenpages true
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_footercenter
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_footerleft &PT
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_footerright &D
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_headercenter
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_headerleft &T
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_headerright &U
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_in_color true
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_margin_bottom 0.5
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_margin_left 0.5
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_margin_right 0.5
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_margin_top 0.5
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_oddpages true
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_orientation 0
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_pagedelay 500
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_paper_data 1
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_paper_height 11.00
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_paper_size_type 0
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_paper_size_unit 0
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_paper_width 8.50
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_reversed false
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_scaling 1.00
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_shrink_to_fit true
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_to_file false
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_unwriteable_margin_bottom 0
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_unwriteable_margin_left 0
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_unwriteable_margin_right 0
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_unwriteable_margin_top 0
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_bgcolor false
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_bgimages false
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_command
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_downloadfonts false
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_edge_bottom 0
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_edge_left 0
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_edge_right 0
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_edge_top 0
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_evenpages true
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_footercenter
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_footerleft &PT
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_footerright &D
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_headercenter
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_headerleft &T
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_headerright &U
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_in_color true
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_margin_bottom 0.5
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_margin_left 0.5
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_margin_right 0.5
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_margin_top 0.5
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_oddpages true
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_orientation 0
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_pagedelay 500
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_paper_data 1
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_paper_height 11.00
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_paper_size_type 0
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_paper_size_unit 0
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_paper_width 8.50
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_reversed false
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_scaling 1.00
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_shrink_to_fit true
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_to_file false
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_unwriteable_margin_bottom 0
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_unwriteable_margin_left 0
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_unwriteable_margin_right 0
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_unwriteable_margin_top 0
    privacy.sanitize.migrateFx3Prefs true
    security.warn_viewing_mixed false
    == User Agent
    ==
    Opera/9.80 (Windows NT 5.1; U; en) Presto/2.5.24 Version/10.54

    I do not use McAfee software and I am having this issue. I can right-click on the "back-or-forward" buttons and get a history list to choose from (which is far from an improvement), but do not get any response from a left-click. The "back-or-forward" navigation buttons are greyed-out. Also, when I open Firefox (4), I get two title bars at the top with two separate sets of the "minimize", "maximize" and "close" icons. It appears as if one window is open within another, but if I click any of the commands "both" windows respond. It's annoying and cumbersome.

  • 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

  • How to handle both single click and double click from mouse

    hey,
    I looked in past threads and didn't get a proper answer for capturing both single and double click from the mouse.
    in most applications the single click action does not interfere with the double click action, for example in a text editor, single click sets the cursor in between the text, double click marks a word, triple click marks a sentence, they do not bother each other, they all can happen first the single then the double and then the triple, but what if i have a very distinct action for each of the actions, the e.getClickCount() returns every time the number of clicks and if i use
    if(e.getClickCount()==1)
        doSingleClick();
    if(e.getClickCount()==2)
        doDoubleClick();it will always do first the single click and then the double click, which works fine with the example i gave, but not with what i want to do, so i was thinking to over come this that i will use another thread to run my tasks if dt has past since the last click and by the last click counts to perform the correct action and go to sleep until the next mouse click notify it, what do you think?
    run this to get what i mean...
    package blah;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class MouseClickTest {
         static long previousTime = System.currentTimeMillis();
         public static void main(String[] args) {
              JPanel panel = new JPanel();
              JButton component = new JButton("Hit me, please");
              component.addMouseListener(new MouseAdapter(){
                   public void mouseClicked(MouseEvent me){
                        if(me.getClickCount()==1)
                             System.out.println("Now I will do single click action");
                        if(me.getClickCount()==2)
                             System.out.println("Now I will do DOUBLE click action");
    //                    System.out.println("Click count: " + me.getClickCount());
              panel.add(component);
              Launcher.launch(panel);
    package blah;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Launcher {
         public static JFrame launch (Container contents, String title, Color backgroundColor) {
              JFrame frame = new JFrame (title);
              if (backgroundColor != null) {
                   frame.setBackground (backgroundColor);
                   contents.setBackground (backgroundColor);
              } else {
                   frame.setBackground (contents.getBackground());
              frame.getContentPane().add (contents, BorderLayout.CENTER);
              frame.pack();
              frame.addWindowListener (new WindowAdapter() {
                   public void windowClosing (WindowEvent e) {
                        System.exit (0);
              frame.setVisible (true);
              return frame;
         public static JFrame launch (Container contents, String title)      {
              return launch (contents, title, null);
         public static JFrame launch (Container contents, Color backgroundColor) {
              return launch (contents, contents.getClass().getName(), backgroundColor);
         public static JFrame launch (Container contents) {
              return launch (contents, contents.getClass().getName());
    }

    Read my comments and solution in this posting; [http://forums.sun.com/thread.jspa?forumID=57&threadID=705244]
    and then choose a better design for your application.

  • Response to mouse click by combo box list and underlying clickable label

    Hello,
    we developed a label responding to a mouse click by opening and thereby displaying an associated help text. The label extends a project specific hierarchy of labels and thus implements MouseListener, of course. Now we encountered a strange problem: It occurs when a combo box is placed above such a label in a panel. By clicking the combo box a selective list drops down and covers the label. As soon as a mouse click is performed on a list item directly covering (i.e., right in front of) the clickable label not only this item is selected but the help screen associated with the underlying label is displayed, too. So the mouse click is processed twice: as proposed by the combo box and unwantedly by the label. This behaviour could not be reproduced on other components being placed below a combobox. So the label itself seems to be the cause but we cannot imagine what could exactly be the reason for this double reaction. Perhaps anyone heard of something like that?
    We are currently working with IBM Visual Age for Java 2.0 (Java version 1.1.8 with the according Swing version). The clickable label reflectively calls methods of a model to determine whether help is available and if so later on to open this help text.
    Any help is appreciated!
    Danilo

    Thank you for your response. I tried both to check the focus and to consume the event. But I had to learn that labels are not able to catch the focus. I also was not able to consume an appropriate event of the combobox. So I finally solved the problem by extending JButton and implementing ActionListener. Thus my labels are actually buttons but I changed their appearance and behaviour so one cannot distinguish them from labels.

  • When I use Mail and want to paste an emailadress with a right mouse click in the adres field this doesn't work, ofcourse cmd V  works. How can I solve this

    when I use Mail and want to paste an emailadress with a right mouse click in the adres field this doesn't work, ofcourse cmd V  works. How can I solve this

    YAY!  That did it.
    Thank you so much.
    And a Very Happy and Prosperous New Year to you!
    bonnie

Maybe you are looking for