Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

您好,請問如何讓python使用IbAhkSend.dll? #13

Open
pigking0126 opened this issue May 13, 2023 · 0 comments
Open

您好,請問如何讓python使用IbAhkSend.dll? #13

pigking0126 opened this issue May 13, 2023 · 0 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@pigking0126
Copy link

如題,以下是萌新小弟我的代碼:

import ctypes
import os
import time

root = os.path.abspath(os.path.dirname(file))
driver = ctypes.CDLL(f'{root}/IbAhkSend.dll')
driver.IbSendInit("Logitech")

for i in range(5):

driver.IbSendKeybdDown('n')
driver.IbSendKeybdDownUp('n')  

print('press n')
time.sleep(1)

報錯:
OSError: exception: access violation reading 0x0000000000000000

雖然可能是個白癡問題,但還是請大佬指教一下~~

@Chaoses-Ib Chaoses-Ib added the documentation Improvements or additions to documentation label May 13, 2023
@Chaoses-Ib Chaoses-Ib added the enhancement New feature or request label Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants