Jump to content
Sign in to follow this  
kjactive

Halt msg until action

Recommended Posts

:"> Is there a way to halt msg messages until an action sets in like in most other languages to prevent overheat of the system memory...

example:

$msg = GUIGetMsg(1) // wait for api messages

Select

case

case

endselect

Kåre :lmao:

Share this post


Link to post
Share on other sites

i dont think so


[font="Times"] If anyone remembers me, I am back. Maybe to stay, maybe not.----------------------------------------------------------------------------------------------------------[/font][font="Times"]Things I am proud of: Pong! in AutoIt | SearchbarMy website: F.R.I.E.S.A little website that is trying to get started: http://thepiratelounge.net/ (not mine)[/font][font="Times"] ----------------------------------------------------------------------------------------------------------[/font][font="Arial"]The newbies need to stop stealing avatars!!! It is confusing!![/font]

Share this post


Link to post
Share on other sites

GUIGetMsg automaticall saves system CPU... read the helpfile

From HelpFile for GUIGetMsg:

Remarks

This function automatically idles the CPU when required so that it can be safely used in tight loops without hogging all the CPU.

:lmao: if thats what your looking for


FootbaG

Share this post


Link to post
Share on other sites

Yes I know that I can slow down the msg 'runtime' but if I got several windows open at the same time and they all got lots of case to check a every run this would take up some CPU power even if I do not do anything, even a mouse move - why, is there not a 'waituntilnextmsg' or is this ment to do constant check at every 250 ms

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...