Jump to content
Sign in to follow this  
Ices

Using @ScriptDir with ControlSend

Recommended Posts

Ices

when I use @ScriptDir with ControlSend, it sends a colon instead of a semicolon, anyone know how to fix this?

Share this post


Link to post
Share on other sites
therks

It's supposed to be a semicolon???

Are you confusing the two?

Colon = :

Semicolon = ;

Paths traditionally (in my experience) use colons.

C:\windows\

Not

C;\windows\

*Edit*

Not sure what could be causing the problem (if indeed it is a problem) but you could probably use StringReplace() to fix it.

Edited by Saunders

Share this post


Link to post
Share on other sites
Ices

It's supposed to be a semicolon???

Are you confusing the two?

Colon = :

Semicolon = ;

Paths traditionally (in my experience) use colons.

C:\windows\

Not

C;\windows\

*Edit*

Not sure what could be causing the problem (if indeed it is a problem) but you could probably use StringReplace() to fix it.

<{POST_SNAPBACK}>

Yes, I confused the two, sorry. Been scripting for like 8 hours now and things are starting to blur, heh. anyways, when it calls the scriptdir, it comes up c;\, not c:\, any ideas?

Share this post


Link to post
Share on other sites
trids

And if you MsgBox the string before you ControlSend it? Does that also show a semicolon?

Share this post


Link to post
Share on other sites
therks

I would wager that it has something to do with the shift key. As we all know, the colon is a semicolon with the shift key held down. Maybe it's sending a shift key along with a colon, and it sorta doubles itself out and becomes a semicolon? Or maybe it's supposed to send a semicolon with a shift key, but it's not...

Sorry for only speculation. It's late and I'm not at home so I'm trying to kill time until I get tired and sleep. :idiot:

Share this post


Link to post
Share on other sites
phillip123adams

when I use @ScriptDir with ControlSend, it sends a colon instead of a semicolon, anyone know how to fix this?

<{POST_SNAPBACK}>

If you are sending characters to a Command Prompt window, you will find that ControlSend only sends the non-shift characters. Many of us have experienced this problem, but there is no mention of it in the help file. But there is a solution. Search this forum for ControlSendPlus, find the download from pekster, and use the ControlSendPlus function instead. You will need the #include statement to include this UDF in your script.

Phillip

Share this post


Link to post
Share on other sites
Ices

If you are sending characters to a Command Prompt window, you will find that ControlSend only sends the non-shift characters.  Many of us have experienced this problem, but there is no mention of it in the help file.  But there is a solution.  Search this forum for ControlSendPlus, find the download from pekster, and use the ControlSendPlus function instead.  You will need the #include statement to include this UDF in your script.

<{POST_SNAPBACK}>

Thanks for all the help, controlsendplus works great :idiot:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.