Floppy Posted January 18, 2012 Share Posted January 18, 2012 Hello, I need some help. I have 2 AutoIT scripts: - Script A - Script B Scribt B should send a message to Script A. How to do that? I tried to search the forum for any solution, but I do not understand anything. Please, can you provide me a pratical example? Thank you very much and bye Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 18, 2012 Moderators Share Posted January 18, 2012 FSoft,search for "+inter +script +communication" and you will find lots of threads showing various ways of doing it. My personal favourite is trancexx's MailSlot. M23 guestscripter 1 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Floppy Posted January 20, 2012 Author Share Posted January 20, 2012 Hi Melba and thank you for your help. I tried MailSlot but I have a problem: when the sender send a string (e.g. "ciao a tutti"), the receiver outputs some strange numbers (e.g. "0x777974656C6F677C43657373696F6061206D7967656E676F2E636F6D"). Could you help me, please? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 20, 2012 Moderators Share Posted January 20, 2012 FSoft,You need to convert it back from ASCII codes to ASCII characters: #include <String.au3> $sHex = "0x777974656C6F677C43657373696F6061206D7967656E676F2E636F6D" $sText = _HexToString(StringTrimLeft($sHex, 2)) ConsoleWrite($sText & @CRLF)I get "wytelog|Cessio`a mygengo.com"M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Floppy Posted January 20, 2012 Author Share Posted January 20, 2012 Ok, but why in the sample scripts included in MailSlot.zip there's no mention to this conversion? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 20, 2012 Moderators Share Posted January 20, 2012 FSoft,I can only suggest that one of your scripts is sending the data that way - I certainly have never had a problem like that when I have used it. Perhaps you should ask trancexx in the MailSlot thread. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Floppy Posted January 22, 2012 Author Share Posted January 22, 2012 ok, thank you 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