lundgren
Joined: 30 Jul 2007 Posts: 3 Location: sweden
|
Posted: Fri Mar 12, 2010 9:16 am Post subject: porblem with sending key while windows is looked |
|
|
Hi,
I want to send a key command to close a popup when the computer is looked by sending ALT+N but the key doesn't close the popup
the script waits for the window and then activates it and sends the Key
but it seems that windows not allowing the key to be sent
any one know how i should do to get the key to the popup ???
hear is the script:
WinWait,SDA 4.1.0,Do you want to download the vbf files to an external medium before proceeding?,10
{
if ErrorLevel
{
ExitApp,-1
}else{
WinActivate,SDA 4.1.0,Do you want to download the vbf files to an external medium before proceeding?
Sleep, 100
Send {Alt Down}+N+{Alt Up}
ExitApp, 0
}
} |
|