Sign in to follow this  
Followers 0
zutto

define that 1000 is 1 ? how?

5 posts in this topic

yeah :E i am trying to set script to think that 1 is 1000 so i can make sleep more dum-friendly.. but i can figure out howto set that up ;E tried dim but didnt work so well..

[example]

$x = 104304

func

while 1

1 = 1000

;dostuff

sleep($x)

wend

endfunc

Share this post


Link to post
Share on other sites



yeah :E i am trying to set script to think that 1 is 1000 so i can make sleep more dum-friendly.. but i can figure out howto set that up ;E tried dim but didnt work so well..

[example]

$x = 104304

func

while 1

1 = 1000

;dostuff

sleep($x)

wend

endfunc

Sleep($X / 1000)

Maybe start out with the tutorials?

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

yeah :E i am trying to set script to think that 1 is 1000 so i can make sleep more dum-friendly.. but i can figure out howto set that up ;E tried dim but didnt work so well..

[example]

$x = 104304

func

while 1

1 = 1000

;dostuff

sleep($x)

wend

endfunc

While 1
    ;do something
    Sleep(_Second(2))    ;sleep 2 seconds
Wend


Func _Second ($x)
    return ($x * 1000)
EndFuncoÝ÷ ÚÚºÚ"µÍÚ[HBÙÈÛÛY][ÂÔÛ
JHÜÛYHÙXÛÛÙ[[ÈÔÛ
    ÌÍÞ
BÛY
    ÌÍÞ
L
B[[
Edited by Chapi

Share this post


Link to post
Share on other sites

why not

$x = 104304
;same like $x
$1 = 1000

Share this post


Link to post
Share on other sites

You can't redefine a literal. That doesn't make sense. There are a few languages that support that, but AutoIt is not one of them.

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  
Followers 0