Woongjinn Posted June 13, 2007 Share Posted June 13, 2007 Hi Guys, Having a bit of problem with my strings. Basically when I call my string and enter it into another app (using Send) it appears missing the # symbol. eg. String is ABC#12345678910 but when I send it to the app it comes out ABC12345678910. The app I'm entering it into doesn't have any problems accepting # symbol when pasted from the clipboard so I'm a bit lost as to what could be causing the problem. The app is a telnet client by the way, Tera Term Pro (oldschool). Any help would be greatly appreciated. Thanks Woongy Link to comment Share on other sites More sharing options...
BrettF Posted June 13, 2007 Share Posted June 13, 2007 In Send () # is sending the windows key. Replace it with {#} and your good to go Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
poisonkiller Posted June 13, 2007 Share Posted June 13, 2007 Send("ABC#12345678910", 1) Link to comment Share on other sites More sharing options...
star2 Posted June 13, 2007 Share Posted June 13, 2007 u had Bert, poisonkiller , as expert advice Send ("ABC" & "{#}" & "12345678910") [quote]Baby you're all that I want, When you're lyin' here in my armsI'm findin' it hard to believe, We're in heavenAnd love is all that I need , And I found it there in your heartIt isn't too hard to see, We're in heaven .Bryan Adams[/quote].............................................................................[u]AUTOIT[/u] Link to comment Share on other sites More sharing options...
BrettF Posted June 13, 2007 Share Posted June 13, 2007 u had Bert, poisonkiller , as expert advice Send ("ABC" & "{#}" & "12345678910")oÝ÷ Ûú®¢×¨®;¬µ«¢+ÙM¹ ÅÕ½Ðí ìôÄÈÌÐÔØÜàäÄÀÅÕ½Ðì Worked for me Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Woongjinn Posted June 13, 2007 Author Share Posted June 13, 2007 (edited) In Send () # is sending the windows key. Replace it with {#} and your good to go Awesome!!Thanks for that. I have decided to break it up into 2 strings and putting Send("{#}") in the middle of the other 2 Send commands. Should work perfectly. Thanks again!! Edited June 13, 2007 by Woongjinn Link to comment Share on other sites More sharing options...
BrettF Posted June 13, 2007 Share Posted June 13, 2007 Awesome!!Thanks for that. I have decided to break it up into 2 strings and putting Send({#}) in the middle of the other 2 Send commands. Should work perfectly. Thanks again!!glad to be of help Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
poisonkiller Posted June 13, 2007 Share Posted June 13, 2007 Run("notepad.exe") WinWaitActive("Untitled - Notepad") Send("ABC#12345678910" & @LF, 1) Send ("ABC{#}12345678910" & @LF) Send ("ABC" & "{#}" & "12345678910") Every way works perfectly. Link to comment Share on other sites More sharing options...
PsaltyDS Posted June 13, 2007 Share Posted June 13, 2007 Awesome!! Thanks for that. I have decided to break it up into 2 strings and putting Send("{#}") in the middle of the other 2 Send commands. Should work perfectly. Thanks again!! The problem with that technique is it requires you to know ahead of time what the content of the string is, and 'escape' those characters. If the string came from and input box, ini file, etc., you won't know. The 'Raw Flag' is a much better answer: Send ( "keys" [, flag] ) Parameters keys: The sequence of keys to send. flag: [optional] Changes how "keys" is processed: flag = 0 (default), Text contains special characters like + and ! to indicate SHIFT and ALT key-presses. flag = 1, keys are sent raw. I'm just say'n... Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law 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