AutoHotkey Community

It is currently May 27th, 2012, 8:33 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 37 posts ]  Go to page 1, 2, 3  Next
Author Message
PostPosted: April 10th, 2006, 8:18 pm 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
Quote:
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.

  • 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".
  • Double-Clicking on the "Tray Icon" toggles the Script`s status between Pause/Run.
  • 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 : 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...


Quote:
    Updates:

  • 1.05 by Andreone

    • the script can be included into an other one
    • multi-monitor support
    • mostly based on functions now
    • remove "restore default settings"
    • ini file created only when settings are changed
    • use expressions when possible to reduce code size
    • can use any ini file (default is CursorNavigator.ini) with a [CursorNavigator] section
  • 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.
  • 1.03 Cursor Navigation is disabled when the "Shift key" is held down
  • 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.
  • 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.


Last edited by SKAN on June 16th, 2008, 1:54 pm, edited 9 times in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 10th, 2006, 8:45 pm 
Offline

Joined: March 24th, 2005, 11:50 am
Posts: 398
Location: germany
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.autohotkey.com/forum/viewtop ... 1&start=15

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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 10th, 2006, 9:23 pm 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
Dear garath, :)

You wrote:
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.autohotkey.com/forum/viewtop ... 81&start=1


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

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


Thank you. :D

Regards, :)

PS: I wonder why Rene has not replied!

_________________
URLGet - Internet Explorer based Downloader
StartEx - Portable Shortcut Link


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 10th, 2006, 10:26 pm 
Offline

Joined: April 29th, 2005, 12:14 am
Posts: 84
Location: Maryland
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 11th, 2006, 3:13 pm 
garath wrote:
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?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 11th, 2006, 6:27 pm 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
Anonymous wrote:
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.

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


Last edited by SKAN on June 16th, 2008, 1:55 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 11th, 2006, 7:34 pm 
Offline

Joined: March 24th, 2005, 11:50 am
Posts: 398
Location: germany
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 11th, 2006, 7:49 pm 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
Dear garath, :) :)

You wrote:
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 wrote:
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, :)

_________________
URLGet - Internet Explorer based Downloader
StartEx - Portable Shortcut Link


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 11th, 2006, 7:55 pm 
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.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 11th, 2006, 8:53 pm 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
Anonymous wrote:
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, :)

_________________
URLGet - Internet Explorer based Downloader
StartEx - Portable Shortcut Link


Last edited by SKAN on April 12th, 2006, 9:13 am, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 12th, 2006, 6:30 am 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
1.03 : Cursor Navigation is disabled when the "Shift key" is held down

_________________
URLGet - Internet Explorer based Downloader
StartEx - Portable Shortcut Link


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 12th, 2006, 9:22 am 
Offline

Joined: March 30th, 2006, 5:28 pm
Posts: 15
Goyyah wrote:
Anonymous wrote:
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~


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 12th, 2006, 7:05 pm 
Offline

Joined: April 7th, 2006, 10:42 pm
Posts: 39
Location: Thailand
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 12th, 2006, 7:30 pm 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
Dear Rene, :)

You wrote:
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, :)

_________________
URLGet - Internet Explorer based Downloader
StartEx - Portable Shortcut Link


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 13th, 2006, 10:19 pm 
Offline

Joined: June 11th, 2005, 9:34 am
Posts: 264
Location: England ish
lols, funny litle script indeed.
just one thing, you didnt consider dual monitors,
but it was very easy to addapt, thanx.

_________________
::
I Have Spoken
::


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 37 posts ]  Go to page 1, 2, 3  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: AndyJenk, Aravind, hyper_, xXDarknessXx, Yahoo [Bot] and 12 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group