Onoitsu2 Posted April 15, 2006 Posted April 15, 2006 Does anyone know a method that I can retrieve the state of the CAPS LOCK, NUM LOCK, and SCROLL LOCK options ? I am attempting to make a hotkey only work if the numlock is off so that you can still use the number pad to type numbers, and then use it to switch tabs in a game called RuneScape, I have the tab changing working, but have no clue how to do the check for numlock being on or off ... and yes I know all about how hotkeys work I have a plan already in affect for something similar in nature, so if the window is active the hotkeys are too, or else when polled inside my while 1 wend loop (the "MAIN FUNCTION" TO ALL YOU C/C++ JUNKIES ) the window is not active then it unbinds the hotkeys, and then again polls for when it becomes active again to yet again rebind the hotkeys... Thanks in advance, Onoitsu2 Things I have made:[font="Trebuchet Ms"]_CheckTimeBlock UDF(LT)MOH Call Ignore List (MOH = Modem On Hold)[/font]
RazerM Posted April 15, 2006 Posted April 15, 2006 (edited) edit: Nevermind - you found answer in other post Edited April 15, 2006 by RazerM My Programs:AInstall - Create a standalone installer for your programUnit Converter - Converts Length, Area, Volume, Weight, Temperature and Pressure to different unitsBinary Clock - Hours, minutes and seconds have 10 columns each to display timeAutoIt Editor - Code Editor with Syntax Highlighting.Laserix Editor & Player - Create, Edit and Play Laserix LevelsLyric Syncer - Create and use Synchronised Lyrics.Connect 4 - 2 Player Connect 4 Game (Local or Online!, Formatted Chat!!)MD5, SHA-1, SHA-256, Tiger and Whirlpool Hash Finder - Dictionary and Brute Force FindCool Text Client - Create Rendered ImageMy UDF's:GUI Enhance - Enhance your GUIs visually.IDEA File Encryption - Encrypt and decrypt files easily! File Rename - Rename files easilyRC4 Text Encryption - Encrypt text using the RC4 AlgorithmPrime Number - Check if a number is primeString Remove - remove lots of strings at onceProgress Bar - made easySound UDF - Play, Pause, Resume, Seek and Stop.
Moderators SmOke_N Posted April 15, 2006 Moderators Posted April 15, 2006 check _IsPressed in the Help file (beta required) when Num Lock is off the numbers function as arrow keys. I don't know how to determine the num lock state.He didn't mean to do so... but he doubled posted... Neat thing is he found his own answer: http://www.autoitscript.com/forum/index.ph...ndpost&p=173380 Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now