Jump to content
Sign in to follow this  
xZZTx

Running more then one while

Recommended Posts

xZZTx

is there a way to run more then one while func?

because i need to have variables that update constently any way i can do that?


Sorry For Any Spelling / Grammar Errors I May Make.... I Failed English Wayyyy To Many Times..

Share this post


Link to post
Share on other sites
enaiman

.. code please ...

I can't help you if I don't know what are you trying to do.


SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

Share this post


Link to post
Share on other sites
xZZTx

While 1=1
     If WinActive("World of Warcraft")=1 Then
     $xy = WinGetClientSize("World of Warcraft") 
     $xy1 = WinGetCaretPos()
     sleep(1000)
     call("login") 
     Call("Chatbox") 
     Call("Wisper") 
     call("battleground") 
     call("attack") 
     call("Main") 
 Else
 EndIf
 WEnd

i need

$xy = WinGetClientSize("World of Warcraft")

$xy1 = WinGetCaretPos()

to be updateing constently


Sorry For Any Spelling / Grammar Errors I May Make.... I Failed English Wayyyy To Many Times..

Share this post


Link to post
Share on other sites
enaiman

They are both updates everytime the while loop is executed.

I don't know why do you want to execute all other functions in the main loop?


SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

Share this post


Link to post
Share on other sites
xZZTx

i did it that way so they run one after another but i need to find a way to make them update constently


Sorry For Any Spelling / Grammar Errors I May Make.... I Failed English Wayyyy To Many Times..

Share this post


Link to post
Share on other sites
Xenobiologist

Maybe adlibenable will help. And don't use Call in this case.

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites
xZZTx

ok i understand adlibenable now but if i use it instead of call then wouldn't it try and run all the scripts at the same time?

Edited by xZZTx

Sorry For Any Spelling / Grammar Errors I May Make.... I Failed English Wayyyy To Many Times..

Share this post


Link to post
Share on other sites
AlmarM

The title doesnt say it?

More whiles is:

While 1
Sleep(100)
WEnd

While 2
Sleep(100)
WEnd

While 3
Sleep(100)
WEnd

; Etc...

Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

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  

×