Jump to content

missing first letter


Recommended Posts

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
Link to comment
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.

Link to comment
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

Link to comment
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?

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...