Search found 426 matches

by gdyvig
Tue Nov 01, 2011 6:13 pm
Forum: General Discussion
Topic: Macro Scheduler on servers, diskless workstations, Citrix.
Replies: 1
Views: 8885

Macro Scheduler on servers, diskless workstations, Citrix.

Hi, I have been away from testing and automation for a while, but now my job brings me back to it. We have moved to an environment where all of our users are on diskless workstations running under Windows 7. The actual client applications are published on Citrix. Previously we had our Macro Schedule...
by gdyvig
Mon Sep 13, 2010 2:11 pm
Forum: Technical / Scripting
Topic: GetDate/time on win7 different form regional sys settings?
Replies: 9
Views: 11773

Perhaps it is a Delphi error on which Macro Scheduler is based. Google on "delphi windows 7 regional settings" and you will find some articles on delphi ignoring some date/time settings.

Gale
by gdyvig
Sun Aug 15, 2010 6:06 pm
Forum: Beginners
Topic: Getting name of window that just opened
Replies: 2
Views: 4129

Hi nOrm41,

Here is what you want:

Code: Select all

GetActiveWindow>window_title,X,Y,Width,Height
MDL:Actve window title: %window_title%
MDL:Active window located at: X:%X% Y:%Y%
MDL:Active window size: Width:%Width% Height:%Height%
All of the parms are variables for the function to return information.


Gale
by gdyvig
Sat Aug 14, 2010 4:35 pm
Forum: General Discussion
Topic: Using MODI OCR to click on text
Replies: 13
Views: 26075

Hi cyberiguana, You would get the invalid number of arguments if you used the VBEval statement modified in my response to Kikk but with the original version of DoOCRGetWordNum. Original: VBEval>DoOCRGetWordNum("%sImage%","%sTargetWord%"),nWord Version 2: VBEval>DoOCRGetWordNumV2("%sImage%","%sTarget...
by gdyvig
Fri Aug 13, 2010 3:03 pm
Forum: Technical / Scripting
Topic: Scope rules for reading localvariables after LOCALVARS=0?
Replies: 2
Views: 4312

Hi Dick, In beta testing local variables were always available prior to leaving the SRT. Global variables were always available both inside and outside the SRT. SRT>sub let>LOCALVARS=1 let>K=1 let>LOCALVARS=0 // is result always equal to the value of the local K of the subroutine? let>result=k MDL>s...
by gdyvig
Thu Aug 12, 2010 2:55 pm
Forum: General Discussion
Topic: Using MODI OCR to click on text
Replies: 13
Views: 26075

Hi cyberiguana, You will probably want to take the sample code and put it in a Macro Scheduler subroutine. You will need to use the ScreenCapture command to get the image file (stored in the sImage variable). The ScreenCapture command lets you define the upper left corner of the screen and the width...
by gdyvig
Thu Aug 12, 2010 2:22 pm
Forum: Technical / Scripting
Topic: *SOLVED* Debug watch list stops updating after LOCALVARS=0
Replies: 5
Views: 6278

Hi Dick, I tried it and it is working as expected. The local variables are updated in the watchlist but are cleared out after the script leaves the subroutine. Put a wait>10 in the last statement of proc and run in trace mode. You will see: 1. port appears 2. n appears 3. localArray appears 4. globa...
by gdyvig
Wed Aug 11, 2010 8:35 pm
Forum: Technical / Scripting
Topic: Subroutine/Label XXX Not Found!
Replies: 7
Views: 8728

I think I figured it out. This is valid for uncompiled scripts only: ChangeDirectory>%parmDir% Include>parm.scp ChangeDirectory>c:\mjt Include>mjtlib.scp ChangeDirectory>%SCRIPT_DIR% When compiling a macro, your script must look like this: Include>c:\parms\parm.scp Include>c:\mjtlib\mjtlib.scp Or mo...
by gdyvig
Wed Aug 11, 2010 5:26 pm
Forum: Technical / Scripting
Topic: Subroutine/Label XXX Not Found!
Replies: 7
Views: 8728

I am getting this error for compiled scripts under v11. I can't find any comments like the known problem: /* // single line comment within a comment start block not allowed But I do have: /* // comment // comment (code) */ and /* ' vb comment ' vb comment */ Are these commenting OK? Do I look in the...
by gdyvig
Fri Aug 06, 2010 3:00 pm
Forum: Technical / Scripting
Topic: VB Timer returns string?? i need integer!
Replies: 6
Views: 7305

Hi rblack, Make sure you have used Edit>Remove Trailing Spaces to ensure all of your variable names and variable values are what you expect. Sometimes a contaminated variable value can be fixed as follows: //variables intended to be numeric but may contain some extra characteres causing MS to interp...
by gdyvig
Thu Jul 29, 2010 2:21 pm
Forum: Beginners
Topic: OCRing for text, dependent on outcome copy file to folder
Replies: 1
Views: 3626

Hi BlackDevilDisco, This may help: http://www.mjtnet.com/blog/2009/08/11/find-and-click-on-screen-text-with-modi/ MODI returns an array of the words it OCR'd and their coordinate positions within the bitmap file. In the example in the URL the script finds the coordinates of a word, moves the mouse t...
by gdyvig
Fri Jul 23, 2010 2:25 pm
Forum: Technical / Scripting
Topic: What can cuase this while loop to fail, while condition true
Replies: 10
Views: 10605

The Repeat and While statements currently require a variable to compare against a simple or complex expression. Try this: Let>i=0 Let>nFiles=10 Let>waitBreak=0 Let>whileBeforeValue=TRUE while>whileBeforeValue={(%i%<%nFiles%) AND (%waitBreak%=0)} mdl>within the while add>i,1 EndWhile mdl>we are out T...
by gdyvig
Fri Jul 23, 2010 2:08 pm
Forum: General Discussion
Topic: Autologon with Remote Desktop
Replies: 2
Views: 7211

Hi David, When you minimize or close a RDP session the OS thinks now one is watching so why bother displaying the desktop UI. It also does this for security reasons. No UI based automation tool will work - the keyboard, mouse, windows controls, and display do not exist.Try doing a screencapture - it...
by gdyvig
Mon Jul 19, 2010 9:42 pm
Forum: Technical / Scripting
Topic: What can cuase this while loop to fail, while condition true
Replies: 10
Views: 10605

You have 800 lines of code in your real script. There may be a syntax error in there somewhere. Make sure all of your braces, brackets, paranthesis, and quotes balance. Otherwise the script will run out of code before finding the EndWhile statement.

Gale
by gdyvig
Mon Jul 19, 2010 1:02 pm
Forum: Technical / Scripting
Topic: What can cuase this while loop to fail, while condition true
Replies: 10
Views: 10605

The help for WHILE does refer you to REPEAT and UNTIL for the forms the expression may take. It is looking for a variable and a value.

Did you try something like this?

Code: Select all


Let>whileval={complex expression}
While>whileval=TRUE
   Let>whileval={complex expression}
   do something
Endwhile
Gale
Sign up to our newsletter for free automation tips, tricks & discounts