Sign in to follow this  
Followers 0
orlanth

Alt, Crtl or Shift problem

6 posts in this topic

Hi everybody,

i have this problem since one year and i searched on several forum and no answers.

i use an autoit script with many shortkey like if i push f5 i launch the shortkey alt and b. and i have shortkey with ctrl or shift too.

and after several minutes i see crtl or alt or shift like push down (i see that on visual keyboard) and if it is a alt problem i must push alt to resolve.

to make a shortkey i use hotsetkey and send("!{b}")

my os is window seven

Share this post


Link to post
Share on other sites



I got same problem since long time ago, solution is to use _IsPressed() UDF if there is a need to mix alt, ctrl, or shift keys.

If  (_IsPressed("01") And _IsPressed("02")) Then ...

Share this post


Link to post
Share on other sites

ok thx i will convert my script

change all send() with a alt, shift or crtl by _Ispressed therefore?

Share this post


Link to post
Share on other sites

; use this form like you see below instead of Send("!{b}")
Send("{ALT DOWN}b{ALT UP}")


Share this post


Link to post
Share on other sites

ah i will try that this evening and give my feed back

Share this post


Link to post
Share on other sites

Hi and Welcome to the forum!

I believe you have the problem describe in the FAQ under Why does the Ctrl key get stuck down after I run my script?, you should look at that.

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  
Followers 0