Search found 70 matches

by zabros2020
Thu Aug 30, 2018 1:13 pm
Forum: Beginners
Topic: Dialogue with Multiple Buttons
Replies: 3
Views: 4045

Re: Dialogue with Multiple Buttons

I agree with Marcus...seperate subs But if you want to use one sub This code here does one sub for all buttons: //Set IGNORESPACES to 1 to force script interpreter to ignore spaces. //If using IGNORESPACES quote strings in {" ... "} //Let>IGNORESPACES=1 Dialog>Dialog1 object Dialog1: TForm Left = 51...
by zabros2020
Mon Oct 23, 2017 2:21 am
Forum: Enhancement Suggestions
Topic: XMLparse empty tag
Replies: 2
Views: 6327

Re: XMLparse empty tag

This is how i like to use xmlparse: Note: title for <book category="CHILDREN"> is empty and will return null with no error warning. Let>IGNOREERRORS=1 LabelToVar>XML,sXML XMLParse>sXML,/bookstore/book,val,numBooks Let>k=0 Repeat>k Let>k=k+1 XMLParse>sXML,/bookstore/book[%k%]/title/text(),val,len Mes...
by zabros2020
Mon Oct 23, 2017 12:39 am
Forum: General Discussion
Topic: Dealing with dynamic window names
Replies: 6
Views: 7451

Re: Dealing with dynamic window names

I see. It does sound like a simply task, but I can't seem to find a simple process for it. Unless Marcus builds us a new function that will get the info. I have refactored code to fix the issue you mentioned "I have noticed that it can reassign which is browser 1 or 2 depending on if another browser...
by zabros2020
Fri Oct 20, 2017 12:28 pm
Forum: General Discussion
Topic: Dealing with dynamic window names
Replies: 6
Views: 7451

Re: Dealing with dynamic window names

Hi Warren, Here is something i've come up with. Hope it helps with part of your solution :) To test it, open a few browser windows with multiple tabs for each one. 'Get the browser and tab handles and names GoSub>GetBrowserTabs 'to test, loop through all. Let>i=0 Repeat>i Add>i,1 Let>browserHandle=a...
by zabros2020
Sun Oct 01, 2017 6:32 am
Forum: Beginners
Topic: Do the MSG_ parameters work with the Input dialog?
Replies: 2
Views: 4000

Re: Do the MSG_ parameters work with the Input dialog?

you could also try this: 'VB VERSION '----------- VBSTART Function VBInput(xpos,ypos) MSGBOX xpos&" "&ypos 'InputBox(prompt[,title][,default][,xpos][,ypos][,helpfile,context]) VBInput = InputBox("PROMPT Please enter something","TITLE Enter something","DEFAULT Enter here",xpos,ypos) End Function VBEN...
by zabros2020
Thu Sep 14, 2017 7:03 am
Forum: Beginners
Topic: Looping Problem
Replies: 2
Views: 4126

Re: Looping Problem

something like: //Count Files in source directory for 1st file CountFiles>AF1\*.wav,WavCount1,0 //Open Marker List If>WavCount1>0 Press Alt Send>8 Release Alt Wait>1 MouseMoveRel>430,119 LClick Wait>1 Press Home //Copy Description of all tracks in first file Let>loop=0 Repeat>loop Press Tab *7 Press...
by zabros2020
Thu Sep 14, 2017 5:27 am
Forum: Beginners
Topic: Looping Problem
Replies: 2
Views: 4126

Re: Looping Problem

Hi RNIB, This seems to work fine for me. However, this bit of code CountFiles>AF1\*.wav,WavCount1,0 may be returning null for you. You have no statements to cater for this when WavCount1 is 0. If CountFiles returns 0, your loop will loop forever. Also, make sure that AF1 is a valid directory and abs...
by zabros2020
Thu Aug 24, 2017 1:17 am
Forum: Beginners
Topic: Check if Excel Sheet Exists
Replies: 2
Views: 4329

Re: Check if Excel Sheet Exists

what version of MS are you on? you could do this: //TEST Let>CurrProgram=C:\Users\Norzil\Desktop\Safeguards Payroll\2015\JANUARY\MONTH END SALARY.xlsx //TEST XLOpen>CurrProgram,1,xlBook XLGetSheetNames>%xlBook%,sNames Position>SEC,%sNames%,1,exists MessageModal>%exists% 'StringReplace>%sNames%,;,%CR...
by zabros2020
Wed Aug 23, 2017 5:03 am
Forum: Beginners
Topic: FindImagePos stops working after success
Replies: 1
Views: 3213

Re: FindImagePos stops working after success

Try this.... ScreenCapture>1167,167,1189,198,%TEMP_DIR%\screenrect.bmp //Find and Left Click Center of FindImagePos>%BMP_DIR%\image_2.bmp,%TEMP_DIR%\screenrect.bmp,15,1,XArr,YArr,NumFound If>NumFound>0 MouseMove>{%XArr_0%+1167},{%YArr_0%+167} LClick MouseMove>957,534 LClick Else GetActiveWindow>titl...
by zabros2020
Mon Aug 14, 2017 5:54 am
Forum: Technical / Scripting
Topic: Make Scripts wait their turn?
Replies: 2
Views: 3358

Re: Make Scripts wait their turn?

You could use an ini file to tell other scripts to wait... Somthing like this simply scenario. Depends how many scripts you have running determines complexity: 'call this sub when the script runs GoSub>MyTurn,mt1,1 'when done change to 0 for nex script to process GoSub>MyTurn,mt1,0 SRT>MyTurn Let>in...
by zabros2020
Wed Aug 09, 2017 4:26 am
Forum: Technical / Scripting
Topic: How to extract numeric value from captured text
Replies: 2
Views: 3360

Re: How to extract numeric value from captured text

Agree with JRL. You could parse using regex as starting point with something like this: Let>string=test_#getThis123_andThis456number#only from string Let>pattern=[+\d ]* RegEx>%pattern%,%string%,0,arrM,numM,0 Let>i=0 Let>sTmp= If>numM>0 Repeat>i Add>i,1 Concat>sTmp,arrM_%i% Until>i=%numM% EndIf Mess...
by zabros2020
Thu Jun 15, 2017 1:45 am
Forum: Technical / Scripting
Topic: MouseMove and LClick not working
Replies: 4
Views: 4974

Re: MouseMove and LClick not working

I've seen a similar issue occur when i do support for automations. Usually i have the user share their screen, as soon a a windows pop executes, if i have control. I cannot click it. You may be experiencing a similar issue. Maybe try using a SetFocus> using window handle or try click the object itse...
by zabros2020
Fri Apr 28, 2017 11:40 am
Forum: Technical / Scripting
Topic: Create Symlinks?
Replies: 5
Views: 5288

Re: Create Symlinks?

Welcome!
Yes, so simple yet so powerful.
Love how Macro Scheduler surprises us all with its powerful integration for Windows
by zabros2020
Fri Apr 28, 2017 6:02 am
Forum: Enhancement Suggestions
Topic: FindObject> return false instead of error msg
Replies: 2
Views: 8193

Re: FindObject> return false instead of error msg

Dorian (MJT support) wrote:Thank you for your suggestion. A possible workaround for this could be :

Let>IGNOREERRORS=1
FindObject>blah blah
Let>IGNOREERRORS=0
Hi Dorian,
A brilliant fellow by the name of Marcus pointed me in this direction also. (solved my issue)
thanks for the great support :)
by zabros2020
Fri Apr 28, 2017 5:45 am
Forum: Technical / Scripting
Topic: Create Symlinks?
Replies: 5
Views: 5288

Re: Create Symlinks?

Hi Phil....There is a way to do this...here is the code: '-------------------------- 'RUN COMMAND PROMPT HIDDEN '[RP_WINDOWMODE=0] 'By setting the RP_WINDOWMODE variable programs can be executed minimized, maximised, hidden or normal. 'RP_WINDOWMODE can be one of the following '0: Hidden 1: Normal (...
Sign up to our newsletter for free automation tips, tricks & discounts