Sign in to follow this  
Followers 0
Powder81

i could use some help.

5 posts in this topic

Ok, here is what i need help with.

I need someone out there to make me a loop for this script.

I want this script to repeat untill the user presses ESC

The thing about it is, this script is called on by a button on my GUI, so this script is actually placed in a While....Wend loop

Opt("WinWaitDelay", 400)

Opt("MouseCoordMode",0)

WinActivate("Draco v1.0(Beta)","Draco Control Panel")

WinWaitActive("Draco v1.0(Beta)","Draco Control Panel")

MouseClick("left", 1092, 188, 1)

Sleep(5000)

MouseClick("left", 69, 345, 1)

Sleep(5000)

MouseClickDrag("left", 1095, 195, 1092, 452)

Sleep(5000)

MouseClick("left", 551, 737, 1)

Sleep(5000)

MouseClick("left", 485, 550, 1)

Sleep(5000)

MouseClick("left", 89, 348, 1)

Sleep(5000)

MouseClickDrag("left", 1091, 205, 1092, 472)

Sleep(5000)

MouseClick("left", 560, 737, 1)

Sleep(5000)

MouseClick("left", 551, 555, 1)

Sleep(5000)

MouseClick("left", 90, 345, 1)

Sleep(5000)

MouseClickDrag("left", 1091, 176, 1081, 485)

Sleep(5000)

MouseClick("left", 573, 742, 1)

Sleep(5000)

MouseClick("left", 637, 556, 1)

Sleep(5000)

MouseClick("left", 108, 348, 1)

Sleep(5000)

MouseClickDrag("left", 1093, 157, 1101, 455)

Sleep(5000)

MouseClick("left", 553, 737, 1)

Sleep(5000)

MouseClick("left", 692, 547, 1)

Sleep(5000)

MouseClick("left", 114, 345, 1)

Sleep(5000)

MouseClickDrag("left", 1099, 143, 1097, 438)

Sleep(5000)

MouseClick("left", 537, 739, 1)

Sleep(5000)

MouseClick("left", 756, 555, 1)

Sleep(5000)

MouseClick("left", 111, 344, 1)

Sleep(5000)

MouseClickDrag("left", 1098, 191, 1091, 450)

Sleep(5000)

MouseClick("left", 628, 740, 1)

Sleep(5000)

MouseClick("left", 484, 625, 1)

Sleep(5000)

MouseClick("left", 120, 348, 1)

Sleep(5000)

MouseClickDrag("left", 1096, 119, 1095, 424)

Sleep(5000)

MouseClick("left", 550, 738, 1)

Sleep(5000)

MouseClick("left", 562, 633, 1)

Sleep(5000)

MouseClick("left", 96, 346, 1)

Sleep(5000)

MouseClickDrag("left", 1093, 175, 1091, 461)

Sleep(5000)

MouseClick("left", 553, 739, 1)

Sleep(5000)

MouseClick("left", 633, 621, 1)

Sleep(5000)

MouseClick("left", 116, 349, 1)

Sleep(5000)

MouseClickDrag("left", 1095, 150, 1091, 423)

Sleep(5000)

MouseClick("left", 625, 739, 1)

Sleep(5000)

MouseClick("left", 696, 630, 1)

Sleep(5000)

MouseClick("left", 106, 343, 1)

Sleep(5000)

MouseClickDrag("left", 1097, 135, 1097, 402)

Sleep(5000)

MouseClick("left", 617, 741, 1)

Sleep(5000)

MouseClick("left", 763, 621, 1)

Sleep(5000)

MouseClick("left", 96, 348, 1)

Sleep(5000)

MouseClickDrag("left", 1094, 134, 1093, 375)

Sleep(5000)

MouseClick("left", 601, 739, 1)

Sleep(5000)

MouseClick("left", 484, 694, 1)

Sleep(5000)

MouseClick("left", 107, 346, 1)

Sleep(5000)

MouseClickDrag("left", 1092, 148, 1101, 452)

Sleep(5000)

MouseClick("left", 632, 739, 1)

Sleep(5000)

MouseClick("left", 556, 701, 1)

Sleep(5000)

MouseClick("left", 108, 349, 1)

Sleep(5000)

MouseClickDrag("left", 1095, 72, 1100, 362)

Sleep(5000)

MouseClick("left", 594, 737, 1)

Sleep(5000)

MouseClick("left", 563, 697, 1)

Sleep(5000)

MouseClick("left", 87, 340, 1)

Sleep(5000)

MouseClickDrag("left", 1095, 94, 1117, 399)

Sleep(5000)

MouseClick("left", 616, 739, 1)

Sleep(5000)

MouseClick("left", 612, 695, 1)

Sleep(5000)

MouseClick("left", 85, 348, 1)

Sleep(5000)

MouseClickDrag("left", 1096, 187, 1095, 421)

Sleep(5000)

MouseClick("left", 590, 737, 1)

Sleep(5000)

MouseClick("left", 700, 692, 1)

Sleep(5000)

MouseClick("left", 103, 344, 1)

Sleep(5000)

MouseClickDrag("left", 1095, 222, 1098, 481)

Sleep(5000)

MouseClick("left", 657, 741, 1)

Sleep(5000)

MouseClick("left", 767, 701, 1)

Sleep(5000)

MouseClick("left", 102, 347, 1)

Sleep(5000)

Any suggestions, or actuall scripting would be very helpful.

I have tried a few things myself, but i cant seem to get them to work.

Thank you in advance.


[font="Optima"]Every once in a while... we realize the sun does not rise on our command.[/font][font="Optima"]"Man Standing on Toilet is High on Pot" :Qui Con Jin[/font][font="Optima"]"Can't We All Just Get Along?" :The man who said that was shot by his brother shortly afterwards.[/font]Brand new site/forum i just started. As of 04/12/2005 no members.Check it out, join if you want.

Share this post


Link to post
Share on other sites

#2 ·  Posted (edited)

Quote

Ok, here is what i need help with.

I need someone out there to make me a loop for this script.

I want this script to repeat untill the user presses ESC

End Quote

Listen,

Something i have learned is.... These guys that help us are...

"really sharp"

and they help us because they love this stuff.. not because they have to!

as i read your comment quoted above, you are giving a command to help you, so

I suggest you try again with a little more "humbleness"

good luck

Edited by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites

Listen,

Something i have learned is.... These guys that help us are...

"really sharp"

and they help us because they love this stuff.. not because they have to!

as i read your comment quoted above, you are giving a command to help you, so

I suggest you try again with a little more "humbleness"

good luck

<{POST_SNAPBACK}>

I appologize, i thought i had made it clear that i was asking for help.

Besides that, this is the "Support" forum.

Anyways, here goes.

Would someone ......please..... help me out.

Thank you in advance.


[font="Optima"]Every once in a while... we realize the sun does not rise on our command.[/font][font="Optima"]"Man Standing on Toilet is High on Pot" :Qui Con Jin[/font][font="Optima"]"Can't We All Just Get Along?" :The man who said that was shot by his brother shortly afterwards.[/font]Brand new site/forum i just started. As of 04/12/2005 no members.Check it out, join if you want.

Share this post


Link to post
Share on other sites

Would someone ......please..... help me out.

Thank you in advance.

<{POST_SNAPBACK}>

Before the while loop for your GUI, dimension a global variable that will be used to control the loop. For example:

Global $Loop

Then, construct a loop around your code like this:

$Loop = 1
While $Loop
 ; your code here   
WEnd

Then specify the ESC button as a hot key (see HotKeySet in the help file). In the function that the hot key calls, set the global variable $Loop to 0 and the loop will terminate, returning control to the GUI loop.


Phillip

Share this post


Link to post
Share on other sites

am i "sharp" by your standards? (if you've seen many of my posts that is)


[font="Times"] If anyone remembers me, I am back. Maybe to stay, maybe not.----------------------------------------------------------------------------------------------------------[/font][font="Times"]Things I am proud of: Pong! in AutoIt | SearchbarMy website: F.R.I.E.S.A little website that is trying to get started: http://thepiratelounge.net/ (not mine)[/font][font="Times"] ----------------------------------------------------------------------------------------------------------[/font][font="Arial"]The newbies need to stop stealing avatars!!! It is confusing!![/font]

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