AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ScreenMagnifier
Goto page Previous  1, 2, 3, 4, 5, 6
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Jamn
Guest





PostPosted: Mon Mar 10, 2008 11:03 pm    Post subject: Reply with quote

I've the second script in holominds first post in this thread to work. It is wonderful! But that script has no pointer or cross or anything that shows the mouse position. I tried to import those parts from some of the scripts later in the thread but then I failed.

Can someone help me out here? What is the simplest way to "add on" some small mouse position helper to that first script?

Most of all I'd like to have only a small but noticeable black dot that moves in sync with the mouse position.

(I plan to use the script on one monitor to navigate on an second monitor that is in another room, that's why I need more detailed mouse position information)
Back to top
jamn
Guest





PostPosted: Fri Mar 14, 2008 1:23 am    Post subject: Reply with quote

Ok, I've gotten the hang of how to draw the cross the way I want it now. To do that I had to disable the part in holomind's script that makes sure nothing outside of the display gets painted. This change results in a type of "ghosting" in those outside areas, when moving the mouse to the edge of a screen.

Can I avoid that ghosting by making the script repaint all outside areas with black?
Back to top
jamn
Guest





PostPosted: Sun Mar 16, 2008 3:31 pm    Post subject: Reply with quote

I have an idea: could the script at each repaint first fill the whole area with black pixels and then immediately repaint it again according to the pointer position? That could remove ghosting. But maybe it would slow things down or create som black flickering. Can anyone help me test that? I suspect I should use some other bitmap function for that, but I can't get the hang of it. http://msdn2.microsoft.com/en-us/library/ms532355(VS.85).aspx
Back to top
foaly
Guest





PostPosted: Wed Apr 09, 2008 6:03 pm    Post subject: Reply with quote

I'm searching for a full size screen magnifier (magnify the entire screen.)
Somehow the screen magnifiers I found on this forum don't work when your mouse is in the magnifying area, unless you open a menu (for instance right click.) I'm using windows vista.
Anyone has a solution to that?
Back to top
infogulch



Joined: 27 Mar 2008
Posts: 378

PostPosted: Fri May 30, 2008 11:54 pm    Post subject: Reply with quote

I've been using "SetWinDelay, -1" for many of these and it makes all the windows move smoother. "SetBatchLines, -1" and "Process, Priority,, High" along with a repaint timer around 5ms makes that part somewhat smoother for me.
_________________

Scripts
- License
Back to top
View user's profile Send private message
unregistered
Guest





PostPosted: Wed Jun 18, 2008 7:43 pm    Post subject: Reply with quote

i keep getting this error:

Back to top
BoBo²
Guest





PostPosted: Sat Jul 26, 2008 1:30 pm    Post subject: Reply with quote

holomind wrote:
Quote:
... often its difficult to work with video as it gets blacked out.
No idea if someone pointed out already to check the the system for its 'overlay'-setting. Often its said that you'll have that problem if you wanna do a screenshot from a running video ...
Back to top
netboom



Joined: 06 Jul 2008
Posts: 14

PostPosted: Sun Aug 03, 2008 2:58 pm    Post subject: Reply with quote

If I wanted to fix the magnify window and not have it follow the mouse and only magnify whats under the window how would i go about this? can I modify this script to do this? I'm new to ahk so any help would be great.

Thanks,

Net.
Back to top
View user's profile Send private message
jdpmd
Guest





PostPosted: Mon Jan 12, 2009 2:14 am    Post subject: glitch Reply with quote

If I add magnifier radiobuttons to the Magnifier window, it works initially, but then a click on a radiobutton and it no longer magnifies.
It seems like click on radiobutton activates a repaint routine that blocks or over-rides the MagRepaint. How can I turn that off so Magnify resumes?
Code:

Gui 2:+AlwaysOnTop +Resize +ToolWindow
Gui 2:Add, GroupBox, vMagBox w600 h100 xm ym
Gui 2:Add,Radio, gSetMag xm+10   ym+5 vMagRad checked, 2x
Gui 2:Add,Radio, gSetMag xm+50   ym+5, 3x
Gui 2:Add,Radio, gSetMag xm+90   ym+5, 4x
Gui 2:Add,Radio, gSetMag xm+140  ym+5, 5x
Gui 2:Add,Radio, gSetMag xm+170  ym+5, 6x
Gui 2:Add,Text, xm+10 ym+55, Click on magnification factor
Gui 2:Show, % "w" 2*Rx " h" 2*Ry " x0 y0", Magnifier
SetTimer MagRepaint, 50    ; flow through

Code:

setMag:
   zoom:=MagRad+1
   Zx := Rx/zoom
   Zy := Ry/zoom
   TrayTip,,% "Frame  =  " Round(2*Zx) " × " Round(2*Zy) "`nMagnified to = " A_GuiWidth "×" A_GuiHeight
   Gui,2:hide
   Gui,2:show
return

Code:

MagRepaint:
   MouseGetPos x, y, WinUnderID
   if (WinUnderID = MagnifierID)
   { ; then just show the mag radio buttons
    GuiControl, 2:MoveDraw, MagBox, xm ym
    return
   }
   xz := In(x-Zx-6,0,A_ScreenWidth-2*Zx) ; keep the frame on screen
   yz := In(y-Zy-6,0,A_ScreenHeight-2*Zy)
  ; WinMove Frame,,%xz%, %yz%, % 2*Zx, % 2*Zy
   DllCall("gdi32.dll\StretchBlt", UInt,hdc_frame, Int,0, Int,0, Int,2*Rx, Int,2*Ry
   , UInt,hdd_frame, UInt,xz, UInt,yz, Int,2*Zx, Int,2*Zy, UInt,0xCC0020) ; SRCCOPY
Return
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6
Page 6 of 6

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group