Search found 44 matches

by theonex
Mon Mar 09, 2020 8:57 pm
Forum: Beginners
Topic: passing numeric variable in a file name
Replies: 1
Views: 2856

passing numeric variable in a file name

Hello, I have a problem which i need some assistance in.. basically i have an OCR code that captures some random numbers from the web "OCRArea>694,184,793,218,strText" works perfect it always does the job the captured numbers are stored in a variable "strText" if i use Message>%strText% the numbers ...
by theonex
Mon Mar 12, 2018 4:18 am
Forum: Technical / Scripting
Topic: Possible to kill macro after set duration? - SOLVED
Replies: 10
Views: 10455

Re: Possible to kill macro after set duration? - SOLVED

Hello, I have been using JRL`s Custome onevent and it works great it does the job of restarting the script if for any reason the application you are controlling hangs and a given amount of time passes. However i is it possible to use to custom time based onevent handlers? e.g /////////////////////Re...
by theonex
Thu Sep 21, 2017 10:02 am
Forum: Technical / Scripting
Topic: Possible to kill macro after set duration? - SOLVED
Replies: 10
Views: 10455

Re: Possible to kill macro after set duration? - SOLVED

just wanted to update the post i did mange to solve the issue. I had the 2 codes mixed so there was these 2 lines missing from my code If>TimerFlag=0 Let>TimerFlag=1 If you have the Endif after the Exit>0 line the script is not exited but it stops so putting the Endif before the Exit>0 line works gr...
by theonex
Wed Sep 20, 2017 8:52 pm
Forum: Technical / Scripting
Topic: Option to randomly click on different positions of an image
Replies: 3
Views: 3490

Re: setting findimagepos as a variable

Thanks once again JRL it feels like your a mind reader. My apologies Marcus i know my question wasn't really clear. so here is what i was trying to achieve and thanks to JRL's answer i was able to fix my initial script. Let>Names[1]=0 Let>Names[2]=1 Let>Names[3]=2 Let>Names[4]=3 Let>Names[5]=4 Let>N...
by theonex
Wed Sep 20, 2017 10:31 am
Forum: Technical / Scripting
Topic: Option to randomly click on different positions of an image
Replies: 3
Views: 3490

Option to randomly click on different positions of an image

how to set the findimagepos line as a variable, where the variable is generated randomly? i want to achieve a random positional clicks i have attached a sample script. /////////////////////////////////////////////////////////////////////////// Let>Names[1]=FindImagePos>%BMP_DIR%\image_1.bmp,SCREEN,0...
by theonex
Tue Sep 19, 2017 10:08 pm
Forum: Technical / Scripting
Topic: SWbemObectEx:-2147217406 ERROR
Replies: 1
Views: 2752

SWbemObectEx:-2147217406 ERROR

hello i have fallen victim to the following error SWbemObectEx:-2147217406. I am not sure if it can be replicated but i get it quiet often when i run some of my scripts. I have attached a copy of a simplified script that also gives this error. VBSTART Sub killProcess(pgm) set wmi = getobject("winmgm...
by theonex
Tue Sep 19, 2017 5:37 pm
Forum: Technical / Scripting
Topic: if file exists and is older than x hours
Replies: 8
Views: 7165

Re: if file exists and is older than x hours

works like a charm.


once again thank you so much for all the time you spent helping me get this right.
by theonex
Tue Sep 19, 2017 5:05 pm
Forum: Technical / Scripting
Topic: if file exists and is older than x hours
Replies: 8
Views: 7165

Re: if file exists and is older than x hours

almost there i really appreciate your patience. i am still in testing phase. when i do this the code works fine Let>vFile=abc_todays date IfFileExists>vFile FileDate>vFile,vFileDate MidStr>vFileDate,1,4,yyyy MidStr>vFileDate,5,2,mm MidStr>vFileDate,7,2,dd FileTime>vFile,vFileTime MidStr>vFileTime,1,...
by theonex
Tue Sep 19, 2017 2:30 pm
Forum: Technical / Scripting
Topic: if file exists and is older than x hours
Replies: 8
Views: 7165

Re: if file exists and is older than x hours

I really appreciate your time JRL. The naming convention used is as follows and since the naming always changes i would need the code to detect this. abc_17092017 abc_18092017 abc_19092017 the above naming would be what the patch file generates at the end of the exe script the time that the txt file...
by theonex
Tue Sep 19, 2017 8:56 am
Forum: Technical / Scripting
Topic: if file exists and is older than x hours
Replies: 8
Views: 7165

Re: if file exists and is older than x hours

hello JRL i really appreciate your help and assitance with this. i have a patch file that is run at the very end of my exe script. if the patch file is triggered it means the script ran successfully in which the patch file creates a notepad file e.g abc_todays date. i want to check if abc_todays dat...
by theonex
Sun Sep 17, 2017 5:30 pm
Forum: Technical / Scripting
Topic: Possible to kill macro after set duration? - SOLVED
Replies: 10
Views: 10455

Re: Possible to kill macro after set duration? - HELP

Hello i know this post was solved and closed but i need a little help understanding it i am using notepad as an example. i should have 2 possible end results. option 1 text in notepad is found and script is complete with message>process complete. if text is not found i would like the notpad to be cl...
by theonex
Sat Aug 19, 2017 11:02 am
Forum: Technical / Scripting
Topic: if file exists and is older than x hours
Replies: 8
Views: 7165

if file exists and is older than x hours

Hi to all


I know how to use the iffileexists statment but i was wondering if there was a way to check if a file exists and is older than x hours.

e.g
iffileexists>test.text
check if file is older than x hours
if yes do something
else
do something else
endif
by theonex
Fri Dec 23, 2016 2:05 pm
Forum: Scripts and Tips
Topic: comma
Replies: 6
Views: 13270

Re: comma

Let>Equal==

will this work as the above example?
by theonex
Mon Dec 05, 2016 10:48 pm
Forum: Scripts and Tips
Topic: comma
Replies: 6
Views: 13270

Re: comma

thanks again JRL really appreciate it
by theonex
Mon Dec 05, 2016 8:59 pm
Forum: Scripts and Tips
Topic: comma
Replies: 6
Views: 13270

Re: comma

hey JRL

thanks for your previous answer really appreciate it similar problem this time with -.
how do i solve that?

i think this should be the last puzzel in the jigsaw.

thank you in advance
Sign up to our newsletter for free automation tips, tricks & discounts