AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[Solved] Script causing high CPU usage

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Delusion



Joined: 16 Jul 2008
Posts: 210
Location: Greece/Rhodos

PostPosted: Tue Mar 02, 2010 11:51 am    Post subject: [Solved] Script causing high CPU usage Reply with quote

i recently noticed that my script is causing high cpu usage

as soon as i press rightclick on my gui my autohotkey process uses very much of my cpu and causes the gui etc to be unresponsive

i cant figure out what is causing it

i wasnt planing on posting any code but im really desperate
so i will just post the whole thing
but be prepared its a big script

Here it is : [link removed]

i hope someone more experienced can figure it out
_________________
Popcorn Movie Db
Simple Apnea Trainer


Last edited by Delusion on Wed Mar 03, 2010 9:50 am; edited 6 times in total
Back to top
View user's profile Send private message Visit poster's website
Guest






PostPosted: Tue Mar 02, 2010 3:19 pm    Post subject: Reply with quote

i think i have read somewhere that you have to modify a few things for hlink and menu icons to work together
cant remember where though
Back to top
Delusion



Joined: 16 Jul 2008
Posts: 210
Location: Greece/Rhodos

PostPosted: Tue Mar 02, 2010 5:12 pm    Post subject: Reply with quote

Anonymous wrote:
i think i have read somewhere that you have to modify a few things for hlink and menu icons to work together
cant remember where though


i tried removing DockA, Menu Icons and Hlink which were the latest modules i had added...but it didnt make a difference
_________________
Popcorn Movie Db
Simple Apnea Trainer
Back to top
View user's profile Send private message Visit poster's website
da_boogie_man
Guest





PostPosted: Tue Mar 02, 2010 5:29 pm    Post subject: Reply with quote

Try reading through this post {and those following} to see if there's anything you can use/fix for your script.
http://www.autohotkey.com/forum/post-53808.html#53808

And this one had the same problem:
http://www.autohotkey.com/forum/topic11402.html


DBM
Back to top
Delusion



Joined: 16 Jul 2008
Posts: 210
Location: Greece/Rhodos

PostPosted: Tue Mar 02, 2010 6:32 pm    Post subject: Reply with quote

da_boogie_man wrote:
Try reading through this post {and those following} to see if there's anything you can use/fix for your script.
http://www.autohotkey.com/forum/post-53808.html#53808

And this one had the same problem:
http://www.autohotkey.com/forum/topic11402.html


DBM


thanks for your reply but unfortunately i didnt find anything to help me..i read through both topics and also tried window info but no luck Confused

on a big script like mine i guess its gonna be hard to find what command is causing it
_________________
Popcorn Movie Db
Simple Apnea Trainer
Back to top
View user's profile Send private message Visit poster's website
Guest






PostPosted: Wed Mar 03, 2010 7:39 am    Post subject: Reply with quote

from what i know high cpu usage is usually caused by loops
do you have any loops in the routine you use for righclicking?
Back to top
Delusion



Joined: 16 Jul 2008
Posts: 210
Location: Greece/Rhodos

PostPosted: Wed Mar 03, 2010 9:50 am    Post subject: Reply with quote

never mind i found it...i spend 3 whole hours yesterday going through all my code and doing tests
it was a "critical" i had added to a section lately
i removed it and everything is fine again
_________________
Popcorn Movie Db
Simple Apnea Trainer
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group