×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Keyboard shortcuts in Journal files

Keyboard shortcuts in Journal files

Keyboard shortcuts in Journal files

(OP)
Does anyone know if it is possible to execute keyboard strokes in a journal file?

This may seem pointless, but I am trying to solve the never ending problem of switching from Drafting to Modeling using a journal file (at least I have not yet found a way, even though I have found that it is possible to switch from Modeling to Drafting through a journal file). Right now, I have the letter 'm' on the keyboard set up to switch to modeling, and I would like to have a journal file that can execute the 'm' keystroke. I am using NX6.

Any thoughts are welcome, I always start a thread with a specific goal, but after picking people's brains on this forum, I usually end up with an altered path that I would have never thought of on my own..

Thanks for the help!

Eric Roe
Electro-Mechanical Engineer
Airfloat LLC

RE: Keyboard shortcuts in Journal files

What version of NX are you running?
I ask because in NX 8 they added an option to switch between modeling and drafting in a journal. However, in most cases it isn't necessary, unless the point of your journal is to change applications for the user.

If you are running 7.5 or lower, you might try the sendkeys command. I'm not sure if that would work, but it is worth a try.

www.nxjournaling.com

RE: Keyboard shortcuts in Journal files

(OP)
Hey couski,

I am running NX6..

I will give the sendkeys command a try tomorrow, thanks for the input!

Eric Roe
Electro-Mechanical Engineer
Airfloat LLC

RE: Keyboard shortcuts in Journal files

(OP)
Couski,

How do I set the Sendkeys command up to work in NX? I guess my question is how do I declare it? Sorry I am still a little new to VB..

Thanks again,
Eric

Eric Roe
Electro-Mechanical Engineer
Airfloat LLC

RE: Keyboard shortcuts in Journal files

In the "imports" section of your journal (at the top) add the line:
Imports System.Windows.Forms

Then in your code you can simply use:

CODE

Sendkeys.Send("keystrokes") 

for special keystrokes, refer to the previous link.

www.nxjournaling.com

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources