Phenom Posted October 11, 2010 Share 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 Link to comment Share on other sites More sharing options...
JohnOne Posted October 11, 2010 Share 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. Link to comment Share on other sites More sharing options...
wakillon Posted October 11, 2010 Share 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 Link to comment Share on other sites More sharing options...
Phenom Posted October 11, 2010 Author Share 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? Link to comment Share on other sites More sharing options...
AlmarM Posted October 11, 2010 Share 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? Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
Phenom Posted October 11, 2010 Author Share 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. Link to comment Share on other sites More sharing options...
KaFu Posted October 11, 2010 Share Posted October 11, 2010 (edited) Search for WM_COPYDATA in the examples section. Edited October 11, 2010 by KaFu OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) 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 (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
JohnOne Posted October 11, 2010 Share 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. 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