Search found 1106 matches

by armsys
Fri Oct 16, 2015 5:23 am
Forum: Technical / Scripting
Topic: Unable to Restore Image
Replies: 25
Views: 19174

Re: Unable to Restore Image

Images created by CyberCitizen's script are corrupt too.
by armsys
Fri Oct 16, 2015 4:55 am
Forum: Beginners
Topic: Disable Error Messages (Macro Scheduler and VB)
Replies: 4
Views: 6006

Re: Disable Error Messages (Macro Scheduler and VB)

Dominic_Fichera wrote:...FYI for anyone re-reading this post, it goes the line before the code...
Hi Dominic,
Thank you for sharing your working solution.
by armsys
Fri Oct 16, 2015 12:35 am
Forum: Technical / Scripting
Topic: Unable to Restore Image
Replies: 25
Views: 19174

Unable to Restore Image

The following script can't restore the original capture. The restored .bmp becomes readable. Why? Please help. Thanks. // Clean up all previously leftover test files DeleteFile>C:\Temp\WS1_Image.txt DeleteFile>C:\Temp\Test.bmp // Capture the entire screen GetScreenRes>Width,Height ScreenCapture>0,0,...
by armsys
Thu Oct 15, 2015 11:32 pm
Forum: Technical / Scripting
Topic: ScreenCapture Bug
Replies: 5
Views: 4958

ScreenCapture Bug

According to the Bible:
ScreenCapture>X1,Y1,X2,Y2,Filename
Captures a portion of the screen to a .BMP (bitmap) or .JPG (jpeg) file and (by default) to the clipboard.
In actuality, the clipboard is been emptied, not filled up with image data.
Please verify. Thank you.
by armsys
Thu Oct 15, 2015 10:27 pm
Forum: Technical / Scripting
Topic: Please help a newbie! WaitScreenImage Issues
Replies: 6
Views: 4571

Re: Please help a newbie! WaitScreenImage Issues

Hi Chris, Appreciate your feedback. ...although it is a lot of work, is to make a set of images for each screen resolution... Please try: // Capture a screen image GetScreenRes>Width,Height ScreenCapture>0,0,Width,Height,C:\Temp\Test.bmp After repeated experiments, I found that storing .bmp on disk ...
by armsys
Thu Oct 15, 2015 10:08 pm
Forum: Technical / Scripting
Topic: CF_RESULT_CODE 32
Replies: 5
Views: 4360

Re: CF_RESULT_CODE 32

The path in question contains read-only file(s).
Please try:

Code: Select all

CreateDir>i:\Temp
CopyFile>%SCRIPT_FILE%,i:\Temp
MDL>CF_RESULT_CODE
by armsys
Wed Oct 14, 2015 11:51 pm
Forum: Technical / Scripting
Topic: Please help a newbie! WaitScreenImage Issues
Replies: 6
Views: 4571

Re: Please help a newbie! WaitScreenImage Issues

Hi Chris, From a quick glance, "Let>WSI_TIMEOUT=2" will that end the macro if it does not detect the image in 2 seconds? It could take longer before the image is displayed on the screen is my only concern? Correct. You may consider the following change: // MA := MatchAlgorithm Let>MA=0.2 Let>WSI_TIM...
by armsys
Wed Oct 14, 2015 10:38 pm
Forum: Technical / Scripting
Topic: Please help a newbie! WaitScreenImage Issues
Replies: 6
Views: 4571

Re: Please help a newbie! WaitScreenImage Issues

Please try: // MA := MatchAlgorithm Let>MA=0.3 Let>WSI_TIMEOUT=2 // -------------------------- Label>start Let>FIP_SCANPIXELS=ALL WaitScreenImage>%SCRIPT_DIR%\images\2.bmp,CCOEFF,MA MDL>WSI_RESULT // -------------------------- Label>clickerstart Random>12,result Add>result,1 FindImagePos>%SCRIPT_DIR...
by armsys
Wed Oct 14, 2015 7:46 am
Forum: Technical / Scripting
Topic: Excel Find Cell/GetObject
Replies: 3
Views: 4031

Re: Excel Find Cell/GetObject

May we see a major/relevant portion of your code so that we can learn about Excel scripting?
Thanks.
by armsys
Mon Oct 12, 2015 11:25 pm
Forum: Technical / Scripting
Topic: Debug Script That Uses Active Window
Replies: 7
Views: 6090

Re: Debug Script That Uses Active Window

Hi hagchr,
Thanks for your time-saving tip.
by armsys
Sun Oct 11, 2015 8:29 pm
Forum: Technical / Scripting
Topic: Position>
Replies: 3
Views: 2906

Re: Position>

Glad to know you've solved your problem.
by armsys
Sun Oct 11, 2015 8:13 am
Forum: Technical / Scripting
Topic: Position>
Replies: 3
Views: 2906

Re: Position>

If nm returns 1 (one), then a match is found to satisfy your conditions.

Code: Select all

Let>string=471009123
*----------123456789
Let>regex=^([^0])\d{6}(?1){2}$
RegEx>regex,string,0,match,nm,0
If>nm>0
  MDL>A match is found.
Endif
by armsys
Fri Oct 09, 2015 12:59 am
Forum: Technical / Scripting
Topic: Debug Script That Uses Active Window
Replies: 7
Views: 6090

Re: Debug Script That Uses Active Window

Is there a way/solution to dump the entire watch (a snapshot) list to a text file?
by armsys
Tue Oct 06, 2015 10:56 pm
Forum: General Discussion
Topic: Problem with new install
Replies: 2
Views: 5832

Re: Problem with new install

kevinkalexander wrote:...When the command is executed, we get the error "Cannot create file when that file already exists!".
Can you guess which file(s) the OS is trying to create?
by armsys
Tue Oct 06, 2015 9:44 am
Forum: Technical / Scripting
Topic: How to write code in several lines
Replies: 11
Views: 7422

Re: How to write code in several lines

Hi Marcus,
Thank you for showing us the practical use of IncludeFromVar.
Sign up to our newsletter for free automation tips, tricks & discounts