Search found 438 matches

by adroege
Wed May 19, 2010 12:28 pm
Forum: Beginners
Topic: getting text location
Replies: 20
Views: 17762

FindImagePos command returns the number of matches found

FindImagePos>bitmap_to_find,bitmap_to_scan|SCREEN,color_tolerance,return_center,X_Array,Y_Array,NumFound
In the FindImagePos> command:
NumFound returns the number of matches found.

This should let you know how many array variables
have been created.
by adroege
Wed May 19, 2010 11:09 am
Forum: Beginners
Topic: getting text location
Replies: 20
Views: 17762

image recognition

what would be the easiest way? This still depends upon what you are going to do once you find the text. Now that I hear it is a webpage you have yet another way. You can simply retrieve the entire webpage using HTTPRequest> command and parse the returned HTML using RegEx> (regular expressions). Is ...
by adroege
Tue May 18, 2010 10:43 pm
Forum: Beginners
Topic: Run macro in Visio 2007 every 5 min.
Replies: 2
Views: 5980

repeat operation every 5 min

repeat this operation every 5 min.?
Label>Loop

... your macro lines go here
...
...
//300 seconds is 5 minutes
Wait>300
Goto>Loop
by adroege
Tue May 18, 2010 10:08 pm
Forum: Technical / Scripting
Topic: Selecting Data Sources For Variables By User Form - Word2007
Replies: 9
Views: 8056

What is a bookmark? A bookmark is an item or location in a document that you identify and name for future reference. You can use bookmarks to quickly jump to a specific location, create cross-references, mark page ranges for index entries, and so on. I don't understand your use of a bookmark accord...
by adroege
Tue May 18, 2010 8:53 pm
Forum: Technical / Scripting
Topic: Running the automated testing in background?
Replies: 5
Views: 18042

testing inside a virtual machine

1) Can we run automated test execution in the background and do other works? But here the execution needs to focus the application window under testing most of the time. What I do is have my testing machine virtualized in a VMWare session. I then connect to that virtual machine with Remote Desktop ...
by adroege
Tue May 18, 2010 7:22 pm
Forum: Beginners
Topic: getting text location
Replies: 20
Views: 17762

find text on screen

Image recognition should be able to do it. Also, what type of on-screen control is the text in? It's possible that GetControlText> can also read the text directly out of the control faster and with less chance of error. Another technique I have used before is to (using keyboard commands) highlight t...
by adroege
Tue May 18, 2010 6:34 pm
Forum: General Discussion
Topic: creating a license for exe's
Replies: 1
Views: 3326

make a licensing scheme for compiled apps

I don't believe there is a built-in mechanism for this. You need to come up with your own algorithm and implement it. There are many ways to do this. Some simple.... some not so simple.... just depends what is appropriate in your situation. Here is just one thought.... Make the compiled app look for...
by adroege
Tue May 18, 2010 5:55 pm
Forum: Technical / Scripting
Topic: Substring Command Error
Replies: 3
Views: 5258

check with length before doing a midstr function

Something like this perphaps? I think your csv file possibly has a blank line at the end, or just an extra CRLF. So this should check for that condition [code] Let>A2=Array2_%x% Length>A2,A2_Length If>A2_Length>20 MidStr>%A2%,14,7,ArrayMid If>%ArrayMid%=Array1_%k% Let>Found=True Goto>Search_x Endif ...
by adroege
Tue May 18, 2010 3:24 pm
Forum: Technical / Scripting
Topic: Substring Command Error
Replies: 3
Views: 5258

I think your hard coded numbers of 14 and 7 in the following command: MidStr>%A2%,14,7,ArrayMid Might be invalid depending upon what the data looks like. Try using the Length> command to make some comparisons and be sure that you are not referencing positions in the string which don't exist..... lik...
by adroege
Tue May 18, 2010 12:18 pm
Forum: Beginners
Topic: Help removing space from a value
Replies: 3
Views: 10102

trim removes trailing spaces

The problem with StringReplace is that it removes embedded spaces as well which could be a problem. RTrim only removes the trailing spaces. [code] VBStart VBEnd Let>part3=program files%SPACE% //This removes ALL spaces //StringReplace>part3,SPACE,,part3 //Escape the double quotes if necessary StringR...
by adroege
Mon May 17, 2010 10:43 pm
Forum: Technical / Scripting
Topic: Comparing 2 Lists
Replies: 10
Views: 7918

search arrays for items in list

Try This. I think it is bad programming practice to use Goto to jump outside of a subroutine. Better to let the subroutine end and then test to see what happened after the code resumes after the Gosub. I also think you needed to use a delimiter of CRLF instead of just CR. [code] ReadFile>C:\List1.tx...
by adroege
Mon May 17, 2010 8:30 pm
Forum: Technical / Scripting
Topic: Selecting Data Sources For Variables By User Form - Word2007
Replies: 9
Views: 8056

You have to make sure that the Word window has the focus before sending keystrokes using Send> SetFocus>Put Your Window Title Here Wait>1 Send>rsSheet1_1_2 Press Enter Notice that the Press command does NOT have a greaterthan symbol after it. Read the online help to see how to use the * (wildcard) c...
by adroege
Mon May 17, 2010 5:45 pm
Forum: Technical / Scripting
Topic: Comparing 2 Lists
Replies: 10
Views: 7918

Try reading in the lists to an array. Then create a subroutine which loops through every array item looking for a match with the passed in parameter. The main logic would be: 1. Read each line in list1 (at EOF quit) 2. execute the subroutine looking for that number in array2 (list2) 3. If it doesn't...
by adroege
Mon May 17, 2010 5:17 pm
Forum: Technical / Scripting
Topic: Comparing 2 Lists
Replies: 10
Views: 7918

Try the following:

C:\>fc /LB1 list1.txt list2.txt


You may need to experiment with the parameters a bit to get
what you are after.


Issue the command C:\>FC /? to get a list of all the parms
by adroege
Mon May 17, 2010 5:07 pm
Forum: Technical / Scripting
Topic: Comparing 2 Lists
Replies: 10
Views: 7918

compare lists with fc (file compare)

Is order significant in comparing the lists?

Are the lists in sorted order to begin with?


Try running the DOS command FC on the two text files
and examining the output


Is this similar to what you are looking for?

i.e.
C:\>fc list1.txt list2.txt
Sign up to our newsletter for free automation tips, tricks & discounts