Search found 497 matches

by Dorian (MJT support)
Mon Nov 18, 2019 2:44 pm
Forum: Technical / Scripting
Topic: Help with Regex
Replies: 5
Views: 355

Re: Help with Regex

So "everything in front of" instead of "everything between"?. Maybe one of the Regex gurus in here can show you that in Regex, but you don't need regex for that. Macro Scheduler can do that with Position, Length, and Midstr. Get everything before G : Let>MyString=ABCDEFGHIJKLMNOPQRSTVUWXYZ Len>MyStr...
by Dorian (MJT support)
Mon Nov 18, 2019 2:19 pm
Forum: Technical / Scripting
Topic: if>string contains
Replies: 1
Views: 24

Re: if>string contains

Does something like the script below do what you need? It takes a string, in this case FishCatDog, and looks for Cat. If it finds Cat, it changes it to Horse. If it doesn't, nothing is changed. Let>MyString=FishCatDog Pos>Cat,MyString,1,PosCat, If>PosCat>1 StringReplace>MyString,Cat,Horse,MyString E...
by Dorian (MJT support)
Mon Nov 18, 2019 2:14 pm
Forum: Technical / Scripting
Topic: Hotkey not working twice
Replies: 6
Views: 52

Re: Hotkey not working twice

I see. I think the problem is your script is pressing CTRL and SHIFT but not releasing them. Then they're still pressed and you're having trouble subsequently using the hotkey.

Try this instead :

Code: Select all

press ctrl
press shift
press right *3
release shift
release ctrl
by Dorian (MJT support)
Mon Nov 18, 2019 9:20 am
Forum: General Discussion
Topic: HashLib.dll for string
Replies: 1
Views: 29

Re: HashLib.dll for string

Version 11 is nine years old and no longer supported, but here's a few forum posts which may help.
by Dorian (MJT support)
Mon Nov 18, 2019 9:13 am
Forum: Technical / Scripting
Topic: Is this possible?
Replies: 1
Views: 23

Re: Is this possible?

Yes, although I can't figure out why you want to do this. Once edited, it seems to do the same thing in two different loops, and then go back to the start again. You needed to reset loop_count (or use a different variable, and you had Until twice for each loop. Edited version below. If that isn't wh...
by Dorian (MJT support)
Mon Nov 18, 2019 9:00 am
Forum: Technical / Scripting
Topic: Hotkey not working twice
Replies: 6
Views: 52

Re: Hotkey not working twice

I just experimented with this and SHIFT + CTRL isn't an option for HotKeys. CTRL + SHIFT is. However, as long as CTRL/SHIFT are held down at the same time as Down is pressed, this should work just fine. I was able to execute a macro multiple times whichever of the two I held down first. Does the sam...
by Dorian (MJT support)
Sat Nov 16, 2019 12:23 pm
Forum: Technical / Scripting
Topic: Tricky Problem-Need help!
Replies: 4
Views: 437

Re: Tricky Problem-Need help!

I would see if you could use GetPixelColor. My initial thought was the same as yours, but I'm fairly sure that wouldn't work, as they've made it semi transparent. This means the colour index changes. Sample it in one place, and it's 13012896, in another it's 12815002, and so on. Running the Cursor ...
by Dorian (MJT support)
Fri Nov 15, 2019 11:33 am
Forum: Technical / Scripting
Topic: ObjectSendText dropping characters
Replies: 2
Views: 32

Re: ObjectSendText dropping characters

I tested too and was able to replicate the problem. It seems the problem is specifically related to PowerShell, as characters weren't clipped in test applications such as NotePad. I'm wondering if that is a feature of PowerShell, as if I try "voooooltaaaaage" it is corrected to "voltage". This sugge...
by Dorian (MJT support)
Thu Nov 14, 2019 11:04 am
Forum: Technical / Scripting
Topic: hidden variable in watchlist
Replies: 1
Views: 37

Re: hidden variable in watchlist

I can replicate this. Have edited slightly for clarity, and will consult Marcus for his insight. Let>strResponse1={""} HTTPRequest>https://www.mjtnet.com/,,GET,,strResponse1 MessageModal>strResponse1 Let>strResponse2={""} HTTPRequest>https://www.meneame.net/,,GET,,strResponse2 MessageModal>strRespon...
by Dorian (MJT support)
Thu Nov 14, 2019 10:46 am
Forum: Technical / Scripting
Topic: Find Text, do math, select right answer, enter
Replies: 6
Views: 172

Re: Find Text, do math, select right answer, enter

Maybe try OCRarea again as the recent update has made it much faster. Once you have that text you can use Position to check if the minus symbol is present.

Of use Image Recognition on that small area and just look for the -
by Dorian (MJT support)
Mon Nov 11, 2019 12:01 pm
Forum: Technical / Scripting
Topic: Help with Regex
Replies: 5
Views: 355

Re: Help with Regex

Grovkillen wrote:
Thu Nov 07, 2019 5:29 pm
A piece of advice, pay for regexBuddy
Also, here's a free Regex course. It helped me grasp a basic understanding.

https://www.udemy.com/course/regex-acad ... g-sorcery/
by Dorian (MJT support)
Thu Nov 07, 2019 1:06 pm
Forum: Technical / Scripting
Topic: Help with Regex
Replies: 5
Views: 355

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 Dorian (MJT support)
Thu Nov 07, 2019 12:58 pm
Forum: The Water Cooler
Topic: Water Cooler
Replies: 2
Views: 321

Re: Water Cooler

The last time I posted in here Marcus offered me a job. That was 2013. Best post I ever made. :D
by Dorian (MJT support)
Tue Oct 29, 2019 11:22 pm
Forum: General Discussion
Topic: Best way to avoid an error if an Internet Explorer Element is not found
Replies: 1
Views: 97

Re: Best way to avoid an error if an Internet Explorer Element is not found

I just responded to this question via your support ticket, as your question there contained more specifics.