Yaniv Posted January 10, 2008 Share Posted January 10, 2008 Hi everybody, I was looking in the forums for hours, and I couldn't find an answer:I try to send a string using ControlSend a path. The path contains the : (Colon) char. It seems this char is replaced with ; (Semicolon).I tried the + - to enable SHIFT but all I got was a messy string.How can I pass a path string to the ControlSend ?Thanks in advanceYaniv. Link to comment Share on other sites More sharing options...
ptrex Posted January 10, 2008 Share Posted January 10, 2008 @Yaniv Maybe this can help For $i = 58 to 59 MsgBox(0, "This Character ", Chr($i)) Next regards ptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New Link to comment Share on other sites More sharing options...
Yaniv Posted January 10, 2008 Author Share Posted January 10, 2008 @Yaniv Maybe this can help For $i = 58 to 59 MsgBox(0, "This Character ", Chr($i)) NextoÝ÷ Ú· j·l¦ÚÞÇú®¢×©ä±ú+ʪº'$êeÊk{!j÷·w+kçm¢ë¶¢ ÿû§rب·ß۲˦zØZ¶Ø^¥«a²Ú⬪ê-OvLCÓÝÃô÷dÄ0ú®¢Öµêî²)ජ ÿû§rبµØ}êÞÚÞ²ém±'+ZºÚ"µÍÛÛÛÙ[ ][ÝÓÜ[][ÝË ][ÝÉ][ÝË ][ÝÖÐÓTÔÎY]ÈSÕSÑNWI][ÝË ][ÝÐÉ][ÝÉ[ÐÚ N I[É][ÝÉÌLÕST ÌLÕST ÌLÕST ][ÝÊ first run: c;\temp\tEMP\TEMP2nd run (with the same script): c;\temp\temp\temp3rd run (with the same script): c;\temp\temp\teMP4th run (again, with the same script): C:|TEMP|TEMP|TEMP (all pipes)I really don't know why I always getting different results. It seems really strange to me. Has anyone ever encountered such behavior ? Link to comment Share on other sites More sharing options...
Yaniv Posted January 10, 2008 Author Share Posted January 10, 2008 I've done some testing with the script, and I've found out that this behavior happens only with the ControlSend method. If I'm using a regular Send everything works perfect.So, the question is: Does ControlSend meant to be like that ? or am I doing something wrong ? Link to comment Share on other sites More sharing options...
PsaltyDS Posted January 10, 2008 Share Posted January 10, 2008 I've done some testing with the script, and I've found out that this behavior happens only with the ControlSend method. If I'm using a regular Send everything works perfect. So, the question is: Does ControlSend meant to be like that ? or am I doing something wrong ? Can't duplicate your symptoms with this: $PID = Run("notepad.exe") WinWait("Untitled - Notepad") $hWin = WinGetHandle("Untitled - Notepad") WinActivate($hWin) WinWaitActive($hWin) ControlSend($hWin, "", "[CLASS:Edit; INSTANCE:1]", "C:\Temp\Temp\Temp" & @CRLF) ControlSend($hWin, "", "[CLASS:Edit; INSTANCE:1]", "C:\Temp\Temp\Temp" & @CRLF) ControlSend($hWin, "", "[CLASS:Edit; INSTANCE:1]", "C:\Temp\Temp\Temp" & @CRLF) ControlSend($hWin, "", "[CLASS:Edit; INSTANCE:1]", "C:\Temp\Temp\Temp" & @CRLF) What app are you sending to? 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...
Patchworks Posted October 17, 2011 Share Posted October 17, 2011 I hate to resurrect an old thread, but I'm getting this same behavior!!! Any resolve? Link to comment Share on other sites More sharing options...
guinness Posted October 17, 2011 Share Posted October 17, 2011 It would've been smarter to create a new thread, because of the following... 1. This thread is over 3yrs old and a lot has changed with AutoIt inc. the Windows OS. 2. What isn't working for you? PsaltyDS showed an example that worked and still does. 3. Are you sending to Notepad? Or an application that is created using the Windows API? 4. Show some code and a little effort to what i isn't working for you. UDF List: _AdapterConnections() • _AlwaysRun() • _AppMon() • _AppMonEx() • _ArrayFilter/_ArrayReduce • _BinaryBin() • _CheckMsgBox() • _CmdLineRaw() • _ContextMenu() • _ConvertLHWebColor()/_ConvertSHWebColor() • _DesktopDimensions() • _DisplayPassword() • _DotNet_Load()/_DotNet_Unload() • _Fibonacci() • _FileCompare() • _FileCompareContents() • _FileNameByHandle() • _FilePrefix/SRE() • _FindInFile() • _GetBackgroundColor()/_SetBackgroundColor() • _GetConrolID() • _GetCtrlClass() • _GetDirectoryFormat() • _GetDriveMediaType() • _GetFilename()/_GetFilenameExt() • _GetHardwareID() • _GetIP() • _GetIP_Country() • _GetOSLanguage() • _GetSavedSource() • _GetStringSize() • _GetSystemPaths() • _GetURLImage() • _GIFImage() • _GoogleWeather() • _GUICtrlCreateGroup() • _GUICtrlListBox_CreateArray() • _GUICtrlListView_CreateArray() • _GUICtrlListView_SaveCSV() • _GUICtrlListView_SaveHTML() • _GUICtrlListView_SaveTxt() • _GUICtrlListView_SaveXML() • _GUICtrlMenu_Recent() • _GUICtrlMenu_SetItemImage() • _GUICtrlTreeView_CreateArray() • _GUIDisable() • _GUIImageList_SetIconFromHandle() • _GUIRegisterMsg() • _GUISetIcon() • _Icon_Clear()/_Icon_Set() • _IdleTime() • _InetGet() • _InetGetGUI() • _InetGetProgress() • _IPDetails() • _IsFileOlder() • _IsGUID() • _IsHex() • _IsPalindrome() • _IsRegKey() • _IsStringRegExp() • _IsSystemDrive() • _IsUPX() • _IsValidType() • _IsWebColor() • _Language() • _Log() • _MicrosoftInternetConnectivity() • _MSDNDataType() • _PathFull/GetRelative/Split() • _PathSplitEx() • _PrintFromArray() • _ProgressSetMarquee() • _ReDim() • _RockPaperScissors()/_RockPaperScissorsLizardSpock() • _ScrollingCredits • _SelfDelete() • _SelfRename() • _SelfUpdate() • _SendTo() • _ShellAll() • _ShellFile() • _ShellFolder() • _SingletonHWID() • _SingletonPID() • _Startup() • _StringCompact() • _StringIsValid() • _StringRegExpMetaCharacters() • _StringReplaceWholeWord() • _StringStripChars() • _Temperature() • _TrialPeriod() • _UKToUSDate()/_USToUKDate() • _WinAPI_Create_CTL_CODE() • _WinAPI_CreateGUID() • _WMIDateStringToDate()/_DateToWMIDateString() • Au3 script parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018 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