Login | |
|
 |
RE: install WSH - 10/18/2005 6:10:50 AM
|
|
 |
|
| |
Snipah
Posts: 1343
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
|
have you considered the other options i gave you? It cannot be that any windows will not run Wscript....unbelievable... Unfortunatly i cannot VNC your machine.......btw AutoIT is superb, many many many possibilities.... Let us know when you're stuck or whatever...it was fun helping you out as much as possible.. C-ya around..... Snipah
_____________________________
For more information, please see the "Read me First" topic. http://www.visualbasicscript.com
|
|
| |
|
|
|
 |
RE: install WSH - 10/18/2005 6:20:44 AM
|
|
 |
|
| |
Country73
Posts: 733
Score: 10
Joined: 8/25/2004
From: USA
Status: offline
|
Try it again but name the test script as "test3.vbs" '------------------------------------------------------- Dim objShell Dim WScript Set WScript = CreateObject("WSH.WScript") Set objShell = CreateObject("WScript.Shell") objShell.Run "notepad" Wscript.Sleep 1000 objShell.SendKeys "Hello" '-------------------------------------------------------- That will take care of the issue you're having. You won't be able to use WScript in an HTA.
|
|
| |
|
|
|
 |
RE: install WSH - 10/18/2005 6:26:13 AM
|
|
 |
|
| |
Snipah
Posts: 1343
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
|
\\ edit: Hey Country73, didn't see you here...guess you were first, sorry for my double post.... quote:
AHA, you never mentioned you'd use it in HTA.....i also get the same error... Paste the following in a VBS file: (test.vbs) Dim objShell Set objShell = CreateObject("WScript.Shell") objShell.Run "notepad" Wscript.Sleep 1000 objShell.SendKeys "Hello" i am almost certain this'll work, right??? HTA sometimes bugs with the Wscript.Shell, then i use the <object...> TAG
< Message edited by Snipah -- 10/18/2005 6:27:35 AM >
_____________________________
For more information, please see the "Read me First" topic. http://www.visualbasicscript.com
|
|
| |
|
|
|
 |
RE: install WSH - 10/18/2005 6:36:37 AM
|
|
 |
|
| |
Country73
Posts: 733
Score: 10
Joined: 8/25/2004
From: USA
Status: offline
|
Just a little quicker on the draw. I ran into the same issue when I started messing around with HTA's. Can't remember where I found it, or should I say information on it, but I wound up using a Timer to take care of the wscript.sleep. It should be something like - window.setTimeout Here's a little more information on it: window.setTimeout()
< Message edited by Country73 -- 10/18/2005 7:05:01 AM >
|
|
| |
|
|
|
 |
RE: install WSH - 10/18/2005 7:50:56 AM
|
|
 |
|
| |
Country73
Posts: 733
Score: 10
Joined: 8/25/2004
From: USA
Status: offline
|
Glad we could help out! I don't have a "lot" of experience with HTA's, just started messing around with them myself, but I'm not sure about the whole "mouse movement" you're looking for. When getting into HTA's you'll need to look at a lot more HTML and VBScript coding. Right now I just use my HTA's for scripts that I've had to create to handle several different tasks that requires the user's input. It just makes it a lot cleaner and easier to follow, especially when dealing with individuals that are not used to VBScript. (Basically creating a form for them to fill out instead of going through a lot of "pop-up" InputBox's for them to fill in.)
|
|
| |
|
|
|
 |
RE: install WSH - 10/18/2005 8:19:32 PM
|
|
 |
|
| |
Snipah
Posts: 1343
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
|
Place this in the HEAD section before TITLE: <OBJECT ID="objShell" CLASSID="clsid:{72C24DD5-D70A-438B-8A42-98424B88AFB8}" ProgID="WScript.Shell.1"></OBJECT> experiment with the .1 it may be different on your system, you could also check the registry for that CLSID and see what's it called... Snipah
_____________________________
For more information, please see the "Read me First" topic. http://www.visualbasicscript.com
|
|
| |
|
|
|
 |
RE: install WSH - 10/20/2005 4:19:41 AM
|
|
 |
|
| |
TNO
Posts: 1302
Score: 12
Joined: 12/18/2004
From: thenewobjective.com
Status: online
|
quote:
<OBJECT ID="objShell" CLASSID="clsid:{72C24DD5-D70A-438B-8A42-98424B88AFB8}" ProgID="WScript.Shell.1"></OBJECT> You know....I've been looking for that CLASSID for about a month now.
_____________________________
To iterate is human, to recurse divine. -- L. Peter Deutsch
|
|
| |
|
|
|
 |
RE: install WSH - 10/20/2005 4:42:29 AM
|
|
 |
|
| |
Snipah
Posts: 1343
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
|
All you had to do is ask.... LOL
_____________________________
For more information, please see the "Read me First" topic. http://www.visualbasicscript.com
|
|
| |
|
|
|
|
|