|
#1
|
|||
|
|||
Import error
import ctypes
from ctypes import wintypes import time user32 = ctypes.WinDLL('user32', use_last_error=True) INPUT_MOUSE = 0 INPUT_KEYBOARD = 1 INPUT_HARDWARE = 2 KEYEVENTF_EXTENDEDKEY = 0x0001 KEYEVENTF_KEYUP = 0x0002 KEYEVENTF_UNICODE = 0x0004 KEYEVENTF_SCANCODE = 0x0008 MAPVK_VK_TO_VSC = 0 VK_TAB = 0x09 VK_MENU = 0x12 wintypes.ULONG_PTR = wintypes.WPARAM GETTING IMOPRT CTYPES ERROR NO SUCH MODULE SecureCRT --------------------------- ImportError Error: No module named _ctypes Line: 16 import ctypes |
#2
|
|||
|
|||
Hi ashwa,
Correct, ctypes is not supported at this time. I have added this thread to a feature request in our product enhancement database to include ctypes in Python for Windows version of SecureCRT. Should a future release of SecureCRT include this feature, notification will be posted here. If you prefer direct email notification, send an email to support@vandyke.com and include Feature Request - Forum Thread #13636 in the subject line or use this form from the support page of our website.
__________________
Thanks, --Brenda VanDyke Software Technical Support support@vandyke.com (505) 332-5730 |
#3
|
|||
|
|||
Hi ashwa,
I wanted to let you know the ctypes module should work with SecureCRT v9.0, currently in beta 1 release: Changes in SecureCRT 9.0 (Beta 1) -- September 24, 2020 ------------------------------------------------------- New Features:
Note that this is Windows only support at this time. In fact, we released beta 1 installers *only* for Windows. We hope to include all platforms in later releases.
__________________
Thanks, --Brenda VanDyke Software Technical Support support@vandyke.com (505) 332-5730 |
![]() |
Tags |
ctypes , import error , python import , python key press |
Thread Tools | |
Display Modes | Rate This Thread |
|
|