Sign in to follow this  
Followers 0
Tukata

Basic question

4 posts in this topic

#1 ·  Posted (edited)

Sorry for this stupid question. I have this code and I get 51 , 511 , 5111 ...

but I want to get 6 , 7 , 8...

$w=5
While 1
$w=$w  & 1
MsgBox(4096,"",$w)
Sleep(5000)
WEnd

Thank you

Tuk

Edited by Tukata

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Try:

$w=5
While 1
  $w=$w  + 1
  MsgBox(4096,"",$w)
  Sleep(5000)
WEnd
Edited by PaulIA

Auto3Lib: A library of over 1200 functions for AutoIt

Share this post


Link to post
Share on other sites

$w=$w & 1

changed for

$w=$w + 1


AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line

Share this post


Link to post
Share on other sites

Thank you very much.

Tuk

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