VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Wait timer for 64 bit 2014

1 REPLY 1
Reply
Message 1 of 2
noeltek
810 Views, 1 Reply

Wait timer for 64 bit 2014

I am having an issue with this: Private Declare Sub Sleep Lib "kernel32" needing to be in 64 bit version

 

Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)

Public Sub Wait(Seconds As Single)

 Dim lMilliSeconds As Long
 lMilliSeconds = Seconds * 1000
 Sleep lMilliSeconds

End Sub

 

Does anyone know what the 64 bit compatible version is?

Does anyone know how I can put an 8 second wait timer in my code? Doesnt have to be pretty 🙂

1 REPLY 1
Message 2 of 2
Alfred.NESWADBA
in reply to: noeltek

Hi,

 

look to >>>that blog<<<, it explains how to use declare statements using VBA7/64bit.

 

Good luck, - alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost