Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: Tarak on May 17, 2008, 12:10:24 AM

Title: Declare Sub Sleep Lib "Kernel32" Command
Post by: Tarak on May 17, 2008, 12:10:24 AM
From what I understand this is meant to help to computer run more efficiently....I think.

Is this meant to be entered into the Macropump like this....

Declare Sub Sleep Lib "Kernel32" (ByVal dwMilliseconds As Long)

or am I meant to change the dwMilliseconds to a value??
Darc
Title: Re: Declare Sub Sleep Lib "Kernel32" Command
Post by: poppabear on May 17, 2008, 09:25:21 AM
I think with the latest stable release, that you now just put in:

Sleep()

I think Art put it in the later versions of mach so that you could just call that function.

scott
Title: Re: Declare Sub Sleep Lib "Kernel32" Command
Post by: BadAdam on May 21, 2008, 07:00:30 PM
It's in the mach code now. Just been playing with buttons and having to wait for them to update before zeroing them again using a Sleep(500) line.