CrewXp Posted July 2, 2009 Share Posted July 2, 2009 Hey, I have a program that runs in the background that runs an Adlib every 5 minutes to check for an update on my server. When I lock my computer and then come back later to unlock it...Its like my autoit program has stacked up every Adlib ever called while my computer was Locked, because I can never access my program when I first unlock my pc. It takes about 10 minutes until I can start using my program again. (Program is based on EventMode if that helps u get an idea any). Any ideas? Its Adlib, right? Did I come to the right conclusion? Adlib doesn't run when the computer is locked? Is there any way around this? How would YOU do this? Maybe a way to check to see if the computer is locked, if not, run Adlib, it yes, then dont run the Adlib. ...thats assuming the reason I cant access my program after I unlock my PC is BECAUSE of adlib. Link to comment Share on other sites More sharing options...
KaFu Posted July 2, 2009 Share Posted July 2, 2009 (edited) I don't think its the Adlib function itself. This works fine, even if the computer is locked. Global $i = 0 AdlibEnable("myadlib",1000) while 1 sleep(10) WEnd Func myadlib() $i += 1 ConsoleWrite($i & @TAB & TimerInit() & @crlf) EndFunc It's more likely one of the function within the adlib which hangs, maybe some win-related function? Edited July 2, 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