Jump to content

Need help to make my script repeat!


alohha
 Share

Recommended Posts

Hi! i'm new to this forum.

I've been doing a script for a private server (runescape), it's not very advanced. just simple and only for me. (Don't hate.)

MouseClick("Right",674,422)

MouseClick("Left",673,447)

Sleep(2000)

MouseClick("Left",674,422)

Sleep(2000)

MouseClick("Left",674,422)

Sleep(2000)

MouseClick("Left",674,422)

Sleep(2000)

MouseClick("Left",674,422)

Sleep(2000)

MouseClick("Left",674,422)

Sleep(2000)

MouseClick("Left",674,422)

Sleep(2000)

MouseClick("Left",674,422)

Sleep(2000)

MouseClick("Left",674,422)

Sleep(2000)

MouseClick("Left",674,422)

Sleep(2000)

MouseClick("Left",674,422)

Sleep(2000)

MouseClick("Left",674,422)

Sleep(2000)

MouseClick("Left",674,422)

Sleep(2000)

MouseClick("Left",674,422)

Sleep(2000)

MouseClick("Left",674,422)

Sleep(2000)

MouseClick("Left",674,422)

Sleep(2000)

MouseClick("Left",674,422)

Sleep(2000)

MouseClick("Left",674,422)

Sleep(2000)

MouseClick("Left",674,422)

Sleep(2000)

MouseClick("Left",674,422)

Sleep(2000)

MouseClick("Left",674,422)

Sleep(2000)

MouseClick("Left",674,422)

Sleep(2000)

MouseClick("Left",674,422)

Sleep(2000)

MouseClick("Left",674,422)

Sleep(2000)

MouseClick("Left",674,422)

Sleep(2000)

MouseClick("Left",674,422)

Sleep(2000)

MouseClick("Left",674,422)

Sleep(2000)

MouseClick("Left",674,422)

Sleep(3000)

MouseClick("Left",666,646)

SLeep(3000)

MouseClick("Left",548,656)

SLeep(5000)

MouseClick("Left",718,514)

SLeep(3000)

MouseClick("Left",806,240)

SLeep(3000)

MouseClick("Left",791,324)

SLeep(4000)

MouseClick("Left",641,459)

SLeep(3000)

MouseClick("Left",675,339)

SLeep(3000)

How and where do i put the code for it to repeat?

Link to comment
Share on other sites

  • Moderators

alohha,

Welcome to the AutoIt forum. Unfortunately you appear to have missed the Forum Rules on your way in. Please read them now and then you will understand why you will get no help and this thread will shortly be locked. :D

See you soon with a legitimate question I hope. :oops:

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

alohha,

Welcome to the AutoIt forum. Unfortunately you appear to have missed the Forum Rules on your way in. Please read them now and then you will understand why you will get no help and this thread will shortly be locked. :D

See you soon with a legitimate question I hope. :oops:

M23

Sorry, i will make sure i dont do this misstake next time. :rip:

Link to comment
Share on other sites

  • Moderators

alohha,

Sorry, i will make sure i dont do this misstake next time

Delighted to hear it. We will help you a huge amount if you post legitimate questions. Please do read those rules I linked to and abide by them. See you around. :D

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Here this will do, just put the rest (or whatever you want) at the ;... position.

The Hotkey to exit the script is set to {ESC}

HotKeySet("{ESC}", "Terminate")
While 1
MouseClick("Right",674,422)
MouseClick("Left",673,447)
Sleep(2000)
;...
;...
;...
MouseClick("Left",675,339)
SLeep(3000)
WEnd
Func Terminate()
    Exit 0
EndFunc
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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