Joe Strazzere - All Things Quality

Visit my new blog at http://strazzere.blogspot.com/


December 1, 2005 - WinTask - LockScrollLock

Posted in WinTask

'
' LockScrollLock
'
' Force the ScrollLock Key to be locked, if it isn't already
'
' Author: Joe Strazzere
'

VK_SCROLL = 145
Key_Down = 0
Key_Up = 2

ret=External("user32","GetKeyState", VK_SCROLL)

if ret = 0 then
    External("user32.dll","keybd_event", VK_SCROLL, 0, Key_Down, 0) ' ScrollLock Key down
    External("user32.dll","keybd_event", VK_SCROLL, 0, Key_Up, 0) ' ScrollLock Key up
EndIf



Any comments on this article?
Email Me


<- Last Page :: Next Page ->

About Me

A gathering place for information and ideas about Quality Assurance, Testing, and other useful topics.

Problems cannot be solved by the same level of thinking that created them. - A. Einstein

Search This Site

Translate This Site

RSS Feed

Subscribe

Twitter

@jstrazzere

Categories

Life
QA
Sports
Tools
WinTask
Work in General

What I'm Reading Now