Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Crazy Scripting : Cursor Navigator 1.05 [ by Andreone ]


  • Please log in to reply
36 replies to this topic
SKAN
  • Administrators
  • 9115 posts
  • Last active:
  • Joined: 26 Dec 2005

About Cursor Navigator:

This Script navigates the Mouse Cursor in a special way. For example,
If you move the Mouse Cursor off the right boundary of the desktop, it will
appear on the left side, eliminating the need to drag it all the way across your
desktop. It works the same way on every side of the screen.

[*:1wqlwweh]The navigation of cursor (to opposite side) can be slowed down by configuring the
Wait (in Milliseconds) for each Desktop Boundary through the Option available in
"Tray Menu".

[*:1wqlwweh]Double-Clicking on the "Tray Icon" toggles the Script`s status between Pause/Run.

[*:1wqlwweh]This Script requires two icons which will be automatically downloaded!

Credits / Reference:

This script was requested by Rene aka Midiworks
@ Ask for Help topic: Mouse wrap , anybody made something similar ?




a Snapshot of Options GUI : Posted Image



Download the Script : CursorNavigator.ahk (Version 1.04)
View the Code : CursorNavigator.ahk.txt

Click here for Version 1.05 by Andreone

Comments / Suggestions are welcome...


Updates:

[*:1wqlwweh]1.05 by Andreone

[*:1wqlwweh]the script can be included into an other one
[*:1wqlwweh]multi-monitor support
[*:1wqlwweh]mostly based on functions now
[*:1wqlwweh]remove "restore default settings"
[*:1wqlwweh]ini file created only when settings are changed
[*:1wqlwweh]use expressions when possible to reduce code size
[*:1wqlwweh]can use any ini file (default is CursorNavigator.ini) with a [CursorNavigator] section
[*:1wqlwweh]1.04 Cursor Navigation is disabled when "Left Mouse Button" is held down.
This will work work only with Windows NT, Windows 2000 & Windows XP. For Win9x/Me"Shift key" to be used.

[*:1wqlwweh]1.03 Cursor Navigation is disabled when the "Shift key" is held down

[*:1wqlwweh]1.02 Fixed an erratic movement of Cursor. If a boundary is hit accidentally and though moved away from it, the script was relocating the Cursor (after the "wait period"), which is now fixed.

[*:1wqlwweh]1.01 Range for Wait (in Milliseconds) is 10 to 2000. Setting it to maximum, i.e 2001 will disable Cursor navigation for that side of the desktop. Compatibility problem with the Icons now solved.[/list]



garath
  • Members
  • 398 posts
  • Last active: Feb 05 2011 10:31 PM
  • Joined: 24 Mar 2005
If you move the cursor slowly to the left side, it will jump back each time instead of being moved to the other side.

You can have a look at my part of the code to see, how to prevent this.
http://www.autohotke... ... 1&start=15

The gui is awsome, and the code well structured, grats!
Not like mine :(

SKAN
  • Administrators
  • 9115 posts
  • Last active:
  • Joined: 26 Dec 2005
Dear garath, :)

If you move the cursor slowly to the left side, it will jump back each time instead of being moved to the other side.

You can have a look at my part of the code to see, how to prevent this.
http://www.autohotke... ... 81&start=1


Oh yes! It does jump :!: :? . Will look into it. Thanks for pointing it..

The gui is awsome, and the code well structured, grats!


Thank you. :D

Regards, :)

PS: I wonder why Rene has not replied!
kWo4Lk1.png

Laughing Man
  • Members
  • 84 posts
  • Last active: Oct 25 2007 04:43 AM
  • Joined: 28 Apr 2005
Woah..very nice. I can forsee my use of it going up and up.
"I thought what I'd do was I'd pretend I was one of those deaf-mutes" ~ Laughing Man - GITS:SAC

  • Guests
  • Last active:
  • Joined: --

If you move the cursor slowly to the left side, it will jump back each time instead of being moved to the other side.
(


This did happen to my computer.

Goyyah: I don't want my left side of screen has this function, how can I inactivate only the left side for good?

SKAN
  • Administrators
  • 9115 posts
  • Last active:
  • Joined: 26 Dec 2005

Goyyah: I don't want my left side of screen has this function, how can I inactivate only the left side for good?


The code has been updated. Please download again.

Posted Image

As seen in the snaphot,
enable wait for Left ... &
move it to 2001 ... &
Apply it .. Done!

Regards, :)

PS:
The wait limit range is 10-2000 now.
2001 will disable Cursor Navigation for that side of Desktop

garath
  • Members
  • 398 posts
  • Last active: Feb 05 2011 10:31 PM
  • Joined: 24 Mar 2005
Hmm, still hopping at upper and left corner, if you move slowly.
You now have to check the box, to do not move over the border, shouldn' t it be unchecked?

SKAN
  • Administrators
  • 9115 posts
  • Last active:
  • Joined: 26 Dec 2005
Dear garath, :) :)

Hmm, still hopping at upper and left corner, if you move slowly.


Yes ... I know its still hopping! I am just taking a break.. This script has already delayed me in posting a more important script.. ( I've been working for a month on it )

You now have to check the box, to do not move over the border, shouldn' t it be unchecked?


I see it this way: Above 2000, it "Waits" eternally :D.

Regards, :)
kWo4Lk1.png

  • Guests
  • Last active:
  • Joined: --
Dear Goyyah:

Thanks for the update. But I found something else is not working well. I set the right side waiting time to be 1024 (just want to let it longer), then the weird thing happened. If I put my cursor to the right side border then draw it away, when the time comes, it will be moved to the left side, as I never moved my cursor in the right side border.

SKAN
  • Administrators
  • 9115 posts
  • Last active:
  • Joined: 26 Dec 2005

Dear Goyyah:

Thanks for the update. But I found something else is not working well. I set the right side waiting time to be 1024 (just want to let it longer), then the weird thing happened. If I put my cursor to the right side border then draw it away, when the time comes, it will be moved to the left side, as I never moved my cursor in the right side border.


Horrible coding! :cry:. Please test it again.

1.02 Fixed an erratic movement of Cursor. If a boundary is hit accidentally and though moved away from it, the script was relocating the Cursor (after the "wait period"), which is now fixed.


Regards, :)
kWo4Lk1.png

SKAN
  • Administrators
  • 9115 posts
  • Last active:
  • Joined: 26 Dec 2005
1.03 : Cursor Navigation is disabled when the "Shift key" is held down
kWo4Lk1.png

atery
  • Members
  • 15 posts
  • Last active: Apr 13 2006 07:53 AM
  • Joined: 30 Mar 2006

Dear Goyyah:

Thanks for the update. But I found something else is not working well. I set the right side waiting time to be 1024 (just want to let it longer), then the weird thing happened. If I put my cursor to the right side border then draw it away, when the time comes, it will be moved to the left side, as I never moved my cursor in the right side border.


Horrible coding! :cry:. Please test it again.

1.02 Fixed an erratic movement of Cursor. If a boundary is hit accidentally and though moved away from it, the script was relocating the Cursor (after the "wait period"), which is now fixed.


Regards, :)


:p don't know why I become a guest to post...

Yes, the problem fixed, great job, thanks~

midiworks
  • Members
  • 39 posts
  • Last active: Nov 24 2010 06:30 PM
  • Joined: 07 Apr 2006
Hi,
new problem showed up...

There should be a automatic blocking on all sides,
when the left mouse button is held.

Otherwise when selecting whatever on the screen can be quite hard,
if you cross by accident the border.

I was trying to copy text from a web page,
the mouse button went over the lower border and showed up on the other side again resulting in a lost texts selection.

:D
Rene

SKAN
  • Administrators
  • 9115 posts
  • Last active:
  • Joined: 26 Dec 2005
Dear Rene, :)

There should be a automatic blocking on all sides, when the left mouse button is held.


Yes! I am aware of it, and will implement it soon. Mouse Buttons are not recognised in WIN 98 & right now I do not have WIN XP installed (owing to hardware problems).

I already have the idea ( sent it as a PM to garath who helped me in testing it in WIN XP), but I cannot update my code unless I test it on my own.
Also, I have to code it such a way that this utility works fine with Win9x.

Meanwhile, I have provided an alternate solution : Cursor Navigation is blocked on all sides when the Shift key is down.

Regards, :)
kWo4Lk1.png

TheLeO
  • Members
  • 264 posts
  • Last active: Jan 02 2012 01:51 AM
  • Joined: 11 Jun 2005
lols, funny litle script indeed.
just one thing, you didnt consider dual monitors,
but it was very easy to addapt, thanx.
::
I Have Spoken
::