Setting the position of the mouse pointer

Hi,
I want to explicitly set the mouse pointer to an definded location, e.g. when a window is opened.
Is there a method I can invoke or a work around to set the mouse pointer to, say, posx = 100 and posy = 150?
Are there any other manipulating methods such as pressing the mouse button?
thanx,
SirRuberth

yes.
You can do all that and much more with the java.awt.Robot class
(new in java 1.3)
void mouseMove(int x, int y)
Moves mouse pointer to given screen coordinates.
void mousePress(int buttons)
Presses one or more mouse buttons.
void mouseRelease(int buttons)
Releases one or more mouse buttons.
Ragnvald Barth
Software engineer

Similar Messages

  • Centering the mouse pointer at the center of a icon

    Hi all,
    I have an Icon on a dailog box, and when i drag the icon i want to set the mouse pointer at the center of the icon. The mouse pointer get sets to Icon Frame's leftside. i want it excatly at the center. Can plz any one help to solve this problem.
    Thanx in advance

    There is a when-mouse-over trigger and that works fine in client-server mode for Forms 5/6/6i, but that is less indicated when deployed using Application Server.
    In that trigger you may write whatever code is necessary, restricted package procedures.
    Still, I think, for your case, if you do not have to deal with a multi-record block, you should use the HINT property for that item and set_item_property with the HINT argument for that item in order to set the hint to the item's value - this should set_item_property should be called on the when-new-record-instance .

  • Modal dialog limiting the mouse pointer and blocking all application

    I wanted to create a modal dialog that blocks all application in my desktop. Only password field be present and exits only if correct password is typed. I also wanted to limit the mouse pointer within the window of the modal dialog. Will that be possible? i have read modality feature of Mustang(beta) and notes there that system modality is not included. Can anybody there give me an idea how to do tricks on blocking all applications of the desktop? I will be much grateful to anybody who could solve this problem. Thnx in advance...

    tnx Sarcommand ..i give up on that, i understand the risk if that feature is included..
    all i wanted is to make an internet cafe client/server that blocks the client's pc interaction if log time is reached.blocking only the keyboard and mouse.
    i have seen so many softwares sets the cursor position within the dialog bounding box only with user and password there. though my other application runs the mouse is still captured on the dialog even the dialog lost focus.
    if that would not be possible I'll just send notification to the client, a dialog that does not block any application.
    now, im going to try if the client can do som action whenever the server sends alert if the client java app is not the focus. i will post next time what hapens.but if you tried already, if u dont mind posting it so others could know it also..
    tnx so much Sarcommand..

  • External display won't show the mouse pointer (optical)

    hi all,
    13" display dimming my old eyes . decided to connect to 20" sony monitor. got the adapter > connected> display shows identical to laptop BUT no mouse pointer AND when the external monitor is displaying, the menubar is not longer existent on the powerbook (the trackpad does work on the laptop screen with external connected ) so I cannot get to the display preferences to set anything up to get the mouse pointer to show on the external monitor.
    HELP and thanks
    sue

    ok folks, fiddled since I wrote this and managed to actually get it going ! so all set.
    I'm up and running with the display. and all is dandy !
    Message was edited by: Sue brown1

  • Is there a way to obtain the text item's value when the mouse pointer at?

    Hi,
    Is there a way to obtain the text item's value when the mouse pointer at? Mouse pointer may be located somewhere out of current record and even out of current block.

    There is a when-mouse-over trigger and that works fine in client-server mode for Forms 5/6/6i, but that is less indicated when deployed using Application Server.
    In that trigger you may write whatever code is necessary, restricted package procedures.
    Still, I think, for your case, if you do not have to deal with a multi-record block, you should use the HINT property for that item and set_item_property with the HINT argument for that item in order to set the hint to the item's value - this should set_item_property should be called on the when-new-record-instance .

  • Disable the mouse pointer icon!

    As in the title, is there a way to disable the mouse pointer
    icon, ie when you rollover the button it changes to the "finger". I
    dont want to see the "finger" I just want it to remain as the
    "arrow"

    quote:
    Originally posted by:
    Newsgroup User
    I guess you never noticed how your OS works??? The pointer
    stays a pointer
    over all buttons. I find the finger pointer rather useless as
    well.
    Well, I must by now reply to all of you.
    First, "urami" made a good point when referring to kiosk
    interfaces. It makes sense to have no roll over in this case and I
    fully agree with this statement.
    But in the case of the interfaces we commonly create in Flash
    we need the finger icon to indicate that there is a photo-button or
    a drawing-button or a clickable text here and, if we want to "hide"
    it or if we do not want the user click it, we can with simple
    functions (related to _x and _y mouse position) disable or enable
    depending the circumstances the hot spot when the pointer rolls
    over it.
    The quoted remark of "DMennenoh" is not relevant.
    Why? Simply because in the OS all buttons are clearly
    designed as... buttons! There is no need to change the pointer icon
    as we perfectly know what we are going to do and where we must move
    the pointer to do the action: Open, Save, etc. And it is not only
    the case for buttons, it's also the case for the menu bar...
    In the interfaces we design, it is not always the case.
    In all my interfaces, I always have in mind these:
    How shall I react if I see this interface for the first time?
    What can I do and where?
    I suppose you'll agree with me if I say that some interfaces
    are so bad that it is very helpful to have the finger icon just to
    indicate that the area under the pointer is clearly a hot spot...
    I think this discussion is far from ending...

  • After updated software on mac mini with os x 10.7.5 and restart the mouse pointer after about 30 sec. converted to the rainbow wheel and I can't control the computer.

    After updated software on mac mini with os x 10.7.5 and restart the mouse pointer after about 30 sec. converted to the rainbow wheel and I can't control the computer. The rainbow wheel was runnig 8 hrs and I turn off mac mini by power button, then I turn on mac mini with key Shift and p/w, checked HD. My HD has
    capacity 499.25 GB used 86.91GB. Is there a solution to fix this problem axcept the reinstall os?

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software — potentially for the worse. The following procedure will help identify which such modifications you've installed. Don’t be alarmed by the complexity of these instructions — they’re easy to carry out and won’t change anything on your Mac.  
    These steps are to be taken while booted in safe mode.
    Below are instructions to enter some UNIX shell commands. The commands are harmless, but they must be entered exactly as given in order to work. If you have doubts about the safety of the procedure suggested here, search this site for other discussions in which it’s been followed without any report of ill effects. 
    Some of the commands will line-wrap or scroll in your browser, but each one is really just a single line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then copy it. The headings “Step 1” and so on are not part of the commands. 
    Note: If you have more than one user account, Step 2 must be taken as an administrator. Ordinarily that would be the user created automatically when you booted the system for the first time. The other steps should be taken as the user who has the problem, if different. Most personal Macs have only one user, and in that case this paragraph doesn’t apply. 
    Launch the Terminal application in any of the following ways: 
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.) 
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens. 
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid. 
    When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” and press return. You should then get a new line ending in a dollar sign. 
    Step 1 
    Triple-click the line of text below to select it:
    for k in /Sy*/L*/Ex*/{,.?}*.kext; do test -f "$k/Contents/Info.plist" && /usr/libexec/PlistBuddy -c "Print :CFBundleIdentifier" "$_" | egrep -qv "apple|Accusys|ArcMSR|ATTO|CalDigit|HighPoint|hp-fax|JMicron|print|SoftRAID|stex" && echo $k; done | open -f -a TextEdit
    Copy the selected text to the Clipboard by pressing the key combination command-C. Then click anywhere in the Terminal window and paste (command-V). A TextEdit window will open with the output of the command. Post the contents of that window, if any — the text, please, not a screenshot. You can then close the TextEdit window. The title of the window doesn't matter, and you don't need to post that. No typing is involved in this step.
    Step 2 
    Repeat with this line:
    sudo defaults read com.apple.loginwindow LoginHook | open -f -a TextEdit 
    This time you'll be prompted for your login password, which you do have to type. Nothing will be displayed when you type it. Type it carefully and then press return. You may get a one-time warning to be careful. Heed that warning, but don't post it. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator. 
    Note: If you don’t have a login password, you’ll need to set one before taking this step. If that’s not possible, skip to the next step. 
    Step 3 
    Repeat with this line:
    ls -1A /e*/mach* {,/}L*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta}* L*/Fonts 2> /dev/null | open -f -a TextEdit
    Important: If you formerly synchronized with a MobileMe account, your me.com email address may appear in the output of the above command. If so, anonymize it before posting. 
    Step 4
    osascript -e 'tell application "System Events" to get name of every login item' 2> /dev/null | open -f -a TextEdit 
    Remember, Steps 1-4 are all copy-and-paste — no typing, except your password. Also remember to post the output. 
    You can then quit Terminal.

  • Setting the Mount Point

    Hi
    My startup disk is mounting fine but not appearing on the desktop. It does appear in Finder windows and works OK.
    I see that in Disk Utility the mount point is "/" where it should probably read: "/volumes/Macintosh HD"
    How can I set the mount point to the correct directory?
    Thanks / Eckhard

    Aww you're taking the time - heroes are hard to come by, and they don't always win right off the bat but encouragement helps!
    G4 Dual 450 MHz
    1.12 GB SDRAM some was added, can't remember how much and that was 3 years ago.
    80GB = 8.61GB free
    Macintosh HD = 7.68GB free
    Umax Powerlook 2100XL Scanner - SCSI. Only available when I restart with the scanner on of course. Currently off and not available.
    Ethernet to a D-Link ADSL router, then to an Airport. Printer etc. is off the router.
    80GB contains my working files, no system.
    Standard Mac Keyboard and mouse, working fine for years.
    Wacom tablet - working fine for years.
    USB - I only use 2 devices, a Scandisk photo memory card reader, and a 500MB USB memory stick. I mounted and unmounted both and restarted. No change.
    Nothing has changed, no recent system upgrade (or the MacHD disappeared well after I upgraded). Installed Poser Figure Artist a few months ago but to my recollection the Mac HD icon was still around after that. No new drives and this configuration has been stable (which I why I stick with it) for years. No other upgrades or updates (I LIKE to keep it stable!)
    No freezes or crashes or hard restarts for months. Unrecoverable freezes are very rare, can't remember the last time.
    Repair Permissions worked fine when I started from the Install CD. Minor problems mostly to do with flash - corrected.
    FIND:
    As per your instructions:
    name is: .Macintosh HD
    visibility = invisible
    results = 0 items
    or...
    name is: .Macintosh HD
    visibility = visible & invisible
    results = 0 items
    It's not renamed as it appears correctly in Finder windows, in Disk Utility, in Startup Disk and in System Profiler, and can be opened no problem. Just won't show up on the desktop.
    Here is how it appears in System Profiler:
    Macintosh HD:
    Capacity: 28.63 GB
    Available: 7.64 GB
    Writable: Yes
    File System: Journaled HFS+
    BSD Name: disk0s5
    Mount Point: /

  • When a link is rolled over by the mouse pointer a very annoying pop up with the link address shows up. There seems to be no way to prevent this from happening. How can this pop up be made to go away?

    no matter what website, every time I move the mouse pointer over something to click on a line of black printing in a thin white box pops up at the bottom of the screen and shows me the http address of the item I'm about to click on. I want to shut this function off or remove it if possible. I find that the previous version did not do this, it seems to be unique to 6.0. It's VERY distracting and ANNOYING. How can I make it go away????

    When you hover the mouse cursor over any link, it will display the link details at the bottom left of the screen; black font on white background.
    This display can be very important as it shows the full address of the hyperlink. This can be particulary useful for checking on whether the link is bona-fida. For example; if you receive an email that looks like it is from a bank , hovering over the link will indicate instantly that the link is pretending to be something it isn't.
    Another example that can be useful; a website link may say 'contact me' rather than give the actual email address. However, when you hover over the link, the actual email address will be displayed at the bottom of the screen. If you click on the link then Outlook usually opens, however I do not use Outlook, so displaying the email address is useful.
    This display is something that has always been present and it is also displayed if you use IE.
    However, I can see that this annoys you, so you could try the following:
    [[https://addons.mozilla.org/en-US/firefox/addon/link-location-bar/?src=api]]
    After installing the addon, you will need to restart Firefox, then go to History and Restore previous session to get all your tabs and webpages back.
    You will now find that when you hover over any link, it will now display in your address bar on the right hand side.
    If this helps, please say this question has been solved.

  • Is there a way to keep the mouse pointer in my window

    I would like to change the cursor so that it can not go outside my application window until they exit the program. Is this possible?

    Just because you disagree with its usage does not make
    it an invalid question. Suppose you had an
    application dedicated to real-time monitoring of a
    high-pressure system. In our hypothetical example,
    accessing other parts of the system without first
    properly "dismissing" the application could be
    potentially hazardous - people could get hurt. In
    this case, would it not make sense to make the
    application "system-modal"? Furthermore, it would be
    a convenience to the operator if the mouse pointer
    were trapped in this critical application.
    How would one go about trapping the mouse cursor
    inside this application?Yes, it would make sense to make this application system-modal. And it would also make sense to not allow any other applications to run on the monitoring system. For such an application, then, it would occupy the entire screen and there would be no way to swap away from it to any other application. Which is what several people suggested for this rather non-critical application, I believe.
    But in the ordinary case, where you are running on a system that does allow multiple applications to run, trapping the mouse cursor in a single application is bad manners and an alternate solution should be sought.

  • How to set the out point beyond 9.95 seconds???

    how to set the out point  in Motion 5 beyond 9.95 seconds???

    First you need to make sure your project is long enough then you can adjust the play range (in/out). To make sure the project is long enough:
    1. From the project properties (command-J) go to the Duration field and enter a new duration.
    2. Click on the down arrow icon to the right of the current time, there is an option to show the project duration. Once set to this you can double click the number and type in a new project duration. I'd recommend setting it back to show current time when done.
    3. Of course you can also change the duration of a project when it is first created, in the project browser.
    Once you're sure you have a long enough project you can adjust the in and out range.  You then use the zoom controls in the bottom of the timeline to show more of the timeline and adjust the play range as needed. There's lots more about project and play range duration adjustments in the documentation: http://help.apple.com/motion/mac/5.1/

  • Why the mouse pointer in Logic Pro does not change shape during work in OSX 10.9.1?

    I've a MacBook Pro Retina 15-inch Late 2013 and I'm using two external displays. One connected to to the HDMI port (display 1) the other to thunderbolt (display 2). The MacBook display is closed. I’m working with Logic Pro 9.1.8 (32bit) with OSX 10.9.1
    Why the mouse pointer in Logic Pro does not change shape during work???
    It was already difficult with OSX 10.9 but now after upgrading to 10.9.1 it's game over!
    At least before I could select which display use Logic Pro to have all the shape functions of the pointer. Not in both displays, so to be forced to edit in ONLY ONE of the two displays using this workaround: (right click on Logic icon in Dock: Option --> Desktop on Display 1). Now or I select “Option --> All Desktops” or does not work. However, by selecting all displays you say goodbye to Mission Control. This can’t be a solution!!!
    The amazing thing is that Nuendo has no problem while Logic Pro, Apple's native software, it can't!
    With Nuendo it’s indifferent in which display you are working, the shape of the mouse pointer changes shape depending on the requirement in both displays.
    This thing drives me crazy!
    Solutions?
    Here some ideas in other foums:
    http://www.logicprohelp.com/forum/viewtopic.php?f=1&t=86264
    But this aren't really solutions but workarounds. Use Logic in all desktops makes Mission Control useless!!

    I installed all over again by formatting as suggested by the genes of pro application support. Each plug-in, each virtual instrument, a job that lasted 3 days. And as suggested for each new plug-in I proceeded to check the proper functioning of Logic Pro and did each time a back up with Time Machine.
    The Result:
    Logic works as it should ONLY on the primary monitor and ONLY on the first desktop.
    BUT
    Reason and Nuendo dont' have this issue !!
    I believe that Apple developers are thinking only to mobile phones and things like messages or face time.
    And that's not all!
    After a few weeks, perhaps by installing a version of Adobe Acrobat, I say maybe because I'm not sure, logic has stopped working properly. Again problems with the mouse pointer.
    Luckily I had a back up! But now I'm terrified to install new programs. Thanks Apple!

  • How do you set the in point of a clip?

    I'm using the timeline template that has a number of clips flying by and I need to adjust the in point of the clips. To be clear, I'm NOT trying to adjust the point that the clip appears in the timeline but instead the portion of the clip that will be displayed as it fly's by within the Motion timeline.

    All that that seems to do is set the in point of the clip on the Motion timeline. Again, what I am attempting to do is change what is seen on the particular clip that has been dropped into this template. Where the inset clip window appears on the timeline is fine but I want is a later portion of the video within that clip to be shown as it is flying by. As it is now the clip is just beginning to show the footage I want as it is flying out of view.

  • Just got a new macbook air and every time I close the cover and then reopen it later the mouse pointer freezes. I've just updated the operating system but no help Seems like it might be a software problem with mousepad. Its only 3 weeks new !

    I purchased a Macbook Air on 01st October and from day 3 every time I close the cover and reopen it later the mouse pointer is frozen
    I updated the operating system today but no change.
    Any one else having this annoying problem. Seems like a software glitch to me.

    http://www.microsoft.com/mac/support
    http://answers.microsoft.com/en-us/mac/forum/macword?auth=1
    http://answers.microsoft.com/en-us/mac/forum/macoffice2011-macword/microsoft-wor d-for-mac-2011-will-not-open-error/ecc42616-6f49-40bb-b8f5-e21c711ea359

  • The answer helped me.But still, what are the settings that I have to change for the behavior of the mouse pointer towards finder? Also the mouse pointer sometimes  doesn't accept my command and start clicking itself.what is the problem and how to fix it?

    The answer helped me.But still, what are the settings that I have to change for the behavior of the mouse pointer towards finder? Also the mouse pointer sometimes  doesn't accept my command and start clicking itself.what is the problem and how to fix it?

    If the mouse clicks something on its own then it looks like you have a hardware problem with the trackpad or possibly the battery that is right underneath the trackpad.
    I have read that the battery can swell and that would put pressure on the trackpad.

Maybe you are looking for

  • I tried grouping tabs without reading the book first and have lost all my tabs, I've now read the book; how do I get them back?

    I have about 120 tabs in my Firefox navigation bar and clicked on the "customise..." in the dropdown menu from a right click. Up came the opening panel showing all my tabs fanned out, one on top of the other and I didn't know what to do. I guess I mu

  • Could not find stored procedure 'sp_start_job'

    I'm trying to run a ms sql server agent job from within my vb.net code using sp_start_job and getting exception... Could not find stored procedure 'sp_start_job'. ... so obviously I'm doing something wrong.  My vb code contains is ...         jobComm

  • Default-web-access.log

    hi all, first i am sorry to post here but i am confuse i have application server 10g on unix 5.10 and my database is 10g.2 my application server is only tier without infra ,now all user who access the database take more time to call the forms i serac

  • Touch crashes and Backup will not install

    I installed the 2.0.2 update a few days ago, after my Touch crashed and refused to reboot. I wasn't able to restore from a previously made backup. It just told me, the backup was "not compatible" with my iPod... thought maybe it was about 2.0.1 vs. 2

  • Lion 10.7 - Proper driver for Dynex eSATA Expresscard adapter?

    I just upgraded to OS X Lion today, and I'm having trouble talking to my external drive with my eSATA expresscard adapter. (see link below) http://reviews.bestbuy.com/3545/8682393/dynex-2-port-esata-ii-expresscard-adapte r-reviews/reviews.htm The ada