Jump to content

Recommended Posts

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
Posted

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.

Posted

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

Posted

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?

Posted

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"

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
×
×
  • Create New...