AutoHotkey Community

It is currently May 27th, 2012, 11:24 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: October 24th, 2009, 1:38 pm 
Hello,

I read many topics about this problem and I tried several solutions before I dedided to try to implement a little program for that.
Here it is: http://ddmm.sourceforge.net/

Hope this can help[/u]


Report this post
Top
  
Reply with quote  
PostPosted: December 8th, 2010, 5:09 pm 
snouffelaire wrote:
Hello,

I read many topics about this problem and I tried several solutions before I dedided to try to implement a little program for that.
Here it is: http://ddmm.sourceforge.net/

Hope this can help[/u]


Hi, Snouffelaire,
The software introduction flash is nice.
Unfortunately it does not work on my computer.
No matter I adjust any options, the mouse cross the border always.
It it the problem with Win 7?


Report this post
Top
  
Reply with quote  
PostPosted: December 8th, 2010, 5:44 pm 
I just use the aforementioned SKAN's code, and modified the clip region, works nice for me.

Code:
Confine := 1
ClipCursor( Confine, 0, 0, A_ScreenWidth, A_ScreenHeight )

^F2:: ; Hotkey will toggle status
Confine := !Confine
ClipCursor( Confine, 0, 0, A_ScreenWidth, A_ScreenHeight )
Return


ClipCursor( Confine=True, x1=0 , y1=0, x2=1, y2=1 ) {
 VarSetCapacity(R,16,0),  NumPut(x1,&R+0),NumPut(y1,&R+4),NumPut(x2,&R+8),NumPut(y2,&R+12)
Return Confine ? DllCall( "ClipCursor", UInt,&R ) : DllCall( "ClipCursor" )
}
[/code]


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google Feedfetcher, MSN [Bot], nomissenrojb, Rajat and 58 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