AutoHotkey Community

It is currently May 25th, 2012, 6:12 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: August 29th, 2007, 12:44 am 
Offline

Joined: August 28th, 2007, 1:04 am
Posts: 15
I need a simple way to freeze and un-freeze the mouse cursor (not hidden) for an application --- can someone please show me how this can be done?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 29th, 2007, 12:47 am 
Offline

Joined: July 21st, 2006, 6:13 am
Posts: 558
Is this the command your looking for - BlockInput

_________________

HTH...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 29th, 2007, 12:48 am 
check out: BlockInput


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 29th, 2007, 12:48 am 
Offline

Joined: July 15th, 2007, 1:43 am
Posts: 1320
Code:
MouseGetPos, X, Y
Loop
{
MouseMove, %X, %Y%
}


Hope this works.

_________________
Religion is false. >_>


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 29th, 2007, 2:44 am 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8660
Location: Salem, MA
three answers in 4 minutes, and none from me. the forum is hopping today

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 4th, 2009, 11:05 am 
Hi!

I am new to AutoHotkey and I tried the code from Trikster, but unfortunately it doesn't work. That's the error:
-----
Error at line4.

Line text: %X
Error: This parameter contains a variable name missing its ending percent sign.
The program will exit.
----------

This is how I tried it:
1. Copy/Paste the code from Trikster into a notepad
2. Save the notepad-file as "mousefreeze.ahk"
3. Executed the file.

Was that correct?
Could you please help me with script getting it working, that would be great!
By the way, how can i unfreeze the mouse again? It would be good to have an extra script for that.

Thanks for your help! :)

Best regards,
Tom


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 4th, 2009, 11:32 am 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8660
Location: Salem, MA
that's because the parameter contains a variable name missing its ending percent sign.

Change %X to %X% to restore it's missing percent sign.

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 4th, 2009, 11:42 am 
Thank you for your quick reply:)

And how can I unfreeze the mouse again?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 4th, 2009, 11:48 am 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8660
Location: Salem, MA
Esc::Exitapp

Please also dig around on the forums there are quite a few interesting scripts that are related.

Alternate plan:
read the link in my sig (Loops) but instead of looping a keypress, you are looping a mousemove.

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, dra, Exabot [Bot], krthornton, Ohnitiel, Pulover, rbrtryn, sarevok9 and 66 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