1 | ;ticket #1807 |
---|
2 | ;POC= Robert.L.Cull.ctr@navy.mil |
---|
3 | |
---|
4 | msgbox(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 | |
---|
9 | msgbox(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 | |
---|
12 | sleep(1000) |
---|
13 | demo1() |
---|
14 | sleep(1000) |
---|
15 | demo2() |
---|
16 | |
---|
17 | msgbox(0, "BUG DEMO", "That's all, folks") |
---|
18 | |
---|
19 | func 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.") |
---|
26 | endfunc |
---|
27 | |
---|
28 | func 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.") |
---|
36 | endfunc |
---|