Search found 267 matches

by Jerry Thomas
Tue Mar 18, 2014 5:08 pm
Forum: Technical / Scripting
Topic: 14.1 Bug: UIGetAccessibleList
Replies: 7
Views: 5260

Thanks Marcus,

As we all know, Whats the best way to find bugs? Release the software!

Help updates coming also?
by Jerry Thomas
Tue Mar 18, 2014 4:28 pm
Forum: Technical / Scripting
Topic: Random, .. not so random?
Replies: 4
Views: 4542

Setting the seed WILL always give you the same number. It is supposed to. Typically, with seed not set, the seed is determined through some date and time stamp(?) or some other wildly variable choice. The numbers that are generated after setting the seed should be random but those numbers will be th...
by Jerry Thomas
Tue Mar 18, 2014 4:23 pm
Forum: Technical / Scripting
Topic: 14.1 Bug: UIGetAccessibleList
Replies: 7
Views: 5260

14.1 Bug: UIGetAccessibleList

I just installed 14.1 and ran into a problem where UIGetAccessibleList seems to not be supported even though it is shown in the CodeBuilders list of commands. Clicking on it does open a dialog like the other commands do. Typing it in, there is no auto detect (ie; turn green). The other UI... command...
by Jerry Thomas
Mon Feb 17, 2014 4:33 pm
Forum: Technical / Scripting
Topic: Checking to see if other scripts are running
Replies: 7
Views: 6497

Just write to an INI file that both scripts have access to.

Script B just checks the entry every so often and if Script A has set the flag to 'Finished' (however you define that), then it runs, else loop again

The Read /Write INI files commands are solid and very easy to use.
What could be simpler?
by Jerry Thomas
Mon Dec 02, 2013 5:04 pm
Forum: Technical / Scripting
Topic: MidStr doesn't work for single character
Replies: 5
Views: 4852

Previous message was supposed to be

This cleared up another problem I was having where
Let>cnt=cnt+1 wasn't working.

Thanks again!
by Jerry Thomas
Mon Dec 02, 2013 3:15 pm
Forum: Technical / Scripting
Topic: MidStr doesn't work for single character
Replies: 5
Views: 4852



Thanks Marcus!
by Jerry Thomas
Mon Dec 02, 2013 2:50 pm
Forum: Technical / Scripting
Topic: MidStr doesn't work for single character
Replies: 5
Views: 4852

Yes if I say "Let>ElementCount=Macro" that works fine.
Only if I am grabbing screen text, it doesn't work.

(I know it shouldn't matter but I am seeing that it does make a difference.)
by Jerry Thomas
Wed Nov 27, 2013 10:16 pm
Forum: Technical / Scripting
Topic: MidStr doesn't work for single character
Replies: 5
Views: 4852

MidStr doesn't work for single character

I am grabbing some text from the screen and then selecting the character that should be a number (testing for not equal 0). The problem is that MidStr does not work for just 1 character for this text. If I say Let>MyText=abc, then it works fine. Bug? This example looks for the word Macro in the titl...
by Jerry Thomas
Fri Oct 18, 2013 3:26 pm
Forum: Beginners
Topic: make script to choice
Replies: 3
Views: 5615

I want to understand what you are trying to do...

Do you mean
0= 0%
1=4%
2=8%
3=12%
4=16%
5=20%
6=24%
7=28%
8=32%
9=36%

Then, how many of the numbers entered were:
=4%
<=8%
<=12%
<=16%
etc

Is this correct?
by Jerry Thomas
Mon Oct 07, 2013 2:36 pm
Forum: Enhancement Suggestions
Topic: GetTextPosInWindow
Replies: 0
Views: 6398

GetTextPosInWindow

I love the the GetTextPos command. What about a variation that is window specific? That would speed things up quite a bit. GetTextPos(WinTitle(or Handle),Text,Left,Top,Right,Bottom,Relative(Window or screen)) Or, if the user could provide a specified area GetTextPos(Text,LookLeft,LookTop,LookRight,L...
by Jerry Thomas
Tue Oct 01, 2013 3:09 pm
Forum: General Discussion
Topic: .exe file parameters
Replies: 5
Views: 10322

Good catch hoangvo81 - in my code they are the same - this was something I messed up copying / pasting Cyber, I have tried quotes in every possible place/combination I would have sworn I tried this yesterday but I just found that, RUN >Report_param.exe /Parameter_1=TEST1 works But EXE>Report_param.e...
by Jerry Thomas
Mon Sep 30, 2013 10:29 pm
Forum: General Discussion
Topic: .exe file parameters
Replies: 5
Views: 10322

I am having a rough Monday here... Report_Param is the single line of code just as JRL suggested: MDL>Parameter_1 Running "Report_Param.exe" by itself runs fine and displays "Parameter_1" as expected. But when I run Report_Param.exe /Parameter_1="some text" "Windows cannot find c:\Users...\Report_Pa...
by Jerry Thomas
Fri Sep 27, 2013 4:55 pm
Forum: The Water Cooler
Topic: The Unofficial Macro Scheduler Puzzler of the Week 3
Replies: 21
Views: 23463

Compare the decimal part of the initial value to the 'rounding value' Let>InitVal1=14.26 Let>RoundOffset=0.25 // TruncVal1 will = 14 Let>TruncVal1={Trunc(%InitVal1%)} // DecimalPart will = 14.26 - 14 which = 0.26 Let>DecimalPart=InitVal1-TruncVal1 If>DecimalPart>RoundOffset // If 0.26 > 0.25, NewVal...
by Jerry Thomas
Fri Sep 27, 2013 3:17 pm
Forum: The Water Cooler
Topic: The Unofficial Macro Scheduler Puzzler of the Week 3
Replies: 21
Views: 23463

Since 0.5 is the normal 'break' point between going up or going down, we adjust for the difference from that amount. Then we Truncate rather than Round from the adjusted initial value. Let>InitVal1=14.74999 Let>InitVal2=14.75 Let>RoundOffset=0.75 Let>RoundedVal1={Trunc(%InitVal1%+(%RoundOffset%-0.5)...
by Jerry Thomas
Thu Sep 26, 2013 3:05 pm
Forum: Scripts and Tips
Topic: Use RegEx to round/fixed minimum number of decimals...
Replies: 4
Views: 15173

This is code I have used through the years. One big advantage of this approach, is that it is easier for someone else to understand. Yes, RegEx is extremely powerful, but it isn't the easiest to read and know what the code is doing. //Change this to the number of decimal places you want Let>NumDecim...
Sign up to our newsletter for free automation tips, tricks & discounts