Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vba-solidedge

Status
Not open for further replies.

666vito

Industrial
Jul 23, 2007
21
0
0
IT
hi
I make a little program using vba6 and solid-edge14..
Now I'd like to give from my program (with a pres button) a keyboard imput (ALT + U). I try using keybd_event Lib "user32" but don't work. May be I Can't press alt...
or there is a problem with keybd_event and solid-edge..
Can you help me? Thanks
 
Replies continue below

Recommended for you

Hi,

not quite clear what you would like to do:
- catch a keyboard interrupt?
- send some keyboard strokes (Alt+U) to SE?

Alt+U will be caught by SE itself. To simulate that you can
use this:

objSeApp.StartCommand(40236) ' similar to ALt+U for active .par/.psm/.pwd
objSeApp.StartCommand(33068) ' similar to ALt+U for active assembly

dy
 
Thank's donyoung the second is the code that I need.
You use objSeApp.StartCommand(33068) and use 2 numbers 33068 40236 to active the command because we are in par or assemby where I can found the list of code to run startcommand.Thank's .
 
Status
Not open for further replies.
Back
Top