Search found 9 matches

by jonathangoss
Thu Nov 21, 2024 7:32 pm
Forum: Technical / Scripting
Topic: Issue with Multiple While Commands?
Replies: 6
Views: 154

Re: Issue with Multiple While Commands?

hi I am also recommending you do your own logging Note - you can end up with war and peace and Marcus who owns MJT Net has sometimes laughed out loud when he has seen my log files :D e.g = something like this: Day>the_day Month>the_month Year>the_year let>LogFileNamelogfile=E:\ConsultantConnectERS\L...
by jonathangoss
Thu Nov 21, 2024 12:01 pm
Forum: Technical / Scripting
Topic: Issue with Multiple While Commands?
Replies: 6
Views: 154

Re: Issue with Multiple While Commands?

hi
I would echo what Dorian says there - even having your own custom log file - so you can track down exactly where your script is going off piste.
Like he says - a bit of a pain and slow to setup - but worth it for this type of troubleshooting on such a big macro
thx
Jon
by jonathangoss
Wed Oct 09, 2024 12:50 pm
Forum: Technical / Scripting
Topic: Execute Chrome in incognito window
Replies: 1
Views: 1302

Re: Execute Chrome in incognito window

Hi This should do what you need. Hope it helps. thanks. Jon //Set IGNORESPACES to 1 to force script interpreter to ignore spaces. //If using IGNORESPACES quote strings in {" ... "} //Let>IGNORESPACES=1 Let>CHROMEDRIVER_EXE="C:\chromedriver.exe" //C:\Users\jonagoss\AppData\Local\Google\Chrome\User Da...
by jonathangoss
Fri Mar 01, 2024 3:38 pm
Forum: Technical / Scripting
Topic: FindImagePos return_offset 1 (center) not working
Replies: 2
Views: 5213

Re: FindImagePos return_offset 1 (center) not working

hi
can you post your code and a screenshot of the image and where it sends the resulting mouse?
for reference, mine does this:

FindImagePos>%SCRIPT_DIR%\testing.bmp,SCREEN,0,1,XArr,YArr,NumFound,CCOEFF
MouseMove>XArr_0,YArr_0
wait>5

and therefore correctly moves the mouse to the middle of the image
by jonathangoss
Thu Feb 29, 2024 3:06 pm
Forum: Technical / Scripting
Topic: File Format Conversion and compression through window command.
Replies: 5
Views: 8137

Re: File Format Conversion and compression through window command.

agree with Dorian there. We use the following in a loop to covert multipage tiff to PDF: runprogram>%ImageMagikLocation%convert %varImageMagickFileNames% %workingDir%\%varOriginalFileName% TimeStamp>%LogFileName%,RP_RESULT is %RP_RESULT% with ZERO being successful wait>2 SetDialogProperty>Dialog22,L...
by jonathangoss
Thu Feb 29, 2024 2:59 pm
Forum: Technical / Scripting
Topic: Setting Screen Resolution
Replies: 4
Views: 6461

Re: Setting Screen Resolution

hi there
we include this in our scripts:

Macro code is:
Let>RP_WAIT=1
Run>"%SCRIPT_DIR%\qres" /x:1920 /y:1080
Let>RP_WAIT=0

using qres.exe
Hope that helps!
by jonathangoss
Fri Sep 21, 2012 3:26 pm
Forum: Technical / Scripting
Topic: Fields Count varibale with an IF statement
Replies: 4
Views: 4725

Fields Count

Thank you! :lol:
by jonathangoss
Tue Sep 18, 2012 2:52 pm
Forum: Technical / Scripting
Topic: Fields Count varibale with an IF statement
Replies: 4
Views: 4725

Fields Count varibale with an IF statement

hi - thanks for the code - tried this - but same result?
by jonathangoss
Fri Sep 07, 2012 8:45 am
Forum: Technical / Scripting
Topic: Fields Count varibale with an IF statement
Replies: 4
Views: 4725

Fields Count varibale with an IF statement

Hi Having a few problems with getting my script to goto the correct label if the FIELDS_COUNT variable is set to 0 * This is to cover me if the first line of my text file is blank (which it can be) even though lines 2 and 3 etc do contain data My code is this: IF>TheFileData_FIELDS_COUNT=0 Then Goto...
Sign up to our newsletter for free automation tips, tricks & discounts