Search found 32 matches

by Scones
Tue Apr 14, 2020 9:10 pm
Forum: Technical / Scripting
Topic: CloseDialog not working when compiled
Replies: 3
Views: 389

Re: CloseDialog not working when compiled

Thanks!

Any idea why it works in devmode and not when compiled?
by Scones
Tue Apr 14, 2020 4:27 pm
Forum: Technical / Scripting
Topic: CloseDialog not working when compiled
Replies: 3
Views: 389

CloseDialog not working when compiled

Hello CloseDialog doesn't seem to work in a compiled script. Example 1: CloseDialog command is Inside an subroutine Dialog>Dialog1 object Dialog1: TForm Left = 408 Top = 111 HelpContext = 5000 BorderIcons = [biSystemMenu] Caption = 'CustomDialog' ClientHeight = 115 ClientWidth = 263 Color = clBtnFac...
by Scones
Tue Mar 10, 2020 9:08 am
Forum: Technical / Scripting
Topic: Closing Dialogs With Compiled EXE
Replies: 4
Views: 1277

Re: Closing Dialogs With Compiled EXE

I am having this issue, but the solution presented in the end is not working for me To sum up the issue, so you don't have to read this old post: CloseDialog doesn't seem to always work in compiled scripts MadQuestion seemed to find out that it works when he puts it outside his SRT's This is my scri...
by Scones
Mon Mar 09, 2020 11:07 am
Forum: Technical / Scripting
Topic: Numeric strings returning with "," decimal seperator
Replies: 2
Views: 301

Re: Numeric strings returning with "," decimal seperator

No i didn't know that :)

Might be a dumb question, but how do i do that?

Edit:
Nvm that question. Figured it out! Thanks very much for the tip!
by Scones
Mon Mar 09, 2020 10:27 am
Forum: Technical / Scripting
Topic: Numeric strings returning with "," decimal seperator
Replies: 2
Views: 301

Numeric strings returning with "," decimal seperator

I'm located in europe, and my OS language is english. When calculating strings, the result has "," as decimal separator, but Macro Scheduler can only handle "." seperators, it seems. I found out using the ROUND function. Is it intended? I know i can just replace it with the right one, but i'm just c...
by Scones
Fri Mar 06, 2020 1:42 pm
Forum: Technical / Scripting
Topic: How to calculate numeric strings
Replies: 5
Views: 635

Re: How to calculate numeric strings

It works!

As always, thank you!
by Scones
Fri Mar 06, 2020 1:14 pm
Forum: Technical / Scripting
Topic: How to calculate numeric strings
Replies: 5
Views: 635

Re: How to calculate numeric strings

Wow you're right. Just did this LET>A=1 LET>B=2 LET>SUM=%A%+%B% MDL SUM to confirm what you said, and it works. I wonder why mine doesn't work then? I'm trying to count the number of lines in some txt files and add them together. Here it is ReadFile>\\DSS-DK-FIL-001\Data\Common\Autoclick projekt\Sta...
by Scones
Fri Mar 06, 2020 10:40 am
Forum: Technical / Scripting
Topic: How to calculate numeric strings
Replies: 5
Views: 635

How to calculate numeric strings

I have some numeric strings i want to add and get the final sum, but it can't calculate numeric strings.

Is there a way around it?
by Scones
Thu Feb 27, 2020 8:24 am
Forum: Technical / Scripting
Topic: [solved] RenameFile randomly stopped working
Replies: 0
Views: 1398

[solved] RenameFile randomly stopped working

EDIT: I realized i was being an idiot :lol: Apparently i DID change something since it worked yesterday, since you need to put the full file path in the end. Just ignore my post Hi. I have a script with a very simple RenameFile line in it. The line randomly stopped working today. It just executes th...
by Scones
Wed Feb 26, 2020 1:45 pm
Forum: Technical / Scripting
Topic: My script thinks a window is open when it's not?
Replies: 5
Views: 575

Re: My script thinks a window is open when it's not?

Try limiting to visible windows only by adding this at the top of your script:

Let>WF_TYPE=2
Works like a charm! Thank you very much! :D
by Scones
Wed Feb 26, 2020 1:31 pm
Forum: Technical / Scripting
Topic: My script thinks a window is open when it's not?
Replies: 5
Views: 575

Re: My script thinks a window is open when it's not?

I see. Well even if the window is closed from the beginning, the script still sees it.

I wonder how that is possible when it doesn't show up with getwindowlist.
by Scones
Wed Feb 26, 2020 1:05 pm
Forum: Technical / Scripting
Topic: No way for AddDialogHandler to go to a label?
Replies: 2
Views: 334

Re: No way for AddDialogHandler to go to a label?

SkipLabel solves it! Didn't know it existed. Thanks!
by Scones
Wed Feb 26, 2020 10:20 am
Forum: Technical / Scripting
Topic: My script thinks a window is open when it's not?
Replies: 5
Views: 575

My script thinks a window is open when it's not?

What MDL are you guys receiving when running this? :shock:

Code: Select all

CloseWindow>Details
Wait 1
IfWindowOpen>Details
MDL>Details open
Else
MDL>Details not open
endif
exit
Do i have some hidden window running called Details? Doesn't show up with getwindowlist
by Scones
Wed Feb 26, 2020 9:25 am
Forum: Technical / Scripting
Topic: Determining if a Macro is already running
Replies: 10
Views: 774

Re: Determining if a Macro is already running

Wouldn't this one also do the trick?

Code: Select all

GetProcessIds>My macro.exe,PID_ARR
ArrayCount>PID_ARR,PIDCOUNT
If>PIDCOUNT>1
MDL MACRO ALREADY RUNNING
exit
//Or insert dialog where user can choose to kill that existing process. (Will also kill this one ofc)
endif
//Continue macro
by Scones
Wed Feb 26, 2020 8:24 am
Forum: Technical / Scripting
Topic: No way for AddDialogHandler to go to a label?
Replies: 2
Views: 334

No way for AddDialogHandler to go to a label?

This will give an error saying: Subroutine/Label MyLabel Not Found! Label>MyLabel Dialog>Dialog1 object Dialog1: TForm Left = 776 Top = 138 HelpContext = 5000 BorderIcons = [biSystemMenu] Caption = 'CustomDialog' ClientHeight = 211 ClientWidth = 476 Color = clBtnFace Font.Charset = DEFAULT_CHARSET F...
Sign up to our newsletter for free automation tips, tricks & discounts