Citat:
Dragi Tata:
... Nego, jc denton, možeš da koristiš SendKey i u WSH-u, samo kako misliš da ga iskoristiš?
Hmm..., vidis ja sam ovo prvo i pogledao u MSDN-u od VS-a 6.0, ali tamo imam samo sledece metode za WshShell objekt :
citiram iz MSDN-a :
'The following table describes the methods associated with the WshShell object.
Method Description
CreateShortcut Creates a WshShortcut object and returns it.
ExpandEnvironmentStrings Expands a PROCESS environment variable and returns the result string.
Popup Displays a message box window containing a specified message.
RegDelete Deletes a specified key or value from the registry.
RegRead Returns a specified key or value from the registry.
RegWrite Sets a specified key or value in the registry.
Run Creates a new process that executes a specified command with a specified window style. '
E, izgleda da metod SendKeys nije naveden, pa zato nisam znao da postoji.
Ali ... EVO resenja, i radi super - isprobano :
Set WSHShell = CreateObject("Wscript.Shell")
reply = WSHShell.Run("rundll rnaui.dll,RnaDial posta",,True)
WshShell.SendKeys "%c"
Ovo sto sam napisao bi trebalo da bude script za Disconnect.
Nemanja, svaka cast !
[
Ovu poruku je menjao jc denton dana 21.06.2002 u 07:33 PM GMT]
fire, walk with me