sort of off topic: AutoIt question 
Author Message
 sort of off topic: AutoIt question

Any AutoIt users here?

I'm trying to use AutoItX in a VBScript.  I need to open and then send some
commands to a proprietary piece of software that doesn't seem to handle
automation any other way.

The problem is that I can't figure out how to send a pathname that has a
space in it.  I want to send "C:\DAQ32 Plus\DWViewerE.exe" but all that gets
sent is "C:\DAQ32" (I have both directories on the system).

Any Ideas?

I'm trying to use the following kind of code to open up the application:

[just a snippet shown here]

Dim DAQViewerCommand
DAQViewerCommand = "C:\DAQ32 Plus\DWViewerE.exe"

Dim oShell
Dim AutoIT

Set oShell = Wscript.CreateObject("WScript.Shell")
Set oAutoIt = Wscript.CreateObject("AutoItX.Control")

msgbox DAQViewerCommand
oShell.Run DAQViewerCommand



Sat, 22 May 2004 07:28:47 GMT  
 sort of off topic: AutoIt question
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Try this:

DAQViewerCommand = Chr(34) & "C:\DAQ32 Plus\DWViewerE.exe" & Chr(34)

- - or -

oShell.Run Chr(34) & DAQViewerCommand & Chr(34)

B-Mann


Quote:
> Any AutoIt users here?

> I'm trying to use AutoItX in a VBScript.  I need to open and then
> send some commands to a proprietary piece of software that doesn't
> seem to handle automation any other way.

> The problem is that I can't figure out how to send a pathname that
> has a space in it.  I want to send "C:\DAQ32 Plus\DWViewerE.exe"
> but all that gets sent is "C:\DAQ32" (I have both directories on
> the system).

> Any Ideas?

> I'm trying to use the following kind of code to open up the
> application:

> [just a snippet shown here]

> Dim DAQViewerCommand
> DAQViewerCommand = "C:\DAQ32 Plus\DWViewerE.exe"

> Dim oShell
> Dim AutoIT

> Set oShell = Wscript.CreateObject("WScript.Shell")
> Set oAutoIt = Wscript.CreateObject("AutoItX.Control")

> msgbox DAQViewerCommand
> oShell.Run DAQViewerCommand

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBPAy4LisB0E0py/kZEQIKIACgh1s9OnkV4DcsCInrXEP4dhT2EDMAoLZc
UNx+zlzdsnWZbNWqCNcCFh/Y
=C0kx
-----END PGP SIGNATURE-----



Sat, 22 May 2004 19:49:05 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Off Topic Sort of Kind of...

2. an off the topic question...

3. Can anybody answer OFF TOPIC QUESTION ?

4. Off topic: A question about web pages.

5. Question (Off topic)

6. Domain Question (DNS2Go) <off topic>

7. Off-topic IE question

8. Off topic question for programming consultants...

9. Hey Neila!!! Off the Topic Question

10. Off topic: A question about web pages.

11. Project 98 question - Off Topic

 

 
Powered by phpBB® Forum Software