如何发送“”字符?

时间:2019-02-04 16:04:48

标签: windows autohotkey

我尝试了代码:

class Spam(object):

    def __init__(self, a, b):
        self.a = a
        self.b = b

    # using this to mark field "c" as deprecated. As per my understanding this gets called only for fields that do not exist.
    def __getattr__(self, c):
        print("Deprecated")

    # using this to manipulate the value before storing
    def __setattr__(self, name, value):
        self.__dict__[name] = value + 1

    # interceptor to allows me to define rules for whenever an attribute's value is accessed
    def __getattribute__(self, name):
        return self.__dict__[name] 

spam = Spam(10, 20)

print(spam.a)
print(spam.b)
print(spam.c)

我正在使用Windows 10 64位QWERTZ键盘

当我同时按下Shift键和“´”键时,它应该发送“´”

有什么想法吗?

1 个答案:

答案 0 :(得分:0)

没有您的专用键盘,我将无法测试,但是我认为这可以工作:

当按下 shift +´时,它将发送`:

+´:: Send ``

反引号是转义字符,因此第一个反引号强制第二个反引号被视为正常的击键