Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-23-2019, 07:31 AM
ashwa ashwa is offline
Registered User
 
Join Date: Jul 2019
Posts: 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
Reply With Quote
  #2  
Old 07-23-2019, 07:55 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 3,938
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
Reply With Quote
Reply

Tags
ctypes , import error , python import , python key press


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 03:14 AM.