Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

window check exist

Name: Anonymous 2007-10-10 13:11

I have a prog i use to send keys to a specific window name..
but if i enter a invalid name e.g (Untitled - Noetpad) it will fall over with argument exception( of course.. )
is there somthing that i can use to check the window exists before 

appactive(winname)


pseudo
if winname does_not_exist then
msgbox("blah does not exist")
else
appactive(winname)
SendKeys.Send(keystxt.Text)
end if


thanks

Name: Anonymous 2007-10-10 13:27

On Error Resume Next

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List