﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
1807	Success of some commands relies on last keyboard/mouse action	Robert.L.Cull.ctr@…		"If a mouseclick is the last action before certain commands run, the command will fail. If it were a keypress instead, however, it does not fail. Here's how I discovered this bug: [[BR]]
Made a simple script to run a specific program via the runas dos command with the smartcard switch. There was a message box immediately before the command would run. If I clicked OK, the command would appear to not run at all. If I pressed the ENTER key, however, it would work as it should. Here's something like it: 
[[BR]]

{{{
msgbox(0, 'asdf', 'click for fail, enter for win')
runwait(@comspec &' /c runas /smartcard notepad')
}}}

[[BR]]
Turned out that the bug wasn't a result of the msgbox, but instead depended on the last action (keypress/mouseclick). 
[[BR]]
I've attached a small script with two demo functions. One demonstrates the operation proceeding successfully, and the other demonstrates the operation failing due to the bug. [[BR]]
[[BR]]
Please be sure to read everything (instructions, etc.) carefully. Also, note that when it simulates either mouseclick or keypress, it will click where ever your mouse is at that time, and will send {PAUSE}. Don't let this mess things up if you have hotkeys assigned, etc. [[BR]]
Also, if the demo's aren't reproducing what they should, you might try to increase the sleep times throughout the script. "	Bug	closed		AutoIt	3.3.6.1	None	Works For Me		
