Cheers,
I'd found and used the MACRO_RESULT bit, it's the Separate function I hadn't found, need to pass more than one variable, hopefully I'll be able to now.
Thanks
Search found 15 matches
- Tue Apr 18, 2006 5:04 pm
- Forum: Technical / Scripting
- Topic: Pass variables between scripts
- Replies: 3
- Views: 6016
- Tue Apr 18, 2006 4:37 pm
- Forum: Technical / Scripting
- Topic: Pass variables between scripts
- Replies: 3
- Views: 6016
Pass variables between scripts
Hi All, Could anyone suggest how I can launch script B from script A and use any values generated in script B in script A? So Script A is like "... Do some stuff..." Macro>C:\ScriptB "... Do some stuff involving ProductName..." ScriptB is like VBSTART "...open a file and retrieve a value calling it ...
- Mon Feb 27, 2006 7:17 pm
- Forum: Technical / Scripting
- Topic: Error using ini file
- Replies: 2
- Views: 4197
- Mon Feb 27, 2006 11:01 am
- Forum: Technical / Scripting
- Topic: Error using ini file
- Replies: 2
- Views: 4197
Error using ini file
Hi, I would like to use an ini file to start multiple scripts running at the same time. I found a very useful document on your website that explained how to do it. However I keep getting an error message when running the script "opEq not allowed here" //Wait for run flag Let>inifile=Z:\TestFlag\Test...
- Thu Feb 23, 2006 3:02 pm
- Forum: Technical / Scripting
- Topic: Image Library Error
- Replies: 9
- Views: 10012
- Thu Feb 23, 2006 12:42 pm
- Forum: Technical / Scripting
- Topic: Image Library Error
- Replies: 9
- Views: 10012
The image file exists, and is in the location specified C:\ I downloaded the imglib.exe a few days ago, it is version 6.0.1.4 The error occurs on line: LibFunc>imglib,CompareBitmaps,match,C:\Close.bmp,C:\screen2.bmp CompareBitmaps can't return -1 because the script never gets that far. Sometimes tho...
- Thu Feb 23, 2006 12:01 pm
- Forum: Technical / Scripting
- Topic: Image Library Error
- Replies: 9
- Views: 10012
The code: Let>imglibDLL=C:\Program Files\Macro Scheduler Image Library\imglib.dll LibLoad>imglibDll,imglib Wait>DLA ScreenCapture>708,679,764,699,C:\screen2.bmp LibFunc>imglib,CompareBitmaps,match,C:\Close.bmp,C:\screen2.bmp Wait>DLA LibFree>imglib Personally I felt the question didn't require code....
- Thu Feb 23, 2006 11:25 am
- Forum: Technical / Scripting
- Topic: Image Library Error
- Replies: 9
- Views: 10012
Image Library Error
Hi, I Have just installed both Macro Scheduler and the Image Library on a new computer. I have also copied and pasted my working scripts to the new computer, but now they don't work. Whilst in a bit of code that uses image recognition I get this error: "Exception EInvalidGraphicOperation in module i...
- Tue Feb 21, 2006 11:08 am
- Forum: Technical / Scripting
- Topic: Relational Operators
- Replies: 6
- Views: 7918
- Tue Feb 21, 2006 11:04 am
- Forum: Technical / Scripting
- Topic: Relational Operators
- Replies: 6
- Views: 7918
- Tue Feb 21, 2006 10:31 am
- Forum: Technical / Scripting
- Topic: Relational Operators
- Replies: 6
- Views: 7918
Relational Operators
Hi,
I can't get the code below to work:
Let>P_Item=35
Random>100,R2
If>R2C:\Rec.txt,Res,Step2
Macro>C:\ItemSearch.scp
Endif
The If statement is never entered, even if R2 is less then or equal to 35. What do I need to do differently?
All help much appreicated
I can't get the code below to work:
Let>P_Item=35
Random>100,R2
If>R2C:\Rec.txt,Res,Step2
Macro>C:\ItemSearch.scp
Endif
The If statement is never entered, even if R2 is less then or equal to 35. What do I need to do differently?
All help much appreicated
- Thu Feb 16, 2006 1:20 pm
- Forum: Technical / Scripting
- Topic: Missing something
- Replies: 7
- Views: 9070
Ah, I do apologise you are right. Replacing the one with Res fixed the problem. Thankyou. Since the WriteLn command was always succesful 1 was being set to zero. This in itself confuses me, I am relatively new to coding but have learnt the basics of VB and Java. Am I right in thinking that in those ...
- Thu Feb 16, 2006 9:13 am
- Forum: Technical / Scripting
- Topic: Missing something
- Replies: 7
- Views: 9070
The last "WriteLn>" statement records the value of TT, it always 0, not larger than 3 as you suggest it would be, always Zero, nought. Somehow the value of TT is being set to 0. Further, if the "Until>" line is changed to read "Until>TT>3" the code still repeats indefinietly. I appreciate you trying...
- Wed Feb 15, 2006 5:07 pm
- Forum: Technical / Scripting
- Topic: Missing something
- Replies: 7
- Views: 9070
- Wed Feb 15, 2006 2:30 pm
- Forum: Technical / Scripting
- Topic: Missing something
- Replies: 7
- Views: 9070
Missing something
Hi people, I have just started using Macro Scheduler. I am currently having problems with a loop. I have read all the other posts about issues with loops but have not been able to solve the problem. The code is as shown below: Let>P_PriceQuery=10 Let>P_Refund=20 Let>TT=0 Macro>C:\Program Files\MJT N...