OS4Depot.net 20130227_1013
  Home Search Mirrors Contact Info Credits

 Readme data for Root » Utility » Workbench » cpointer.lha

Description: Centers Mouse Pointer On Screen and more.
Install: cpointer.lha
Size: 10kb 5
Version: 2.4
Date: 26 Mar 12
Author: Allan Versasevel
Submitter: Allan Versaevel
Email: allanv/rogers com
Requirements: OS 3.X and Higher
Category: utility/workbench
License: Freeware
Distribute: yes
Min OS Version: 4.0
I found my old CPointer program lying around and discovered that I never
uploaded it to Aminet after all these years and it also works under Amiga OS4.
So I decided to release it for all to enjoy.

CPointer 2.4 is a simple utility that will centre the mouse pointer on boot-up
and
much more.

Runs on 68K Amigas as well as PPC OS 4.x machines. I have not tested Cpointer on
others.

Features:

- Will centre the mouse pointer on any size screen.(Default)
- User defined co-ordinates can be set.
- Left mousebutton can be activated with delay (screen activation)
- Double-click can be emulated.
- Works with native screenmodes as well as Graphics cards.


NOTE:
*****

****  CPointer is CLI only. It will promptly crash if try to run  ****
****                      it from Workbench !!                    ****


Usage:

C:CPointer XPOS YPOS DELAY DCLICK

XPOS  = X position on screen   > if the X and Y values are omittied, the pointer
<
YPOS  = Y position on screen   > is centred by defualt.                         
<

DELAY = fakes a left mouse button click after so many ticks. (50 ticks = 1
second. 60 if NTSC)
        Good for activating a screen like WorkBench after boot. 0-600 allowed (0
to 10 seconds)

DCLICK  Will execute a double click. This could be used to have the pointer
        double-click on an icon to run it. Use your imagination :)

Installation:

1) Dump CPointer to your C: dir.

2) Fire up your favorite text editor.

3) Now, just before LoadWB add this line:


~~~~~~~~~~~~~~

Run >NIL: C:CPointer XPOS=<value> YPOS=<value> DELAY=<delay> DCLICK (see below
for explanation)

C:LoadWB

EndCli >NIL:


~~~~~~~~~~~~~~

Examples:

Run >NIL: C:CPointer ; This will centre the mouse pointer on the current screen

Run >NIL: C:CPointer DELAY=0  ; This will centre the mouse pointer aswell as
activate the current screen.

Run >NIL: C:CPointer DELAY=250 ; Centre Mouse Pointer on screen. Fake a left
mouse button click 4.5 seconds
                                 after CPointer is run (activates screen)


Run >NIL: C:CPointer XPOS=100 YPOS=200 DELAY=250 DCLICK ; Position mouse at
100,200 and fake a
                                                          double click after 4.5
seconds.

You get the idea......


Now on every boot, your mouse pointer will be centred on your Workbench
Screen. Put over an icon or icon bay. Run a program through it's icon.
Do what you will. :)


Testers:
--------

Laurence Walton - Initial tests

Isaac Morris    - GFX card tests


E-Mail me at allanv()rogers.com if you find CPointer useful. Thanks.

Regards,
Allan Versaevel



History
-------

v2.4 - 05.31.03

- Optimized code. 
- Runs on both OS 3.x and 4.x systems 

v2.3 - 29.12.01

- Improved CLI parameter parsing
- Changed X and Y defaults if user inputs bad
  data.

v2.2 and lower




Copyright (c) 2004-2013 Björn Hagström. All rights reserved.
OS4 and its logos are registered trademarks of Hyperion Entertainment