﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
112	Send() does not check key release	anonymous		"That's good. If I release the Ctrl key while send is sending a string then it always results in the Ctrl being down.
I think the reason is that when Send starts it has to check if the Ctrl key is pressed, and other keys. So it can send the correct characters it has to first send CTRLUP. When it's finished it sends CTRLDOWN if it was originally down, but what it should do is check if it's still pressed.
This mod to your example works everytime I've tried it wheras before the bug showed every time, but there is a delay while it waits for the Ctrl key to be released.


Demo code :
#include <GUIConstants.au3>
#include <misc.au3>

Const $SCREEN_WAIT = 150

Func WriteMessage($message)
    While _IsPressed(11)
        WEnd
    Send($message)
EndFunc

Func WriteStuff()
    WriteMessage(""`test1 test1"")
    Sleep(1000)
EndFunc

Func ExitTool()
    Exit
EndFunc

Func ConfigureHotKeys()    
    HotKeySet(""^h"", ""WriteStuff"")
    HotKeySet(""{F11}"", ""ExitTool"")
EndFunc

Func Main()
    Opt(""GUIOnEventMode"", 1)
    Opt(""SendKeyDelay"", 100)
    Opt(""MouseClickDelay"", 0)
    AutoItSetOption(""WinTitleMatchMode"", 2)
    AutoItSetOption(""PixelCoordMode"", 2)
    ConfigureHotKeys()
    While 1
        Sleep(1000)
    WEnd
EndFunc

Main()"	Bug	closed		AutoIt	3.2.10.0		Wont Fix		
