Jooshxp

How to Run 1 while once time, and the other repeatly

5 posts in this topic

Hello,

i wanna to ask somethings, i have a code like this :
 

HotKeySet ("{F1}", "start")
HotKeySet ("{F2}", "stop")

while 1

WEnd



Func start ()
   HotKeySet ("{1}", "aoj")
   HotKeySet ("{2}", "seal")
   HotKeySet ("{3}", "fiber")
EndFunc

Func aoj ()
while 1 = 1
   MouseClick ( "Left", 314, 89 )
   Sleep (300)
   Send("^a")
   sleep (300)
   Send ("Aura of Jackpot")
   Sleep (300)
   MouseClick ( "Left", 235, 123 )
   Sleep (300)
   Send ("{ENTER}")
   Sleep (500)
   Send ("{ENTER}")
   Sleep (300)
   MouseClick ( "Left", 556, 138 )
   Sleep (750)
   MouseClick ( "Left", 614, 410 )
   Sleep (750)
   Send ("{ENTER}")
   Sleep (750)
   Send ("{ENTER}")
   Sleep (5500)
WEnd
EndFunc

Func fiber ()
while 1 = 1
   MouseClick ( "Left", 314, 89 )
   Sleep (300)
   Send("^a")
   sleep (300)
   Send ("Synchro Fiber")
   Sleep (300)
   MouseClick ( "Left", 235, 123 )
   Sleep (300)
   Send ("{ENTER}")
   Sleep (500)
   Send ("{ENTER}")
   Sleep (300)
   MouseClick ( "Left", 556, 138 )
   Sleep (750)
   MouseClick ( "Left", 614, 410 )
   Sleep (750)
   Send ("{ENTER}")
   Sleep (750)
   Send ("{ENTER}")
   Sleep (5500)
WEnd
EndFunc

Func seal ()
while 1 = 1
   MouseClick ( "Left", 314, 89 )
   Sleep (300)
   Send("^a")
   sleep (300)
   Send ("Warranty Seal")
   Sleep (300)
   MouseClick ( "Left", 235, 123 )
   Sleep (300)
   Send ("{ENTER}")
   Sleep (500)
   Send ("{ENTER}")
   Sleep (300)
   MouseClick ( "Left", 556, 138 )
   Sleep (750)
   MouseClick ( "Left", 614, 410 )
   Sleep (750)
   Send ("{ENTER}")
   Sleep (750)
   Send ("{ENTER}")
   Sleep (5500)
WEnd
EndFunc

Func stop ()
   Exit
EndFunc

I wanna to run once from

MouseClick ( "Left", 314, 89 )
   Sleep (300)
   Send("^a")
   sleep (300)
   Send ("Aura of Jackpot")
   Sleep (300)
   MouseClick ( "Left", 235, 123 )
   Sleep (300)

and the other script will run repeatly,

how to do that ? can i ?

and how to run func 1 while func 2 running, ?

thank's

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Jooshxp,

I see "Aura of Jackpot" in that code - which Google tells me is a casino game. Are you trying to bot a game, because if so I suggest you read the Forum rules where it is made quite clear that we do not support such requests.

M23

Edited by Melba23
Fixed link

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______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

 

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

@Melba23

No, it's not a Casino Game for Sure, :)

i just want to create a macros for game and it's not a full bot, it just macro to buy some items on the market, it is a violate the rules ? if so, i'm sorry :)

Edited by Jooshxp

Share this post


Link to post
Share on other sites

Should add something to the forum so that before a user can make their first post they have to read the forum rules and answer the question "Can you ask for help automating games on the AutoIt forums?"

Share this post


Link to post
Share on other sites

Jooshxp,

It still counts as "game interaction" - and so not allowed. Thread locked.

InunoTaishou,

People still argue after we point them at the rules - as is the case here - so what makes you think they would pay any attention to a registration question? Botters always claim that they are a "special case" - with which classification I entirely agree, although not quite in the sense they mean it.

M23

1 person likes this

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______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

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.