Checking for Numlock status, fixing Numlock status
Office 2010 on Windows 7 Enterprise.
To monitor the call center status, I have a macro that keeps the screen from timing out by using Sendkeys to press the home key once every ten minutes. It seems to be the only way to do it on this computer and it works fine. I "break" the macro if I
plan on using another Excel spreadsheet there, but most of my active spreadsheet use is on another computer.
However, the Sendkeys macro often, but not always, also turns off the numlock, which is an inconvenience in my frequent use of another (non-Excel) program. Is there a way in the macro that I can either:
After the home execution, check the status of the numlock and if it's off, use Sendkeys to press the numlock key, or
Just turn the numlock on after every home execution?
Anwsers to the Problem Checking for Numlock status, fixing Numlock status
Sometimes it appears to works and sometimes not.
I pasted the code into its own module. In the "Keystroke" macro (in another module) I added "TurnNumLockOn" to the line after the Sendkeys statement >
For cnt = 1 To 10000
Application.Wait (Now + TimeValue("0:10:00"))
Whether or not the focus stays on the Keystroke macro spreadsheet, the computer screen does not time out, so that part is working. But I still have a problem with the numlock sometimes turning off and sometimes turning on. Turning on is good, but why the
Note that the Keystroke macro spreadsheet does not always have the focus, since I might be actively using other apps, or might just be monitoring them. Heck, I have even purposely turned off the numlock, then started the macro, and it has sometimes turned
it back on immediately and sometimes not.
Try changing this line of code....
SendKeys "home", True
That second optional argument will make the macro wait until the SendKeys operation has completed.
I believe the "sometimes it appears to works and sometimes not" is probably due to a timing issue....
if I am right, then making the macro wait until SendKeys
is done should fix the intermittent problem you are seeing.
- Click the Start button.
- In the Search box, type "regedit" (without quotes) and press Enter.
- Look for the following registry key: "HKEY_LOCAL_MACHINE\SOFTWARE\ Microsoft\ SQMClient\Windows\DisabledSessions".
- On the right window pane, delete the subkey: "Machine Throttling".
- Restart your system.
Another Safe way to Fix the Problem: Checking for Numlock status, fixing Numlock status:
How to Fix Checking for Numlock status, fixing Numlock status with SmartPCFixer?
1. Download SmartPCFixer . Install it on your computer. Click Scan, and it will perform a scan for your computer. The junk files will be shown in the list.
2. After the scan is done, you can see the errors and problems need to be fixed. Click Fix All.
3. The Fixing part is done, the speed of your computer will be much higher than before and the errors have been fixed.
Related: How Can You Update & Download Toshiba Satellite 5105-S501 Intel PRO 10/100 Driver v.18.104.22.168,How to Update & Download Toshiba Satellite C655D-S5139 BookPlace v.2.2.7530 driver,Method to Update & Download Toshiba Satellite L655-S5073 Realtek Wireless LAN Driver v.2.00.0011,Method to Update & Download Toshiba Satellite L840-ST2N01 Sleep Utility v.1.4.0022.000104 driver,Best Way to Update & Download Toshiba Satellite Pro S300-EZ2502 Extended Tiles for Windows Mobility Center v.1.01 driver,Best Way to Download NVidia GeForce 6100 VGA Driver v.304.51 Certified,How Can You Update & Download NVidia GeForce 9300/nForce 730i VGA Driver v.310.19 Certified,Method to Download NVidia GeForce GT 330M Driver v.340.65,How Can I Update & Download NVidia GeForce GTX 590 Driver v.280.26 WHQL,Method to Download NVidia Tesla C2050 Driver v.319.17,Way to Download RealTek RTL8100C(L) Driver v.5.01,Way to Download RealTek RTL8100E Drivers v.694,Way to Update & Download RealTek RTL8101L Auto Installation Program v.6.110 driver,Method to Update & Download RealTek RTL8111G PXE and RPL ROM code v.2.58 driver,How to Update & Download RealTek RTL8411B(N) Driver v.10.003,Best Way to Update & Download ASUS A53SV nVidia Graphics Driver v.22.214.171.12486,Method to Herunterladen ASUS K75VJ Intel Rapid Storage Technology Treiber v.126.96.36.1990,How Can You Update & Download ASUS CG8580 Intel Chipset Driver v.188.8.131.529,Method to Update & Download ASUS K41VD Intel INF Update Driver v.184.108.40.2065,Way to Update & Download ASUS Pro70T NB Probe v.3.0.0026 driver,Can't Download PP Templates Automatically To Windows 7 W/IE 8,Can't Change Drive Letter - Vista,Can't Change Homegroup Sharing Permission,Can't Connect XP Shared Printer To Win7 Except As A Local Printer.__,Can You Connect The LAN Adapter For Wii On Your Windows 7 Laptop?
Read More: Fast Solution to Error: Cell formula doesn't copy across process boundary.,Troubleshoot:Certificates expired or not,How to Fix Problem - cant find internet conection - I have a full signal but my computer cannot find the Internet?,Fast Solution to Error: Cell formatting - Times are showing up as dates,Fast Solution to Problem: Change name from: last name, first name middle initial to first name last name,Can't access c drive to open programs.,Can you use just one hard drive to store a backup disk image and restore for multiple computers?,can not install Mcafee due to Java script error,,Can Word's track changes comments print in the outside border?,cannot install old software program because computer missing indeo codec driver