适用于64位的Numlock代码 [英] Code for Numlock for 64bit

查看:128
本文介绍了适用于64位的Numlock代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有VBA代码以确保numlock已打开,但我们尝试编译它告诉我它需要在64位。

展开 | 选择 | Wrap | 行号

解决方案

DJ,


实际上,你真正想做的是更改系统设置中的num lock 。这不是Win 10的事情,它是网络系统管理员的事情,其中​​,由于一些绝对未知的原因,他们正在更改系统注册表以默认系统为Num Lock Off。
  • 按Win + R并键入Regedit
  • 导航到注册表项HKEY_USERS \ .Default\Control Panel \Keyboard
  • 右键单击?InitialKeyboardIndicators ?,选择Modify and将值数据更改为2.
  • 退出并保存注册表。


这可能(可能)需要由管理员完成。 />

有办法欺骗 Num Lock可以切换,但我对它的体验已经过去了。但是,我承认我没有尝试使用Win 10,因此可能更稳定 - 但同样,上述内容并未回答您的 具体 关于该值的64位密钥的问题。


关于将其转换为64位,初始猜测会为您的值增加两个前导零?但这纯属猜测。


我们的系统被我们的公司IT锁定。如果我通过VBA执行此操作,它将为使用我的某个数据库的每个人修复它。我的公司只有用户权限(不幸的是),因此在出现问题时很难解决问题....


但感谢您的回复。我甚至研究了你所放的东西,我猜你提出的解决方案对于Win10来说不是100%修复。


什么时候微软会把事情搞定?

那么,当你编译你的数据库时,它挂在上面的第6行?


我们也有64位工作,而且我编译时没有任何问题 - 我使用相同的功能处理其他一些事情。我在切换Num Lock方面没有任何问题。


I have VBA code to make sure the numlocks are on, but we I try to compile it it tells me it needs to be in 64bit.

Expand|Select|Wrap|Line Numbers

解决方案

DJ,

Actually, what you really want to do is change the num lock in the system settings. This is not a Win 10 thing, it is a Network System Administrator thing, in which, for some absolutely unknown reason, they are changing the system registry to default the system to Num Lock Off.
  • Press Win + R and type in Regedit
  • Navigate to registry key HKEY_USERS\.Default\Control Panel\Keyboard
  • Right-click on the ?InitialKeyboardIndicators?, select Modify and change Value data to 2.
  • Exit and Save the Registry.

This may (probably) need to be done by an administrator.

There are ways to "trick" the Num Lock to switch, but my experiences with it have have been and miss. But, I admit I haven''t tried it with Win 10, so that may be more stable--but again, the above does not answer your specific question about a 64-bit key for that value.

Concerning converting it to 64-bit, an initial guess would be add two leading zeroes to your value? But that is purely speculation.


Our system is locked out by our company IT. If I do it through VBA, it will fix it for everyone that uses one of my Databases. I only have user rights in my company(unfortunately), so makes it very difficult do fix issues when they arise....

But thanks for your reply. I even did research on what you put and I guess the solution you put forth isn''t a 100% fix for Win10.

When will microsoft get things right???


So, when you compile your DB, it hangs on Line 6 above?

We''ve got 64-bit at work, too, and I''ve had no issues with compiling--and I use your same function for some other things I do. I am having no issues with toggling the Num Lock.


这篇关于适用于64位的Numlock代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆