VanDyke Software Forums

VanDyke Software Forums (https://forums.vandyke.com/index.php)
-   Scripting (https://forums.vandyke.com/forumdisplay.php?f=14)
-   -   Import error (https://forums.vandyke.com/showthread.php?t=13636)

ashwa 07-23-2019 07:31 AM

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

bgagnon 07-23-2019 07:55 AM

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.


All times are GMT -6. The time now is 09:16 PM.