Phenom 0 Posted October 11, 2010 (edited) Let's say I have a simple script that looks like this: For $i = 0 to 100 Sleep(1000) Next While this script is running I have another AutoIt script running. I want this other script to periodically check to see what the value of $i is. I want it to be done without writing to disk. What's the code to do that? Edited October 11, 2010 by Phenom Share this post Link to post Share on other sites
JohnOne 1,603 Posted October 11, 2010 (edited) The "code to do that" is up to you, the functions for it are numerous(StdoutRead and its related functions for example), as are the forum examples I have seen here(I trust you know how to perform a search. Edited October 11, 2010 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Share this post Link to post Share on other sites
wakillon 404 Posted October 11, 2010 You can use a registry key too the first script write your $i value and the second read it... AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Share this post Link to post Share on other sites
Phenom 0 Posted October 11, 2010 You can use a registry key toothe first script write your $i value and the second read it...Doesn't using a registry key require writing to disk? Share this post Link to post Share on other sites
AlmarM 22 Posted October 11, 2010 I want it to be done without writing to diskEh, eh-he.Well... Using a MySQL of webserver would be stupid? Wouldn't it? MinesweeperA minesweeper game created in autoit, source available._Mouse_UDFAn UDF for registering functions to mouse events, made in pure autoit.2D Hitbox EditorA 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Share this post Link to post Share on other sites
Phenom 0 Posted October 11, 2010 The "code to do that" is up to you, the functions for it are numerous(StdoutRead and its related functions for example), as are the forum examples I have seen here(I trust you know how to perform a search.I did a search but couldn't figure it out. How can StdoutRead be used to do this? The example script shows it being used in only one program. I need to get information from a different script that is running. Share this post Link to post Share on other sites
KaFu 297 Posted October 11, 2010 (edited) Search for WM_COPYDATA in the examples section. Edited October 11, 2010 by KaFu OS: Win10-1909 - 64bit - German, AutoIt Version: 3.3.14.5, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2019-Dec-21) BIC - Batch-Image-Cropper (2019-Dec-11) COP - Color Picker (2009-May-21) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2019-Dec-07) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Share this post Link to post Share on other sites
JohnOne 1,603 Posted October 11, 2010 I did a search but couldn't figure it out. How can StdoutRead be used to do this? The example script shows it being used in only one program. I need to get information from a different script that is running.You see in the example, it runs foo.bar as its child, foo.bar is what the example is reading the output from. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Share this post Link to post Share on other sites