Ticket #1807: bugdemo.au3

File bugdemo.au3, 1.5 KB (added by Robert.L.Cull.ctr@…, 14 years ago)

bug demo functions

Line 
1;ticket #1807
2;POC= Robert.L.Cull.ctr@navy.mil
3
4msgbox(0, "BUG DEMO", "Script will now reproduce the bug with 2 demo functions."&@CRLF&@CRLF & _
5        "If the bug occurs, command prompt will open to a blank prompt."&@CRLF & _
6        "If the bug doesn't occur, command prompt should show that the 'runas /smartcard...' command was executed, " & _
7        "and then (whether it actually succeeds or fails) will return to the prompt.")
8
9msgbox(0, "BUG DEMO", "Follow the instructions in the message boxes, and read carefully."&@CRLF & _
10        "****Once the command prompt window reaches the blank prompt, close it to continue.****")
11
12sleep(1000)
13demo1()
14sleep(1000)
15demo2()
16
17msgbox(0, "BUG DEMO", "That's all, folks")
18
19func demo1()
20        msgbox(0, "Demo1", "Script will send a keystroke (pause/break) before the command runs. Bug should NOT occur.")
21        sleep(200)
22        send("{PAUSE}")
23        sleep(200)
24        runwait(@comspec & ' /k runas /smartcard notepad')
25        msgbox(0, "Demo1", "Demo1 complete. Sending a key (automated or manual) before the command will allow the it to run.")
26endfunc
27
28func demo2()
29        msgbox(0, "Demo2", "Script will send a single mouseclick before the command runs. Bug should occur.")
30        sleep(200)
31        mouseclick("LEFT", default, default, 1)
32        sleep(200)
33        runwait(@comspec & ' /k runas /smartcard notepad')
34        msgbox(0, "Demo2", "Demo2 complete. It appears that if the last action before the command is a mouseclick (automated or manual) the command will NOT run."&@CRLF & _
35                "If the last action before the command is a keypress (automated or manual), the command WILL run.")
36endfunc