Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 01:28:14 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  VB and the development of wizards
| | |-+  Declare Sub Sleep Lib "Kernel32" Command
Pages: 1   Go Down
Print
Author Topic: Declare Sub Sleep Lib "Kernel32" Command  (Read 1639 times)
0 Members and 2 Guests are viewing this topic.
Darc
Active Member

Offline Offline

Posts: 177


View Profile
« on: May 16, 2008, 11:10:24 PM »

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
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
*
Offline Offline

Posts: 1,707


Briceville, TN, USA


View Profile WWW
« Reply #1 on: May 17, 2008, 08: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
Logged

Commercial Mach3: Screens (regular and flash), Wizards, Plug-ins, Brains, PLCs, Macros, ATC's, machine build, retrofit and Prototyping
http://sites.google.com/site/volunteerfablab/
BadAdam
Active Member

Offline Offline

Posts: 4


View Profile
« Reply #2 on: May 21, 2008, 06: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.
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!