Sign in to follow this  
Followers 0
p3kautoit

missing first letter

10 posts in this topic

#1 ·  Posted (edited)

Hi,

I made a small script, but when I tried it, the first letter was sometimes missing.

Can somebody help, where is the problem. I have read that in older version was same problem.

Here is the script:

While 1

HotKeySet("!a", "admin")

WEnd

Func admin()

Sleep(500)

Send("admin")

EndFunc

Thank for your help.

Peter

Edited by p3kautoit

Share this post


Link to post
Share on other sites



first letter of what? Any way it works perfectly fine for me.

Share this post


Link to post
Share on other sites

The only problem I see is HotKeySet should not be in the while loop:

HotKeySet("!a", "admin")

While 1
    Sleep(50)
WEnd

Func admin()
Sleep(500)
Send("admin")
EndFunc

What are we going to do tonight Brain?Same thing we do every night Pinky try to automate the world.

Share this post


Link to post
Share on other sites

I have corrected the script but still same problem.

The "a" letter is sometimes missing, when I try this shortcat in Notepad

HotKeySet("!a", "admin")

While 1

Sleep(50)

WEnd

Func admin()

Sleep(250)

Send("admin")

Sleep(250)

EndFunc

Share this post


Link to post
Share on other sites

beside of using Send, you could try use ClipPut and and ClipGet.

Share this post


Link to post
Share on other sites

I think it's because the hotkey you set is 'a' and one of the characters you are sending is also 'a'.

Try setting to a different hotkey key.

Share this post


Link to post
Share on other sites

The problem is with different letter too.

I thing I have found the problem, but I don't know the solution.

The problem is because in the HotKeySet is ALT+a , and after pressing ALT+a and leave it, the ALT is rememberd for AutoIt as activ, and therfore don't write first letter.

It is sensitive how you press ALT+a (quickly, longer ...)

I have tried put Send("{ALTUP}") but it doesn't helped.

Have anybody any suggestion?

Share this post


Link to post
Share on other sites

The problem doesn't solved.

I will change the ALT to CTRL.

I've used before AHK (AutoHotKey) software, and there is working fine.

I think that it's problem AutoIt with "ALT"

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