Search found 11 matches

by Scones
Thu Nov 28, 2019 10:40 am
Forum: Technical / Scripting
Topic: Display a string in a Dialog Label
Replies: 1
Views: 125

Display a string in a Dialog Label

Hi!

Anyone know how to display the result of a string in a dialog? I tried making a label with caption: %MyString%, but it just comes out as %MyString%

I did make sure that the Dialog comes after i named the string

Thanks in advance!
by Scones
Mon Nov 18, 2019 2:26 pm
Forum: Technical / Scripting
Topic: Help with Regex
Replies: 6
Views: 541

Re: Help with Regex

This regex returns "everything between" //To help you understand let>mystring=Esko ArtiosCAD - [TEST - 0 mfg] let>BEGINNING=0 let>END=] RegEx>(?<=%BEGINNING%).*?(?=%END%),mystring,0,matches,nm,0 MessageModal>%nm% matches %CRLF%The item number is %matches_1% //All condensed into one line RegEx>(?<=0...
by Scones
Mon Nov 18, 2019 11:52 am
Forum: Technical / Scripting
Topic: if>string contains
Replies: 2
Views: 115

if>string contains

Hi. I want to make a formula that does this: If string contains "this text" then do this. This is my line atm. If>DesiredChange=Inside dim I'm basically looking for something to replace the "=" so it isn't 100% equal. I just want to know if the text appears in the string. I tried using the * that wo...
by Scones
Thu Nov 07, 2019 11:51 am
Forum: Technical / Scripting
Topic: Help with Regex
Replies: 6
Views: 541

Help with Regex

Hello

Can anyone figure this one out? Here is my string:

Esko ArtiosCAD - [TEST - 0 mfg]

This text is always the same
This text is always different
This is the text i need to get

I have never used regex before, so i'm very lost here.
by Scones
Thu Oct 10, 2019 12:40 pm
Forum: Technical / Scripting
Topic: fsStayOnTop not working with Setfocus
Replies: 1
Views: 126

fsStayOnTop not working with Setfocus

Hi! I'm running a script and i really want a dialog to stay on top at all times. Using fsStayOnTop does work when a user manually focuses other windows, but when i use setfocus>another_window in my script, it kind of overwrites the fsStayOnTop , and the another_window gets on top of my dialog. The o...
by Scones
Thu Oct 10, 2019 12:11 pm
Forum: Technical / Scripting
Topic: Logging scripts makes it slow. Need an alternative
Replies: 4
Views: 248

Re: Logging scripts makes it slow. Need an alternative

Thanks to you both! I have something to work with.
by Scones
Mon Oct 07, 2019 11:53 am
Forum: Technical / Scripting
Topic: Logging scripts makes it slow. Need an alternative
Replies: 4
Views: 248

Logging scripts makes it slow. Need an alternative

Hello. I recently found out how much faster my scripts run without logging enabled, so i want to try and not use it. My problem: I have a script with a non modal dialog with a "Send bug report" button. The user presses the button, and the script copies the log file into my bugreport folder and stops...
by Scones
Tue Oct 01, 2019 10:12 am
Forum: Technical / Scripting
Topic: How does the dialog progress bar work?
Replies: 2
Views: 157

Re: How does the dialogue progress bar work?

Ok i have now tried this, that i found on the forum Let>k=0 Repeat>k Add>k,1 Wait>0.5 // do stuff // ... // ... // now update the progress bar Add>Dialog1.ProgressBar1,1 ResetDialogAction>Dialog1 Until>k=100 But the ResetDialogAction>Dialog1 resets everything else which i don't want. Any other way f...
by Scones
Tue Oct 01, 2019 8:47 am
Forum: Technical / Scripting
Topic: How does the dialog progress bar work?
Replies: 2
Views: 157

How does the dialog progress bar work?

Hi

I want to make a non modal dialog with a progress bar, but the bar wont move an inch?

How does it know when to progress? Is it based on percentage of lines executed? Or do i have to insert points in the script where it should take a step. If so, what is the command?
by Scones
Thu Sep 26, 2019 10:50 am
Forum: Beginners
Topic: Manual for Noobs
Replies: 1
Views: 196

Re: Manual for Noobs

Use the Image Recognition Wizard https://i.imgur.com/pzsVbkU.png Select "Find the position of an image to interact with." and hit "Next >> https://i.imgur.com/hZcnTQ3.png Click "Capture An Image" and drag an rectangle around the image - Then hit Next >> again https://i.imgur.com/fNBJNB6.png Select i...
by Scones
Thu Sep 26, 2019 8:20 am
Forum: Beginners
Topic: UIGetValue
Replies: 1
Views: 155

UIGetValue

Hi.

When i get a value from something using UIGetValue, how do i name the string?

When using GetClipboard i type "GetClipBoard>myclipboard", and my string will be called myclipboard

But i don't know how to do it for other get functions.

Thanks in advance!