Bookmark and Share

Author Topic: Mini Monitor interferes with ClipCursor  (Read 657 times)

0 Members and 1 Guest are viewing this topic.

Offline Sentenza

  • PcWinTech Member
  • *
  • Join Date: Sep 2011
  • Posts: 5
  • Karma: +0/-0
Mini Monitor interferes with ClipCursor
« on: September 04, 2011, 10:15:01 AM »
A quick search didn't yield any results, so I'm posting this here.

CleanMem Mini Monitor Free v2.1.1 (and v2.2.0) interfere with ClipCursor...

more info about ClipCursor:
http://msdn.microsoft.com/en-us/library/aa931941.aspx

More specifically, that small graphical display, in any form or configuration (as far as I can tell).

To get you started more quickly, here are the steps to make your own ClipCursor-utility:

1) Download Autoit: http://www.autoitscript.com/site/autoit/downloads/ or direct link
2) Install
3) Make sure you exit the Mini Monitor, should you have it open.
4) Create a file in your favourite editor, and make it contain:
Code: [Select]
#include <misc.au3>
_MouseTrap(0,0,100,100)
save it as anything.au3, and run it.

What will happen is your mouse cursor will jump to the top left of your main monitor, and it will remain there, no matter how much or fast you move your mouse.

If you however alt-tab, (or click on a different window from where you launched that script) the lock will end.

Now repeat, with the Mini Monitor open, and it should pop up into the same area, but not be locked.

I hope all of that made sense, and that you can find a solution to my problem :)

Kind regards,
Sentenza

Offline Shane

  • Top Geek, err uh Dog.
  • PcWinTech Administrator
  • PcWinTech Guru
  • *******
  • Join Date: Jul 2008
  • Posts: 9,779
  • Location: USA
  • Karma: +327/-0
  • "Knowledge should be shared not hidden."
Re: Mini Monitor interferes with ClipCursor
« Reply #1 on: September 16, 2011, 09:12:14 AM »
Sorry I didn't see this post! I am suppose to be emailed when I get new posts and for some reason I didn't on this one.

The mini monitor window is just a border less window, nothing special about it.

_MouseTrap(0,0,100,100) and the 0,0,100,100 is the rectangle coordinates. the 100 is rather small. Is it in twips or pixels?

Shane
(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 4 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com


Offline Sentenza

  • PcWinTech Member
  • *
  • Join Date: Sep 2011
  • Posts: 5
  • Karma: +0/-0
Re: Mini Monitor interferes with ClipCursor
« Reply #2 on: September 18, 2011, 04:12:59 PM »
Pixels, but the size of the rectangle doesn't matter.

Did you follow my steps and get the same result? (It might only be me, even though I did test it on 4 machines)

And clipcursor is interrupted by switching the active window, this can be done by either clicking on another window (if the rectangle allows if of course), or by alt+tabbing, or by a window that has focus closing, so I assume that somehow mini monitor grabs focus? Or well, I don't see it do that, so I actually don't have a clue as to why this happens :)

Oh, and no apologies necessary, thanks for your time at any rate.

Offline Shane

  • Top Geek, err uh Dog.
  • PcWinTech Administrator
  • PcWinTech Guru
  • *******
  • Join Date: Jul 2008
  • Posts: 9,779
  • Location: USA
  • Karma: +327/-0
  • "Knowledge should be shared not hidden."
Re: Mini Monitor interferes with ClipCursor
« Reply #3 on: September 18, 2011, 04:33:59 PM »
I tried it and it gets stuck in the upper left (with mini monitor both closed and open), I changed the script to my screen size
#include <misc.au3>
_MouseTrap(0,0,1920,1080)

And it doesn't get stuck any more. Am I doing it the way you want me to?

Shane
(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 4 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

Offline Sentenza

  • PcWinTech Member
  • *
  • Join Date: Sep 2011
  • Posts: 5
  • Karma: +0/-0
Re: Mini Monitor interferes with ClipCursor
« Reply #4 on: September 19, 2011, 05:30:53 PM »
I'm afraid so.

The purpose of Clipcursor is to limit the mouse to an area on your screen, I personally use it to keep the cursor on my main monitor in fullscreen games which do not do that by themselves (so that you don't go into the second screen with the mouse, and minimize the game upon clicking out of the game window).

I've noticed that with the Mini monitor open it immediately unlocks (like as if I had activated it and then alt-tabbed).

Which means that if you lock your mouse successfully with the mini monitor open... I'm stumped.

Thanks for your very swift reply and time at any rate!

Edit: to clarify, for me, if the rectangle size is less than my desktop size (so my mouse is actually prevented from going somewhere), with mini monitor open, it is not prevented from going there, and with it closed it works.

That said, if it works for you, I'm not sure what to assume, but I guess it's only me, so nevermind :)
« Last Edit: September 19, 2011, 05:33:01 PM by Sentenza »

Offline Shane

  • Top Geek, err uh Dog.
  • PcWinTech Administrator
  • PcWinTech Guru
  • *******
  • Join Date: Jul 2008
  • Posts: 9,779
  • Location: USA
  • Karma: +327/-0
  • "Knowledge should be shared not hidden."
Re: Mini Monitor interferes with ClipCursor
« Reply #5 on: September 19, 2011, 05:59:48 PM »
The mini monitor does call some API's on its window postion and such. I wonder if that might be the conflict.

Not sure how I could really make a fix for you though.

Have you tried hiding the monitor? On the monitor settings tab you can take the check off of "Show Monitor"

Shane
(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 4 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

Offline Sentenza

  • PcWinTech Member
  • *
  • Join Date: Sep 2011
  • Posts: 5
  • Karma: +0/-0
Re: Mini Monitor interferes with ClipCursor
« Reply #6 on: September 20, 2011, 03:09:55 PM »
I've got a question for you, when you run that _MouseTrap with a size smaller than your monitor, and your mouse is restrained, does alt-tabbing release your mouse aswell?

And, no, as long as Mini_Monitor.exe is running it will not lock permanently, disabling the mini monitor via unchecking show monitor doesn't help.

So yes, even exiting it via right-click isn't enough.

Oh, and don't fret it, really.

I've added a ProcessClose to my script that closes it so it can lock properly, and that works, I had only hoped you might have an idea, since I liked that little display a lot :)

Thanks for your time, and your work!

Kind regards,
Sentenza

Offline Shane

  • Top Geek, err uh Dog.
  • PcWinTech Administrator
  • PcWinTech Guru
  • *******
  • Join Date: Jul 2008
  • Posts: 9,779
  • Location: USA
  • Karma: +327/-0
  • "Knowledge should be shared not hidden."
Re: Mini Monitor interferes with ClipCursor
« Reply #7 on: September 20, 2011, 03:57:44 PM »
Yeah it locked in position. It did it with the mini monitor running ot, BUT the mini monitor was set on my 2nd monitor :wink:

Shane
(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 4 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

Offline Sentenza

  • PcWinTech Member
  • *
  • Join Date: Sep 2011
  • Posts: 5
  • Karma: +0/-0
Re: Mini Monitor interferes with ClipCursor
« Reply #8 on: September 20, 2011, 04:04:49 PM »
Sorry, I meant once your mouse is locked, how do you get it unlocked, does alt-tab suffice?

I ask because perhaps there's something wrong on my end with the clipcursor itself, that it unlocks when it shouldn't...

Offline Shane

  • Top Geek, err uh Dog.
  • PcWinTech Administrator
  • PcWinTech Guru
  • *******
  • Join Date: Jul 2008
  • Posts: 9,779
  • Location: USA
  • Karma: +327/-0
  • "Knowledge should be shared not hidden."
Re: Mini Monitor interferes with ClipCursor
« Reply #9 on: September 20, 2011, 04:17:24 PM »
Yeah alt tab unlocked it for me :-)

Shane
(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 4 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com


 

Related Topics

  Subject / Started by Replies Last post
14 Replies
3306 Views
Last post May 04, 2010, 09:08:28 AM
by Shane
5 Replies
1714 Views
Last post December 13, 2010, 03:46:57 PM
by Shane
10 Replies
2546 Views
Last post December 26, 2010, 04:55:41 PM
by Shane
23 Replies
2307 Views
Last post April 08, 2011, 05:40:21 PM
by Shane
1 Replies
797 Views
Last post October 15, 2011, 10:26:06 AM
by Shane