Ices Posted January 3, 2005 Share Posted January 3, 2005 when I use @ScriptDir with ControlSend, it sends a colon instead of a semicolon, anyone know how to fix this? Link to comment Share on other sites More sharing options...
therks Posted January 3, 2005 Share Posted January 3, 2005 (edited) 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 January 3, 2005 by Saunders My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
Ices Posted January 3, 2005 Author Share Posted January 3, 2005 It's supposed to be a semicolon???Are you confusing the two?Colon = :Semicolon = ;Paths traditionally (in my experience) use colons.C:\windows\NotC;\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? Link to comment Share on other sites More sharing options...
trids Posted January 3, 2005 Share Posted January 3, 2005 And if you MsgBox the string before you ControlSend it? Does that also show a semicolon? Link to comment Share on other sites More sharing options...
therks Posted January 3, 2005 Share Posted January 3, 2005 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. My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
phillip123adams Posted January 3, 2005 Share Posted January 3, 2005 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 Link to comment Share on other sites More sharing options...
Ices Posted January 4, 2005 Author Share Posted January 4, 2005 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now