Recent Changes - Search:

APCU Wiki Home

Meeting Notes Meeting Notes Feed

Favorite links

What's New

New Battery Discussion

Historical notes and links

Creating New Topics

Ward's AutoIT scripts

That graphical outliner Ward uses: APCU.Freemind

APCU's web Home - Leave this wiki

APCU.WardsBlog

Basic Editing
MarkupMasterIndex
SandBox (Try things)

edit SideBar

Magnifier

This little autoit3 program will bring up the magnifier by moving the cursor to any corner of the screen

#include <GuiConstants.au3>
; AUTOIT script to bring up magnifier if mouse held in any corner of the screen
; 02/27/10 Ward Christensen
$xposition      = 0
$yposition      = 1
$SleepTime      = 3000                       ; Sleep time in milliseconds
;
; NOTE the magnifier program WINDOW will stay up, you MUST NOT CLOSE it
;       as it stops the PROGRAM when the window is closed
;       Instead just minimize it.
; I thought of detecting the "Magnifier Settings" window and auto-minimizing,
;       but then you can't change the settings (e.g. magnification power)
;       as it would minimize it over and over
;
Do
    sleep($SleepTime)
    if MouseGetPos($xposition) = 0 OR  MouseGetPos($xposition) = @desktopwidth-1 then
        if MouseGetPos($yposition) = 0 OR  MouseGetPos($yposition) = @desktopheight - 1 then
            if winexists("Magnifier") then
                winclose("Magnifier")
            else
                run("c:\windows\system32\magnify.exe")
            endif

        endif
    endif
    $msg = GUIGetMsg()
Until $msg = $GUI_EVENT_CLOSE

Edit - History - Print - Recent Changes - Search
Page last modified on October 25, 2010, at 01:04 AM