Search found 64 matches

by ocnuybear
Wed Sep 05, 2018 6:06 pm
Forum: Scripts and Tips
Topic: Find Location of recorded Screenshot & Draw a Flashing Rectangle around it
Replies: 1
Views: 1064

Re: Find Location of recorded Screenshot & Draw a Flashing Rectangle around it

I have updated the original code with a new & much better script, the old script used VBscript to calculate the image size, but now i'm using MS directly with less code. The image found will now be surrounded by a flashing rectangle.
by ocnuybear
Wed Sep 05, 2018 5:11 pm
Forum: Technical / Scripting
Topic: Find bitmap file x/y size
Replies: 9
Views: 8092

Re:

Excellent thank you :D For several years I've been using the scripts on this page to get image size information. Today it occurred to me there is an easy way to get size info for jpg, bmp and png files. All you need to do is create a dialog in Macro Scheduler version 12 or greater and load the image...
by ocnuybear
Tue Sep 04, 2018 3:38 pm
Forum: Technical / Scripting
Topic: [Solved] Limit on positioning Dialogs?
Replies: 3
Views: 688

Re: Limit on positioning Dialogs?

Important thing here is to use 'DefaultMonitor = dmDesktop' to make use of entire desktop space Dialog>Dialog1 object Dialog1: TForm Left = 255 Top = 220 HelpContext = 5000 BorderIcons = [biSystemMenu] Caption = 'CustomDialog' ClientHeight = 162 ClientWidth = 1170 Color = clBtnFace DefaultMonitor = ...
by ocnuybear
Tue Sep 04, 2018 8:31 am
Forum: Technical / Scripting
Topic: [Solved] Limit on positioning Dialogs?
Replies: 3
Views: 688

Re: Limit on positioning Dialogs?

Anyone else having this problem?
by ocnuybear
Tue Sep 04, 2018 5:13 am
Forum: Technical / Scripting
Topic: [Solved] Python script only runs from Explorer
Replies: 2
Views: 559

Re: Python script only runs from Explorer

Just realized I have extracted the python files into the MS Documents folder 'C:\Users\John\Documents\Macro Scheduler 14' instead of using MS Installation folder 'C:\Program Files (x86)\Macro Scheduler 14' :shock:

One's eye tends to look at the last part & sometimes misses the first part :D
by ocnuybear
Mon Sep 03, 2018 4:33 pm
Forum: Technical / Scripting
Topic: [Solved] Python script only runs from Explorer
Replies: 2
Views: 559

[Solved] Python script only runs from Explorer

The code below runs 100% when double clicking the script in explorer under path 'C:\Users\John\Documents\Macro Scheduler 14', but when running it within MS it says 'Python is not properly initialized', the python27.dll file is also present in the same path as the script: 'C:\Users\John\Documents\Mac...
by ocnuybear
Mon Sep 03, 2018 1:33 pm
Forum: Beginners
Topic: I have 2 questions i hope you guys help me with
Replies: 18
Views: 2609

Re: I have 2 questions i hope you guys help me with

Not sure if this is what you want, but try this - just replace the picture paths & names please: //How many times to click on same picture Let>ClickTimes=10 Let>Timeout=5 Gosub>FindImage,C:\Users\x\Desktop\pic1 Gosub>FindImage,C:\Users\x\Desktop\pic2 Gosub>FindImage,C:\Users\x\Desktop\pic3 Gosub>Fin...
by ocnuybear
Mon Sep 03, 2018 12:18 pm
Forum: Beginners
Topic: I have 2 questions i hope you guys help me with
Replies: 18
Views: 2609

Re: I have 2 questions i hope you guys help me with

what I want to do is to make the script understands that if you chose a picture from the 6 you have to keep clicking that picture until it's no longer there in that position THEN it can continue to look for another picture Must MS keep clicking on Picture 1 until the picture disappears or just move...
by ocnuybear
Mon Sep 03, 2018 11:04 am
Forum: Beginners
Topic: I have 2 questions i hope you guys help me with
Replies: 18
Views: 2609

Re: I have 2 questions i hope you guys help me with

Can we see your script please?
by ocnuybear
Mon Sep 03, 2018 10:10 am
Forum: Technical / Scripting
Topic: [Solved] Limit on positioning Dialogs?
Replies: 3
Views: 688

[Solved] Limit on positioning Dialogs?

I have two identical FHD monitors with my main screen on the left, I'm trying to create a dialog on the second screen (right screen), but it can only move up till the end of the first screen and as soon as the Left X value is close to 1920, it jumps back to the start of the left screen, is there a l...
by ocnuybear
Mon Sep 03, 2018 8:33 am
Forum: Beginners
Topic: I have 2 questions i hope you guys help me with
Replies: 18
Views: 2609

Re: I have 2 questions i hope you guys help me with

Where did you get the 'fuel.PNG' file from? Also make sure you have used the correct path to the image file. Can you please try and capture the file with the Image Capture Tool under Tools menu, 7th option from the top? MS is very sensitive with the images it finds and must be created with this tool...
by ocnuybear
Mon Sep 03, 2018 7:05 am
Forum: Beginners
Topic: I have 2 questions i hope you guys help me with
Replies: 18
Views: 2609

Re: I have 2 questions i hope you guys help me with

Try this code: Let>x=0 Let>Timeout=10 While>x<%Timeout% Let>x=x+1 FindImagePos>C:\Users\x\Desktop\fuel.PNG,SCREEN,0.7,1,XArr,YArr,NumFound,CCOEFF If>NumFound>0 Let>x=%Timeout% MouseMove>XArr_0,YArr_0 LClick //Input>,Image found at Center of this Location,X=%XArr_0% Y=%YArr_0% EndIf EndWhile If>NumFo...
by ocnuybear
Wed Aug 22, 2018 3:04 pm
Forum: General Discussion
Topic: [Solved] the specified module could not be found: ocr.dll
Replies: 2
Views: 908

Re: [Solved] the specified module could not be found: ocr.dll

Thank you Marcus, re-installing MS solved the issue :D
by ocnuybear
Wed Aug 22, 2018 1:57 pm
Forum: General Discussion
Topic: [Solved] the specified module could not be found: ocr.dll
Replies: 2
Views: 908

[Solved] the specified module could not be found: ocr.dll

When using the Screen OCR Wizard, just after selecting an area on the screen it comes up with this message and MS completely crashes. Do we need to install a 3rd party OCR tool or library?
by ocnuybear
Wed Aug 15, 2018 8:47 am
Forum: General Discussion
Topic: Can Microsoft OLEDB Source be inputted directly from variable contents?
Replies: 8
Views: 1505

Re: Can Microsoft OLEDB Source be inputted directly from variable contents?

Thank you Marcus, I realize this is a Microsoft constraint, just asked you guys as you are the experts :D
Sign up to our newsletter for free automation tips, tricks & discounts