Juvigy Posted April 6, 2009 Share Posted April 6, 2009 Is it possible is i have on exe file and run it , at some point the software to update one of its parameters , lets say a counter. And after closing the program and starting it again to remember the updated value. For example a counter that counts how many time the software was run. And it shouldnt be a workaround like writing to the registry or in a file on the hard drive.Maybe reserving a RAM memory space for one variable or updating the exe file source code somehow? Link to comment Share on other sites More sharing options...
Yashied Posted April 6, 2009 Share Posted April 6, 2009 Is it possible is i have on exe file and run it , at some point the software to update one of its parameters , lets say a counter. And after closing the program and starting it again to remember the updated value. For example a counter that counts how many time the software was run. And it shouldnt be a workaround like writing to the registry or in a file on the hard drive.Maybe reserving a RAM memory space for one variable or updating the exe file source code somehow?Maybe ProcessExists(), ProcessWait() and ProcessWaitClose(). My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
Juvigy Posted April 6, 2009 Author Share Posted April 6, 2009 Maybe ProcessExists(), ProcessWait() and ProcessWaitClose().I dont get it. Please clarify. These are process management functions. Link to comment Share on other sites More sharing options...
Yashied Posted April 6, 2009 Share Posted April 6, 2009 I dont get it. Please clarify. These are process management functions.Seehttp://www.autoitscript.com/autoit3/docs/functions/ProcessExists.htmandhttp://www.autoitscript.com/autoit3/docs/functions/ProcessWait.htmandhttp://www.autoitscript.com/autoit3/docs/functions/ProcessWaitClose.htm My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
Juvigy Posted April 8, 2009 Author Share Posted April 8, 2009 I still dont get it. Maybe you didnt get my issue?I know what these 3 functions are used for but dont get how they would help me . Link to comment Share on other sites More sharing options...
KaFu Posted April 8, 2009 Share Posted April 8, 2009 The count has to be stored somewhere. Memory is released after program exit (and I don't know any workarounds to preserve this). Write it to Registry, INI-File or directly as an attachment to the .exe using ADS. 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...
bo8ster Posted April 8, 2009 Share Posted April 8, 2009 Is it possible is i have on exe file and run it , at some point the software to update one of its parameters , lets say a counter. And after closing the program and starting it again to remember the updated value. For example a counter that counts how many time the software was run. And it shouldnt be a workaround like writing to the registry or in a file on the hard drive.Maybe reserving a RAM memory space for one variable or updating the exe file source code somehow?KaFu is correct. If you really want, you can reserve Memory in real mode (Virtual Memory will be lost as soon as the program ends) but you need the program to remember where it is. The exe only contains compiled code so that is no use. You either have to have another program running at the same time, or it has to be within another program - none of which are simple. Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic] Link to comment Share on other sites More sharing options...
Juvigy Posted April 10, 2009 Author Share Posted April 10, 2009 "directly as an attachment to the .exe using ADS" Please explain. Link to comment Share on other sites More sharing options...
KaFu Posted April 10, 2009 Share Posted April 10, 2009 This is a good article on this topic:http://www.heysoft.de/nt/ntfs-ads.htm 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...
Juvigy Posted April 13, 2009 Author Share Posted April 13, 2009 This is a good article on this topic:http://www.heysoft.de/nt/ntfs-ads.htmInteresting. 10x a lot Link to comment Share on other sites More sharing options...
KaFu Posted April 13, 2009 Share Posted April 13, 2009 (edited) Note that the latest version of SMF has an option to search for ADS (and displaying the respective file-names). Edited April 13, 2009 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...
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