Jump to content

Question about script


Recommended Posts

Wow, thanks for the help guys, i mean it. But, this loop will repeat all of the actions below?

$i = 1

While $i <= 25

MouseClick(25, "Value of $i is:", $i)

MouseClick ( "left" , 350, 467 )

Sleep(5000) ;five seconds

MouseClickDrag ( "left", 1015, 241, 1016, 594 )

Sleep(5000) ;five seconds

MouseClick ( "left" , 315, 562 )

Sleep(5000) ;five seconds

MouseClick ( "left" , 400, 584 )

Sleep(5000) ;five seconds

MouseClickDrag ( "left", 1015, 241, 1016, 594 )

Sleep(5000) ;five seconds

MouseClick ( "left" , 395, 502 )

$i += 1

WEnd

Yes

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Link to comment
Share on other sites

it seems to screw up. i added hotkeys to try to fix it but. program wont start with the hotkeys in the script

HotkeySet("1","start")
HotkeySet("2","stop")

$i = 1
While $i <= 10
    MouseClick(25, "Value of $i is:", $i) 417, 470
MouseClick ( "left" , 417, 470 )
Sleep(5000);five seconds
MouseClickDrag ( "left", 1015, 241, 1016, 594 )
Sleep(5000);five seconds
MouseClick ( "left" , 315, 562 )
Sleep(5000);five seconds
MouseClick ( "left" , 400, 584 )
Sleep(5000);five seconds
MouseClickDrag ( "left", 1015, 241, 1016, 594 )
Sleep(5000);five seconds
MouseClick ( "left" , 395, 502 )
    $i += 1
WEnd

"I think, therefore I am"[size="1"]René Descartes[/size]

Link to comment
Share on other sites

syntax looks ok ... except this...

MouseClick(25, "Value of $i is:", $i) 417, 470

... this is coded incorrectly.... comment it out and the script should run.

Lar.

forget HotKeySet ... you're not ready.

Lar.

Edited by LarryDalooza

f_mrcleansmalm_77ce002.jpgAutoIt has helped make me wealthy

Link to comment
Share on other sites

yeah my mistake, took that out a long time ago the 417 thing.

anyways i said screw it on that project. its small simple and stupid. im going for the whole shibang in my opinion.

this is the current one im doing. opens browser to the site and types username and that stuff.

my current problem is that when it drags the scroll bar, the coordinates are mest up and i have to guess them.

ShellExecute("http://theninja-rpg.com/")
Sleep(5000);five seconds
MouseClick ( "left" , 765, 489 )
$variable = 'enclg'
Send($variable & @CRLF)

Sleep(5000);five seconds
MouseClick ( "left" , 403, 485 )
Sleep(5000);five seconds

MouseClickDrag ( "left", 1009, 280, 1009, 418 )
Sleep(5000);five seconds

MouseClick ( "left" , 756, 518 )
Sleep(5000);five seconds

MouseClick ( "left" , 397, 490 )
Sleep(5000);five seconds


$i = 1
While $i <= 25
    MouseClick(25, "Value of $i is:", $i)
MouseClick ( "left" , 350, 467 )  
Sleep(5000);five seconds
MouseClickDrag ( "left", 1015, 241, 1016, 594 )
Sleep(5000);five seconds
MouseClick ( "left" , 312, 622 )
Sleep(5000);five seconds
MouseClick ( "left" , 391, 646 )
Sleep(5000);five seconds
MouseClickDrag ( "left", 1015, 241, 1016, 594 )
Sleep(5000);five seconds
MouseClick ( "left" , 312, 622 )
Sleep(5000);five seconds
MouseClick ( "left" , 391, 646 )
Sleep(5000);five seconds
MouseClick ( "left" , 388, 623 )
Sleep(5000);five seconds
    $i += 1
WEnd

"I think, therefore I am"[size="1"]René Descartes[/size]

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...