Bis repetita... How to center the pointer on Tiger's startup...?

Hi all!
This is becoming a gipsy post, since it's the second time around I've had to relocate it... (Smile)
As Alan advised me to ("Hi Didier Calzergues; I have no ideas of how to solve your problem but I am going to suggest you repost here. Where I am sending you is the Automator section of Tiger since that it the operating system you are using. Allan"), I'm relocating my original subject here. Goes like this:
Following someone's advice (S.U. wrote: "I have no idea myself, but if you don't get an answer here, you might try your question in the Leopard forum which is where there might be more software experts. Good luck!"), I decided to relocate my previous post on "How to use your MacBook Pro", which goes as follows:
Hi guys (and ladies)!
New on this forum, I confess I didn't have much time to prowl it in search for an answer to the question in the tittle of this post. I apologize for this, but the question itself is pretty straightforward: I'd like my TrackPad pointer to appear in the center of the screen on startup, the way it does on... err, um, you know, the OS from Redmond... You know?
I find it a hassle to have to dislodge it from its upper left corner every time I boot up my MBP, especially considering it takes several attempts to move it, with the Apple menu usually appearing when all I need is to click on a Dock icon...
I read somewhere that an AppleScript could be devised that would remedy to my problem, but I'm not fluent in AppleScript, so if you guys suggest something along this route, please make it understandable for the newbie that I am!
Thanks in advance...
PS: I'm on Tiger, but I gather an AppleScript's an AppleScript, right...?

An AppleScript is usually an AppleScript, but the AppleScript forum is actually here. Automator is a different animal, with both TIger and Leopard versions (or mutations, depending on your point of view).
Anyway, you can do what you want with some scripting. First, there is the XTools scripting addition, which will give AppleScript the ability to move the mouse. Once the scripting addition is copied to either the /Library/ScriptingAdditions or ~/Library/ScriptingAdditions folders, you can use it's commands. Next, you will need to place a script application into your login items (System Preferences > Accounts > Login Items) that will move the mouse when you log in:
<pre style="
font-family: Monaco, 'Courier New', Courier, monospace;
font-size: 10px;
margin: 0px;
padding: 5px;
border: 1px solid #000000;
width: 720px;
color: #000000;
background-color: #FFEE80;
overflow: auto;"
title="this text can be pasted into the Script Editor">
do shell script "/usr/sbin/system_profiler SPDisplaysDataType | grep 'Resolution'" -- get info
tell the result to set {DisplayWidth, DisplayHeight} to {word 2, word 4} -- get resolution
move mouse {DisplayWidth div 2, DisplayHeight div 2} -- center mouse
</pre>

Similar Messages

  • How to center the TrackPad pointer on startup

    Hi guys (and ladies)!
    New on this forum, I confess I didn't have much time to prowl it in search for an answer to the question in the tittle of this post. I apologize for this, but the question itself is pretty straightforward: I'd like my TrackPad pointer to appear in the center of the screen on startup, the way it does on... err, um, you know, the OS from Redmond... You know?
    I find it a hassle to have to dislodge it from its upper left corner every time I boot up my MBP, especially considering it takes several attempts to move it, with the Apple menu usually appearing when all I need is to click on a Dock icon...
    I read somewhere that an AppleScript could be devised that would remedy to my problem, but I'm not fluent in AppleScript, so if you guys suggest something along this route, please make it understandable for the newbie that I am!
    Thanks in advance...

    OK, that's one way to put it, but I already have a PC with Windoze installed (I happen to beta-test Seven like a half-dozen billion other people...), so if I wanted to run Windoze, I'd do it on my other computer.
    No, seriously, doesn't anyone know of a script that would center the pointer on the screen of my MBP when it boots up? Like giving it new spacial coordinates (e.g. x=720, y=450 for my 1440x900px display)?
    OK, I'll make it simple (???): how do you instruct the pointer to act the way I've just described via AppleScript?

  • How to center the text displayed in a JList

    Hi,
    The width of the JList display area is wider than the text displayed. I tried to center the text displayed to make it look nicer. I had tried using "setAlignmentX(Component.CENTER_ALIGNMENT)" in my own ListCellRenderer class but did not work. Any idea how to center the text?
    Fai.

    Yes, I am using JLabels in my renderer and the following is the code:
    public class MyCellRenderer extends JLabel implements ListCellRenderer {
         private static final Color HIGHLIGHT_COLOR = new Color(0, 0, 128);
         public MyCellRenderer() {
              setOpaque(true);
              setIconTextGap(12);
         public Component getListCellRendererComponent(
              JList list,
              Object value,
              int index,
              boolean isSelected,
              boolean cellHasFocus)
              String entry = (String)value;
              setText(entry);
              setFont(new Font("Ariel", Font.BOLD, 18));
              setAlignmentX(Component.CENTER_ALIGNMENT);
              if(isSelected) {
                   setBackground(HIGHLIGHT_COLOR);
                   setForeground(Color.white);
              } else {
                   setBackground(Color.white);
                   setForeground(Color.black);
              return this;
    Can you point out where to implement the centering logic?
    Thanks,
    Fai.

  • How to give the points??

    hi all
    pls let me tell how to give the point to our friends??

    please check the rules engagement found in the begining of the questions page. Out of that the 4 th step is the following.
    Step 4: Thank Others by Giving Points
    SDN/BPX has a Contributor Recognition Program. Which in short text means that for each question you have 10 points, which can be given to the person that answers your question. 6 & 2 points should also be given for helpful answers. For every question you later award points for, you in turn receive 1 point for.
    you would find three radio buttons on the left hand side of your query with marked with 3 colors. Choose the suitable one based on the merit of the answer.
    regards
    sadhu kishore

  • How to center the content in crystal report viewer?

    open crystal report viewer in winform, default at the left top
    after maxmium the winform window, content become at the center
    another odd thing is that i set window winform size 1208*1024 and crystal report view is fill
    then tried, content is not center any more
    How to center the content in crystal report viewer in code?
    Edited by: Mathew_666 on Oct 6, 2011 5:20 AM

    Since there is no control for center you'll need to do the math on your own. This is just a rough draft, but you'll get the idea.
    One of the things you'll need to figure out is your buffer to help you give a centered feel. We'll say that value is 50 in this case.
    Height
    int buffer = 50;
    int formHeight = 1000; // we'll assume a height of 1000 in this case
    int crystalTop = buffer;
    int crystalViewerHeight = formHeight - (buffer * 2); // buffer is at the top and bottom
    Width
    int formWidth = 1000; // we'll assume a width of 1000 in this case
    int crystalLeft = buffer;
    int crystalViewerWidth = formWidth - (buffer * 2); // buffer is at the top and bottom

  • How to Reward the Points

    Dear all,
    i am new in this forum. can any one tell me how to reward the points?
    atul

    Atul,
    <b>How to give points:</b>
    1. Mark your thread as a question while creating it.
    2. In the answers you get, you can assign the points by clicking on the stars to the left.
    <b>You also get a point yourself for rewarding (one per thread).</b>
    Regards,
    Prasobh

  • How to center the text in JLabel without image?

    I need to center the text inside JLabel, how do i do it?
    Also I need some advise, what is the best way to mark a clicked card (I'm making a card game)?

    I found this method that controls that text alignment:you can try few more:
    label.setVerticalAlignment(JLabel.CENTER);    //these two would  center the label contents
    label.setHorizontalAlignment(JLabel.CENTER);
    label.setHorizontalTextPosition(JLabel.CENTER);Thanks!

  • Overlapping polygon and how to determine the points

    I have a larger footprint polygon/table called A and a sub-polygon/table called B.
    I need to identify which is polygon A and which is polygon B because they overlap with each other.
    And I need to identify all the point that falls within A and B.
    which means A = A and B = A+B and the other points that do notfall within A and B will be null.
    How do I start this assignment?
    I was thinking
    alter table A
    add  (ID varchar( 50 BYTE)) ;
    update A
    set ID = 'larger';
    --TO do a point in Polygon
    PROCEDURE point_polyA
    IS
         proc_name varchar2(50);
    BEGIN
         proc_name := 'point_polyA';
         add_log(proc_name,'Start processingpolyA');
         COMMIT;
         FOR x IN (SELECT id, geoloc
                       FROM A)
         LOOP     
              FOR y IN (SELECT a.*
                            FROM point
                           WHERE sdo_filter (A.geoloc, x.geoloc) = 'TRUE')
              LOOP               
                   IF sdo_geom.relate(y.geoloc, 'ANYINTERACT', x.geoloc, 5) = 'TRUE' THEN
                        INSERT INTO point_polyA ( id)
                             VALUES ( x.id);
                   END IF;          
              END LOOP;
              COMMIT;
         END LOOP;
         add_log(proc_name,'Finish!');
         COMMIT;
         EXCEPTION
                 WHEN OTHERS THEN
                    add_log(proc_name, substr(SQLCODE||' '||SQLERRM, 1, 199));
         COMMIT;Do the same for B then
    select ID
    from A,B
    where sdo_relate(A.geoloc,B.geoloc,'mask = contains') = 'TRUE';Message was edited by:
    CrackerJack

    Hi,
    this
    rownum<2
    making sure that only the one clicked polygon is rendered/displayed
    (pls see the [image of the screen |http://bp0.blogger.com/_8PXbvmaOB6M/SEe0rNCz4nI/AAAAAAAAAWo/lOHcLjbIz-U/s1600-h/verschneiden_snap3.png] )
    i.e. you click on the polygon of the area (county) and get the FOI as per Parameter 1 (which are the records/FOI contained in the first table "DEKUNDEN" = customers)
    in ur above code you will need to say:
    (b.geoloc, :1)
    recommend to firstly try to achieve a result with the delivered MVDEMO data.
    Then the SQL of the theme will look as follows:
    select a.location, a.name,
    a.city, a.sales from customers a where sdo_relate(a.location, (select
    geom from counties b where sdo_contains(b.geom, :1)='TRUE' and
    rownum&lt;2), 'mask=ANYINTERACT')='TRUE'
    re) attributes for both points and polygon
    --> for the points (customer table/theme) usually you get an Infowindow automatically for the theme "customers" for the "Info columns" you have defined in the ADVANCED Tab of the theme in the Mapbuilder.
    --> for the polygon you'll have to assign an info window on "mouse_right_cklick" as the "mouse-click" (left) has already been used for selelcting the polygon.
    and lastly I am not dealing with a webservice - just 2 tables: "customers" (with the POI - points) and "counties" (the polygon - area) from the MVDEMO example data.
    Hope that helped and I did not make more complicated - sorry - but it is quite complex (;-).
    Bernhard
    Edited by: BernhardFW on Aug 25, 2008 1:30 PM

  • How come sometimes the 'pointer' disappears while i'm moving it on my browser and i have to scroll through stuff to see see it again... software problem?

    The pointer icon does not show when i move my touchpad though it still hovers over tabs and clicks it but you can't see the pointer so you move randomlly, thus i have to wait several minutes or swipe around before I can see it again. How do I fix it?

    There is a native Netflix app on Apple TV. If you are attempting to use a VPN via MBP then that is not supported.

  • MapInfo MapX  How to center the map with Geoset ?

    Hello,
    In CR2008, I create a report and I insert a map inside.
    The map is well found (.gst file), but the map is not visible because not centered.
    The little window (map browser ?) shows the map but the selection area doesn't match the part of the map in the object map.
    See [Map in CR object|http://egavelle.free.fr/cr_mapx.jpg]
    Top = the map just after the insert command
    Buttom = after I touch the selection area in the "map browser"
    How to do to show the map centered ?
    I have tried to change the metadata in the geoset file (Projection, Center, ...) but this has no effect on center the map ?
    Thanks

    Hello, Not sure about that map tool you are using but as a reference CR uses the top left corner is location 0,0 of all our report objects.
    Hope that helps
    Don

  • How to center the content of GridViewColumn in code behind?

    Hi all,
    This seems pretty simple to do in xml but I can find a way to do this in code. I'm using this to write to a FixedPage in an xps document and I need the content of the columns centered. Is this even possible?
    Thanks
    ListView myListView = new ListView();
    GridView myGridView = new GridView();
    GridViewColumn gvc1 = new GridViewColumn();
    gvc1.DisplayMemberBinding = new Binding("FirstName");
    gvc1.Header = "First Name";
    gvc1.Width = 100;
    // I need to center the column content!
    myGridView.Columns.Add(gvc1);
    List<DataItem1> xcv = new List<DataItem1>(5);
    xcv.Add(new DataItem1 { FirstName = "John" });
    myListView.ItemsSource = xcv;
    myListView.View = myGridView;

    Just create an ListViewItem style with the HorizontalContentAlignment property set to Center and set the ItemContainerStyle property of the ListView to this one:
    ListView myListView = new ListView();
    ListViewItem lbi = new ListViewItem();
    Style ics = new Style(typeof(ListViewItem));
    ics.Setters.Add(new Setter(ListViewItem.HorizontalContentAlignmentProperty, System.Windows.HorizontalAlignment.Center));
    myListView.ItemContainerStyle = ics;
    GridView myGridView = new GridView();
    GridViewColumn gvc1 = new GridViewColumn();
    gvc1.DisplayMemberBinding = new Binding("FirstName");
    gvc1.Header = "First Name";
    gvc1.Width = 100;
    myGridView.Columns.Add(gvc1);
    List<DataItem1> xcv = new List<DataItem1>(5);
    xcv.Add(new DataItem1 { FirstName = "John" });
    myListView.ItemsSource = xcv;
    myListView.View = myGridView;
    Please remember to close your threads by marking helpful posts as answer and then start a new thread if you have a new question. Please don't ask several questions in the same thread.

  • How to change the point size in a plot.

    I want to set the point size in an XY plot to be proportional to the amplitude. So, when the amplitude is small, the point on the plot should be small and when the amplitude is large, the point on the plot should be large

    > I want to set the point size in an XY plot to be proportional to the
    > amplitude. So, when the amplitude is small, the point on the plot
    > should be small and when the amplitude is large, the point on the plot
    > should be large
    The other post points out that the point size applies to all points in a
    plot, and it has only a few possible sizes.
    The better solution is probably to look at the picture example for XY
    graphs. You can then open up the diagram and look at the source code
    for it. You will find a loop that draws for each point. You might also
    want to look at the scatter plot example.
    Greg McKaskle

  • How to know the point where one menu popUp is showed ?

    hi,
    I need know the point where one popUp menu is showed, but I have problems to do it....
    I can install actionListener for method actionPerformed of class AbstractAction but the event I get does not able to say the point...
    In the documentation, I read it is possible install a listener for the mouse and select the popUpMenu with the condition
    "if (e.isPopupTrigger())"
    but it is not confortable to do it and in that case it is not easy too to manage the choice for the item selected...
    Some advice please ?
    I write down the code I use...
    thank you to have one answer..
    regards tonyMrsangelo
    import java.awt.AWTEvent;
    import java.awt.event.*;
    import javax.swing.*;
    enum OpzPopMenu
    {NuovoAppuntamento, CancellaAppuntamento, SpostaAppuntamento};
    public class MenuPopUpTestOne {
        public static void main(String[] args) {
            MenuFrameXmenuTestOne frame = new MenuFrameXmenuTestOne();
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setVisible(true);
    A frame with a sample menu bar.
    class MenuFrameXmenuTestOne extends JFrame {
        JPopupMenu popupMenu;
        public static final int DEFAULT_WIDTH = 300;
        public static final int DEFAULT_HEIGHT = 200;
        public MenuFrameXmenuTestOne() {  // costruttore
            setTitle("MenuTest");
            setSize(DEFAULT_WIDTH, DEFAULT_HEIGHT);
            popupMenu = new JPopupMenu();
            Action nuovo = new PopupMunuAction("nuovo");
            Action sposta = new PopupMunuAction("sposta");
            Action cancella = new PopupMunuAction("cancella");
            JPanel jp = new JPanel();
            add(jp);
            // item1
            JMenuItem item1 = new JMenuItem(OpzPopMenu.NuovoAppuntamento.toString());
            item1.addActionListener(nuovo);
            popupMenu.add(item1);
            // item2
            JMenuItem item2 = new JMenuItem(OpzPopMenu.SpostaAppuntamento.toString());
            item2.addActionListener(sposta);
            popupMenu.add(item2);
            //item3
            JMenuItem item3 = new JMenuItem(OpzPopMenu.CancellaAppuntamento.toString());
            item3.addActionListener(cancella);
            popupMenu.add(item3);
            jp.setComponentPopupMenu(popupMenu);
            enableEvents(AWTEvent.MOUSE_EVENT_MASK);
        // aggiungere il popupMenu FINE   -----------------
        } // costruttore
    * Serve per gestire il menu popUp
    class PopupMunuAction extends AbstractAction {
    //    String itemOne = "nuovo";
    //    String itemTwo = "cancella";
    //    String itemTree = "sposta";
        public PopupMunuAction(String nome) {
            super(nome);
        public void actionPerformed(ActionEvent e) {
            String command = e.getActionCommand();
            if (command.compareTo(OpzPopMenu.NuovoAppuntamento.toString()) == 0) {
                JOptionPane.showMessageDialog(null, "NUOVO  one");
            if (command.compareTo(OpzPopMenu.SpostaAppuntamento.toString()) == 0) {
                JOptionPane.showMessageDialog(null, "SPOSTA  one");
            if (command.compareTo(OpzPopMenu.CancellaAppuntamento.toString()) == 0) {
                JOptionPane.showMessageDialog(null, "CANCELLA  one");
    } // inner class PopupAction

    tonyMrsangelo wrote:
    I need know the point where one popUp menu is showed, but I have problems to do it....Do you mean where the JPanel was clicked, or where the pop up appears on the screen.
    If you mean where the panel was clicked, then it's as simple as adding this to your program:
            jp.addMouseListener(new MouseAdapter()
                @Override
                public void mousePressed(MouseEvent e)
                    if (e.getButton() == MouseEvent.BUTTON3) // if right clicked
                        // do whatever in here with the e.getX() and e.getY() results
                        System.out.println("[" + e.getX() + ", " + e.getY() + "]");                   
            });

  • [SOLVED] How to center the splash background image

    Hi,
    My question is about the Frank Nimphius code example:
    http://www.oracle.com/technology/products/jdev/tips/fnimphius/custom_splash_screen/index.html
    It's really a great-easy-usefull article ;)
    It works very well, but I can't center the imatge of splash (not the progress bar, just splash image). I try with text-align, position, etc. css properties, without luck.
    Can anybody help me, please?
    JVN

    Hi Simon,
    Using firebug I can solve the problem. I change the value of 'top' and 'left' attributes of 'af|document::splash-screen-content' and now it appears centered :)
    Thanks!
    JVN
    P.S: using a css class, like 'af|document.globalDocument::splash-screen' and then in jspx page: '<af:document styleClass="globalDocument">', it doesn't work.

  • How to make the pointer work when clicking?

    Hi,
    I have purchased a new Macbook Pro and am at set up stage yet. I can't go further because the pointer is not working when I am clicking. I can't click on "Start using Mac OS X Lion." I have become so frustrated now! Please let me know if I can fix it or I have to return it to apple centre for fixing.
    Cheers,
    Mehrshaad

    Press the 'tab' key on your keyboard a couple of times. You should see the blue highlight/focus move between options. When its on the option you want, hit the spacebar.
    There may be something wrong with your trackpad. Try pressing down quite hard in the bottom left corner. It it takes an unreasonable amount of force, take it back to the shop to have it cleaned or replaced.
    I had exactly this problem from new (in 2009) and never bothered to get it fixed because I mostly use 'tap to click'
     > System Preferences > Trackpad | One Finger - tap to click
    but it is an PITA in installation and recovery mode where that gesture is off by default.

Maybe you are looking for