#1
|
|||
|
|||
How to used Milliseconds parameter in WaitForCursor
I want to use Milliseconds in WaitForCursor,I find manual,but not used successfully.I don't know how to use Milliseconds in WaitForCursor
Code:
Do bCursorMoved = crt.Screen.WaitForCursor(100, bMilliseconds) Loop until bCursorMoved = False Last edited by jdev; 02-12-2021 at 08:22 AM. Reason: Structure code formatting for easier understanding |
#2
|
||||
|
||||
Quote:
In the mean time, you will need to define a value for bMilliseconds to be something other than False. Note that False is the default value for any undefined variable -- if you don't explicitly create/define a variable's value, VBScript will automatically create it on demand and assign it a value of empty/false/0). Since you haven't explicitly declared/defined the bMilliseconds variable as True before attempting to use it, the VBScript interpreter is creating that variable on demand and defaulting its value to False. Here's an example of what you can do: Code:
bMilliseconds = True Do bCursorMoved = crt.Screen.WaitForCursor(100, bMilliseconds) Loop until bCursorMoved = False --Jake
__________________
Jake Devenport VanDyke Software Technical Support YouTube Channel: https://www.youtube.com/vandykesoftware Email: support@vandyke.com Web: https://www.vandyke.com/support |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | Rate This Thread |
|
|