dantay9 Posted June 20, 2009 Share Posted June 20, 2009 The script works as it is supposed to when it is running. But when I decide to close the script my computer goes crazy. Explorer.exe takes up most of the RAM and CPU usage (around 96%). It always happens when I exit the script. I got the callback and hook from a script on the forum. I think that is the problem, but I don't know how to use them so I can't fix them. Make sure you take a look at the script before you run it. Task Manager can take a few minutes to come up when the CPU is overloaded. Please help me.New_AutoIt_v3_Script.au3 Link to comment Share on other sites More sharing options...
martin Posted June 20, 2009 Share Posted June 20, 2009 (edited) The script works as it is supposed to when it is running. But when I decide to close the script my computer goes crazy. Explorer.exe takes up most of the RAM and CPU usage (around 96%). It always happens when I exit the script. I got the callback and hook from a script on the forum. I think that is the problem, but I don't know how to use them so I can't fix them. Make sure you take a look at the script before you run it. Task Manager can take a few minutes to come up when the CPU is overloaded. Please help me.I am glad you warned us! I managed to make it run without the problem and I think the main change which did it was removing the style $WS_EX_LAYERED from the child window $GUI1. (Not allowed for a child.) If that doesn't fix it then I'll look at what other changes I made. You could also change this _WinAPI_SetWindowLong($hWnd, $GWL_STYLE, BitOR($Style, Hex($SS_ICON))) to _WinAPI_SetWindowLong($hWnd, $GWL_STYLE, BitOR($Style, $SS_ICON)) though only because I don't think the Hex conversion is useful. Edited June 20, 2009 by martin Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
dantay9 Posted June 20, 2009 Author Share Posted June 20, 2009 Thanks martin. The $WS_EX_LAYERED attribute was the problem. Thanks for the hex tip too. 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