Jump to content
Sign in to follow this  
keashdoc

CTRL B not working in Autoit Script

Recommended Posts

keashdoc

Hi,

I am trying to send a CTRL B command to enable bold typing to an electronic medical record program.  When I type something in the EMR and click the left CTRL button and B simultaneously, the subsequent test is bold which is what I want.  However, when I use an Autoit Script that does not happen.  I have tried   Send ("^B") and also Send ('{CTRLDOWN}B{CTRLUP}') and neither of them produce the desired result.   I was wondering if anyone had any other suggestions.  Why would the CTRL B command work when I type manually but not work with Autoit which I understand is simulating the keystrokes similar to typing? 

 

Thanks

 

 

Share this post


Link to post
Share on other sites
ajag

From autoit help:

"N.B. Some programs are very choosy about capital letters and CTRL keys, i.e., "^A" is different from "^a". The first says CTRL+SHIFT+A, the second is CTRL+a. If in doubt, use lowercase!"

So maybe  Send ("^b")   will work?

A-Jay


Rule #1: Always do a backup         Rule #2: Always do a backup (backup of rule #1)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×