cr7_

Mulltiple Scripts in One

4 posts in this topic

#1 ·  Posted

hello AutoIt Coders Experts etc , I have a problem and hope that here are some people to solve it . I have multiple Functions and want to run them at same time maybe a time delay so if function x = wrong do function y for example

 

if i make a new script.au3 file  for each function and run them it works :) but i dont want to run like 3 scripts at same time is there a way i can do all in on? e 

Share this post


Link to post
Share on other sites



#2 ·  Posted

cr7_,

Welcome to the AutoIt forums.

You probably can get all the scripts into a single one - but it would be best to post the code so we can see just what we have to do. When you post your code please use Code tags - see here how to do it.

M23


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

first au3 file

#include <ImageSearch2015.au3>
#include <MsgBoxConstants.au3>
$x1=0
$y1=0

$picture = "C:\Program Files (x86)\AutoIt3\ImageSearch2015\test1.bmp"
while 1
do
   $result = _ImageSearch($picture,1,$x1,$y1,0,0)
   ;_ImageSearch($findImage,$resultPosition,ByRef $x, ByRef $y ,$tolerance , $transparency = 0)

      ConsoleWrite($result)

   Until $result = 1;

      if $result = 1 Then

         MouseMove($x1,$y1, 0 )
         MouseClick("left" , $x1 , $y1 , 1 , 0)


      else

         MsgBox(0,"MSG","END")

         EndIf
      WEnd

$x1=0
$y1=0

$picture = "C:\Program Files (x86)\AutoIt3\ImageSearch2015\test2.bmp"
while 1
do
   $result = _ImageSearch($picture,1,$x1,$y1,0,0)
   ;_ImageSearch($findImage,$resultPosition,ByRef $x, ByRef $y ,$tolerance , $transparency = 0)

      ConsoleWrite($result)

   Until $result = 1;

      if $result = 1 Then

         MouseMove($x1,$y1, 0 )
         MouseClick("left" , $x1 , $y1, 1 , 0)


      else

         MsgBox(0,"MSG","END")

         EndIf
      WEnd
      
   second file 
   while 1

   MouseWheel("up",50)
   sleep(2500)

MouseWheel("down",50)

sleep(2500)


WEnd

third file

 

Share this post


Link to post
Share on other sites

#4 ·  Posted

i have to start these both to make it work :) how do i make it work in one  ?

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