Guest Reaper Posted September 26, 2005 Share Posted September 26, 2005 Sleep("8000") WinMove ( "World", "", 346, 244) AdlibEnable( "SendWoW") HotKeySet("{ESC}", "_Exit") While 1 Sleep(10) WEnd Func SendWoW() $GenNum = Random(1, 2, 1) If $GenNum = 1 Then MouseClick ( "right" , 500, 389 , 1 , 20) Sleep("500") MouseClick ( "left" , 403, 369 , 1 , 20) Sleep("500") MouseClick ( "left" , 390, 378 , 1 , 20) Sleep("50000") Send("{SPACE}") Sleep("50000") Send("{SPACE}") Sleep("50000") Send("{SPACE}") Sleep("50000") Send("{SPACE}") Sleep("50000") Send("{SPACE}") Sleep("50000") Send("{SPACE}") Sleep("50000") Send("{SPACE}") Sleep("50000") Send("{SPACE}") EndIf EndFunc ;==>SendWoW Func _Exit() Exit EndFunc ;==>_Exit That is my script can you put some delays in it. Can you Buff it up for me to make it a little better, if you can thanks. Link to comment Share on other sites More sharing options...
Valuater Posted September 26, 2005 Share Posted September 26, 2005 i have no idea what it is you really want or what this script does and if it does it right i would change this though Sleep("50000") Send("{SPACE}") Sleep("50000") Send("{SPACE}") Sleep("50000") Send("{SPACE}") Sleep("50000") Send("{SPACE}") Sleep("50000") Send("{SPACE}") Sleep("50000") Send("{SPACE}") Sleep("50000") Send("{SPACE}") Sleep("50000") Send("{SPACE}") to this for $x = 1 to 8 Sleep("50000") Send("{SPACE}") next what does it not do.... where can we make it better 8) Link to comment Share on other sites More sharing options...
Guest Reaper Posted September 26, 2005 Share Posted September 26, 2005 i have no idea what it is you really want or what this script does and if it does it righti would change this thoughSleep("50000") Send("{SPACE}") Sleep("50000") Send("{SPACE}") Sleep("50000") Send("{SPACE}") Sleep("50000") Send("{SPACE}") Sleep("50000") Send("{SPACE}") Sleep("50000") Send("{SPACE}") Sleep("50000") Send("{SPACE}") Sleep("50000") Send("{SPACE}")to thisfor $x = 1 to 8 Sleep("50000") Send("{SPACE}") nextwhat does it not do.... where can we make it better8)What does for $x = 1 to 8Sleep("50000")Send("{SPACE}")nextdo also read your priv msg Link to comment Share on other sites More sharing options...
Valuater Posted September 26, 2005 Share Posted September 26, 2005 here you have Sleep("50000") Send("{SPACE}") Sleep("50000") Send("{SPACE}") Sleep("50000") Send("{SPACE}") Sleep("50000") Send("{SPACE}") Sleep("50000") Send("{SPACE}") Sleep("50000") Send("{SPACE}") Sleep("50000") Send("{SPACE}") Sleep("50000") Send("{SPACE}") Sleep and send space 8 times for... to... next is a counter thus for this $ariable ( its a variable because it will change from one, then after the next it will be two andf so on) due this.. sleep nd send space next... means do it again 8) Link to comment Share on other sites More sharing options...
t0ddie Posted September 26, 2005 Share Posted September 26, 2005 (edited) i suggest you read up on "loops" here is another example $x = 1 while $x < 9 sleep(50000) $x = $x + 1 wend and yet another $x = 1 do $x = $x + 1 sleep(50000) until $x = 8 heres another. $x = 1 $x = $x + 1 if $x < 9 then sleep(50000) endif and you already saw the "for" loop... as was just explained. you should learn concepts of programming, they are the same for all languages. especially if you want to write a decent script. notice the placement of $x = $x + 1 on that third loop.. you dont want that IN the if statement. although its just an if statement.... you will need to add a loop around it or it wont loop, it will only execute once.. but its an example of logic. kind of a way to break out of a loop. as you can see with the code... $x = $x + 1 i have to actually tell the script to increment that variable on each pass in the loop with a "for" loop your already doing that without the extra code.. so thats your best choice for this situation. programming is cryptic... you have to think differently. so you got 8 oranges... for each orange counted.... (the variable $x) will go up a number for (orange 1) $x = 1 to 8 (8 oranges) now you could say for $x = 4 to 8 and instead of counting 8 times.... it owuld count twice. each time you coulnted if it was 1.. it ($x) would go up a number. (a variable is just something that stores a value) if you said 4 to 8 then $x would = 4 and the next time it would = 8 its alot to bite off, but you need to learn it if you want to write a decent script. you could make the value of $x equal 0 and try that. play around with it. you can use any loop you want, but some are better suited for specific needs... although any type of loop will do that you want. its all in your preferences. Edited September 26, 2005 by t0ddie Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now