Sardith Posted May 13, 2006 Share Posted May 13, 2006 I have a question, i'm working on improving my trainer befor releasing it; I feel that the CPU usage is to much in general, since as we know trainers are Nooping the mem.write. So in turn it's constantly writting to memory. Is there anyway I could reduce my trainers cpu usage? Priorty or? [font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font] Link to comment Share on other sites More sharing options...
Valuater Posted May 13, 2006 Share Posted May 13, 2006 (edited) 1 make sure that they are sufficent ( small) sleeps within your loops2coded correctly it should not use alot of your CPU3you could try the reducemem() function.. its in herehttp://www.autoitscript.com/forum/index.ph...70&hl=Valuater#8) Edited May 13, 2006 by Valuater Link to comment Share on other sites More sharing options...
Sardith Posted May 13, 2006 Author Share Posted May 13, 2006 (edited) Thanks alot. It's coded well, i've been asking a bunch of questions as you know. XD Valuater could you explain how reducemem() funcation works? I'm looking at it now, but I havn't determined how to use it. Edited May 13, 2006 by Sardith [font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font] Link to comment Share on other sites More sharing options...
Sardith Posted May 13, 2006 Author Share Posted May 13, 2006 (edited) Side question: FileInstall("C:\Documents and Settings\Admin\Desktop\background.bmp", "C:\windows\background.bmp", 1) For some reason it won't install background.bmp in the windows folder when you compile it.. any ideas? Never mind that, I just need to change my directory in which it looks for the picture. Edited May 13, 2006 by Sardith [font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font] Link to comment Share on other sites More sharing options...
Valuater Posted May 13, 2006 Share Posted May 13, 2006 (edited) Thanks alot. It's coded well, i've been asking a bunch of questions as you know. XDValuater could you explain how reducemem() funcation works? I'm looking at it now, but I havn't determined how to use it.this should helphttp://www.autoitscript.com/forum/index.ph...997&hl=reduce*#8) Edited May 13, 2006 by Valuater Link to comment Share on other sites More sharing options...
Sardith Posted May 13, 2006 Author Share Posted May 13, 2006 (edited) Quick question: FileInstall("C:\Documents and Settings\Admin\Desktop\AutoIt\Memfuncations\Trainer\Background.bmp", "@WindowsDir\Background.bmp", 1) Is it possible to use @WindowsDir for a fileinstall, if so could someone fix the code above? Edit: Thanks Valuator Edited May 13, 2006 by Sardith [font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font] Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted May 13, 2006 Moderators Share Posted May 13, 2006 (edited) FileInstall("C:\Documents and Settings\Admin\Desktop\AutoIt\Memfuncations\Trainer\Background.bmp", @WindowsDir & "\Background.bmp", 1)Just a misplaced placed quote and missing an "&". Edited May 13, 2006 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
BigDod Posted May 13, 2006 Share Posted May 13, 2006 (edited) Try FileInstall("C:\Documents and Settings\Admin\Desktop\AutoIt\Memfuncations\Trainer\Background.bmp", @WindowsDir & "\Background.bmp", 1) Edit - Too slow again Edited May 13, 2006 by BigDod Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
Sardith Posted May 13, 2006 Author Share Posted May 13, 2006 Thanks guys. [font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font] 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