cr7_ Posted March 22, 2017 Posted March 22, 2017 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
Moderators Melba23 Posted March 22, 2017 Moderators Posted March 22, 2017 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 Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
cr7_ Posted March 22, 2017 Author Posted March 22, 2017 expandcollapse popupfirst 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
cr7_ Posted March 22, 2017 Author Posted March 22, 2017 i have to start these both to make it work how do i make it work in one ?
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now