Search found 273 matches

by oldbrother
14 May 2022, 21:57
Forum: Ask for Help (v1)
Topic: How to split the string to an object?
Replies: 2
Views: 268

Re: How to split the string to an object?

Thank you mikeyww!!!! :thumbup:
by oldbrother
14 May 2022, 21:46
Forum: Ask for Help (v1)
Topic: How to split the string to an object?
Replies: 2
Views: 268

How to split the string to an object?

What is wrong with my code? :headwall: :headwall:

Code: Select all

  txt := "aaa`bbb`ccc`ddd`eee"
Delimiter :="`"
obj := StrSplit(txt, Delimiter)
for i, value in obj
  msgbox %value%
Return
by oldbrother
02 Feb 2022, 17:08
Forum: Ask for Help (v1)
Topic: Microsoft Defender is deleting my AHK scripts!
Replies: 12
Views: 2606

Re: Microsoft Defender is deleting my AHK scripts!

Surprisingly, Microsoft got back to me very quick this time. They updated the defender intelligence version, and the warning is gone.

Thank you all!
Snap3.jpg
Snap3.jpg (79.89 KiB) Viewed 2252 times
by oldbrother
01 Feb 2022, 11:44
Forum: Ask for Help (v1)
Topic: Microsoft Defender is deleting my AHK scripts!
Replies: 12
Views: 2606

Re: Microsoft Defender is deleting my AHK scripts!

Thank you! I did it. But I doubt they will get back to me soon.
by oldbrother
01 Feb 2022, 09:09
Forum: Ask for Help (v1)
Topic: Microsoft Defender is deleting my AHK scripts!
Replies: 12
Views: 2606

Re: Microsoft Defender is deleting my AHK scripts!

Thank you! I did. But how can we report to Microsoft? They have gone too far! The files are not even executables! :oops: :oops: :oops:
by oldbrother
01 Feb 2022, 08:41
Forum: Ask for Help (v1)
Topic: Microsoft Defender is deleting my AHK scripts!
Replies: 12
Views: 2606

Microsoft Defender is deleting my AHK scripts!

Everything was ok yesterday, but this morning when I ran an .ahk file, it was deleted by my windows 10 pro.
message shows: Detected Trojan:HTML/CryptoStealBTC. Action: Removed.

Please help! :oops:
by oldbrother
28 Dec 2021, 16:44
Forum: Ask for Help (v1)
Topic: Please help me, RegExMatch()
Replies: 5
Views: 554

Re: Please help me, RegExMatch()

It works!

Best wishes to you all!

Happy New Year!!!
by oldbrother
28 Dec 2021, 14:02
Forum: Ask for Help (v1)
Topic: Please help me, RegExMatch()
Replies: 5
Views: 554

Re: Please help me, RegExMatch()

I want to match the first found ENDSEC to get: 0 INSERT 5 20 0.5391047014503343 But my sample code returns: 0 INSERT 5 20 0.5391047014503343 0 ENDSEC 100 AcDbBlockReference 66 30 0.0 How to fix it? Thank you! Sample code: Gosub, Init RegExMatch(Str, "\R\s\s2\RENTITIES\R(.*)\R\s\s0\RENDSEC\R", M) msg...
by oldbrother
28 Dec 2021, 09:01
Forum: Ask for Help (v1)
Topic: Please help me, RegExMatch()
Replies: 5
Views: 554

Re: Please help me, RegExMatch()

Thank you so much!!! :thumbup:
by oldbrother
28 Dec 2021, 08:21
Forum: Ask for Help (v1)
Topic: Please help me, RegExMatch()
Replies: 5
Views: 554

Please help me, RegExMatch()

I need to get the highlighted text, but my code doesn't work. Please let me know what I did wrong. AcDbBlockEnd 0 ENDSEC 0 SECTION 2 ENTITIES 0 INSERT 5 614E 330 22 100 AcDbEntity 8 0 100 AcDbBlockReference 66 1 2 DimCell 10 1.514422934076399 20 0.5391047014503343 30 0.0 0 ENDSEC 100 AcDbAttribute M...
by oldbrother
07 Dec 2021, 07:02
Forum: Ask for Help (v1)
Topic: Please help with another RegExMatch
Replies: 2
Views: 459

Re: Please help with another RegExMatch

Thank you so much! :thumbup: :thumbup: :thumbup:
by oldbrother
06 Dec 2021, 22:22
Forum: Ask for Help (v1)
Topic: Please help with another RegExMatch
Replies: 2
Views: 459

Please help with another RegExMatch

How can I get the follows from the sample string? Description: 4 FLUTE REGULAR LENGTH ROUGH & FINSHER 8`% COBALT Size: 1/4 x 3/8 x 5/8 x 2-7/16 str = ( <td><span>73297</span></td> </tr> <tr> <th>Description</th> <td>4 FLUTE REGULAR LENGTH ROUGH & FINSHER 8`% COBALT</td> </tr> <tr> <th>Size</th> <td>...
by oldbrother
04 Dec 2021, 22:09
Forum: Ask for Help (v1)
Topic: Please help with RegExReplace
Replies: 4
Views: 565

Re: Please help with RegExReplace

Wow!

It works great! Thank you so much! :thumbup:
by oldbrother
04 Dec 2021, 21:51
Forum: Ask for Help (v1)
Topic: Please help with RegExReplace
Replies: 4
Views: 565

Please help with RegExReplace

I want to remove 310 blocks in a DXF file. How can I do it with RegExReplace? To remove: 310 a long string (length longer than 80) 330 3773 100 AcDbXrecord 280 1 310 28000000B40000006D0000000100080000000000A44C000000000000000000000001000000000000FFFFFF0000000000F 310 00006600003366000066660000996600...
by oldbrother
30 Nov 2021, 08:28
Forum: Ask for Help (v1)
Topic: RegExReplace
Replies: 5
Views: 633

Re: RegExReplace

It works perfectly! Thank you all! :thumbup:
by oldbrother
29 Nov 2021, 20:09
Forum: Ask for Help (v1)
Topic: RegExReplace
Replies: 5
Views: 633

Re: RegExReplace

Thank you boiler, Sorry for my example. The spaces can be more than one, or in multiple places within a pair of brackets: str := "lot's of brackets like [abc ], [U 12 3], something like this [ D00 K]." Target: str := "lot's of brackets like [abc], [U123], something like this [D00K]."
by oldbrother
29 Nov 2021, 19:01
Forum: Ask for Help (v1)
Topic: RegExReplace
Replies: 5
Views: 633

RegExReplace

I have a long text file with lot's of brackets like [abc ], [U12 3]. I can find them using: RegExMatch(myTxt, "i)\[[0-9a-zA-Z\-_\s]*\]", Brac). How can I use RegExReplace to remove the spaces inside of them? "lot's of brackets like [abc ], [U12 3]" to: " lot's of brackets like [abc], [U123]"
by oldbrother
29 Nov 2021, 13:56
Forum: Ask for Help (v1)
Topic: Instr(). Please help
Replies: 2
Views: 270

Re: Instr(). Please help

Hi mikeyww,

Thank you very much for your quick reply. I didn't understand it correctly. :headwall: :headwall: :headwall:
by oldbrother
29 Nov 2021, 13:42
Forum: Ask for Help (v1)
Topic: Instr(). Please help
Replies: 2
Views: 270

Instr(). Please help

The first Pos is supposed to be 7, but I always get 4. Why? StartingPOS seems not working.

Code: Select all


Txt := "123.123456"
Pos := InStr(Txt, "." , false , -1)
msgbox %Pos%  ; returns 4

Pos := InStr(Txt, "." , false , 1)
msgbox %Pos%  ; returns 4 too. 

by oldbrother
12 Nov 2021, 22:04
Forum: Ask for Help (v1)
Topic: Function default parameter
Replies: 5
Views: 754

Re: Function default parameter

Thank you mikeyww!

It works!. Your modified code is much neater.

Do you know why "A_Tab" does not work? I was thinking A_Tab and `t the same.

Go to advanced search