Bluesmaster Posted November 18, 2013 Share Posted November 18, 2013 Hello Community, I am searching for an elegant method to send a string from a non-autoit-process to autoit. Criteria are: - as easy ( few commands ) and unidependent ( eg win-api calls only ) to perform in any programming language - no tcp/ udp - no winSetText I tried sending window messages but, I can only send pointers to strings within the lparam which then point to the memory of another process and format depends on programming language. So any ideas are welcome. Thanks Blues My UDF: [topic='156155']_shellExecuteHidden[/topic] Link to comment Share on other sites More sharing options...
l3ill Posted November 18, 2013 Share Posted November 18, 2013 (edited) Blues, Right click - Context menu Drag and Drop on EXE both use CMDline Bill Edited November 18, 2013 by billo My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example Link to comment Share on other sites More sharing options...
MachinistProgrammer Posted November 18, 2013 Share Posted November 18, 2013 look at these in the helpfile STDinWrite (can be read with consoleread) STDoutRead (can be written with consolewrite) All my projects live on github Link to comment Share on other sites More sharing options...
Bluesmaster Posted November 18, 2013 Author Share Posted November 18, 2013 (edited) Thanks for your suggestions. I have to specify: - processes are totaly independent from each other and not start one another ( stdstreams no option ) - processes should communicate while running not just parameters on start ( is that what you meant billo? ) - I am experimenting with a combination of shared memory and window messages ( would you support this approach? what could be downsides and better solutions? ) regards Edited November 18, 2013 by Bluesmaster My UDF: [topic='156155']_shellExecuteHidden[/topic] Link to comment Share on other sites More sharing options...
l3ill Posted November 18, 2013 Share Posted November 18, 2013 If you look in my sig "simple text man" this is just one example of sending a string (array of strings) to an autit script via the cmdline... If you are looking pass strings back and forth between applications I will have to pass... Bill My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example Link to comment Share on other sites More sharing options...
guinness Posted November 18, 2013 Share Posted November 18, 2013 Well I personally think WM_COPYDATA is an elegant solution, though you haven't specified what the other process is or who has written it. 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...
MachinistProgrammer Posted November 18, 2013 Share Posted November 18, 2013 what about >MailSlot (as far as i know) it works with other languages (MSND) All my projects live on github Link to comment Share on other sites More sharing options...
Bluesmaster Posted November 19, 2013 Author Share Posted November 19, 2013 That sounds very interesting, I had not heard about this. It will take a while to investigate the support by other languages My UDF: [topic='156155']_shellExecuteHidden[/topic] Link to comment Share on other sites More sharing options...
KaFu Posted November 19, 2013 Share Posted November 19, 2013 CreateFileMapping, implemented as _WinAPI_CreateFileMapping() in WinApiEx (and Beta?), called with $hFile = -1 to create a named "file mapping object" accessible by several different processes. OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2024-Oct-20) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
Bluesmaster Posted November 20, 2013 Author Share Posted November 20, 2013 Thank you KaFu, Thats an interesting opportunity. I read some msdn and wikipedia and found your example '?do=embed' frameborder='0' data-embedContent>> You read data from shell32.dll there right? But I do not understand how to create virtual files that do not really exist on disk. Is this possible? regards Blues My UDF: [topic='156155']_shellExecuteHidden[/topic] 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