Search found 275 matches
- 15 May 2022, 08:48
- Forum: Ask for Help (v1)
- Topic: To use DateDiff() Topic is solved
- Replies: 3
- Views: 739
Re: To use DateDiff() Topic is solved
Hallo, try (with V1): var1 := "20050126" var2 := "20040126" MsgBox,% DateDiff(var1, var2, "days") ; The answer will be 366 since 2004 is a leap year. DateDiff(DateTime1, DateTime2, TimeUnits) { EnvSub DateTime1, %DateTime2%, %TimeUnits% return DateTime1 } DateDiff() from jeeswg AHK v2 functions for...
- 14 May 2022, 23:12
- Forum: Ask for Help (v1)
- Topic: To use DateDiff() Topic is solved
- Replies: 3
- Views: 739
To use DateDiff() Topic is solved
I tried to use DateDiff function from:
https://lexikos.github.io/v2/docs/commands/DateDiff.htm
However, it gives an error message: Error: Call to nonexistent function.
I think only V2 has this function. Is there a similar function in V1? My AHK is V1.
Thank you for your help!
https://lexikos.github.io/v2/docs/commands/DateDiff.htm
However, it gives an error message: Error: Call to nonexistent function.
I think only V2 has this function. Is there a similar function in V1? My AHK is V1.
Thank you for your help!
- 14 May 2022, 21:57
- Forum: Ask for Help (v1)
- Topic: How to split the string to an object?
- Replies: 2
- Views: 273
Re: How to split the string to an object?
Thank you mikeyww!!!!
- 14 May 2022, 21:46
- Forum: Ask for Help (v1)
- Topic: How to split the string to an object?
- Replies: 2
- Views: 273
How to split the string to an object?
What is wrong with my code?
Code: Select all
txt := "aaa`bbb`ccc`ddd`eee"
Delimiter :="`"
obj := StrSplit(txt, Delimiter)
for i, value in obj
msgbox %value%
Return
- 02 Feb 2022, 17:08
- Forum: Ask for Help (v1)
- Topic: Microsoft Defender is deleting my AHK scripts!
- Replies: 12
- Views: 2793
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!
Thank you all!
- 01 Feb 2022, 11:44
- Forum: Ask for Help (v1)
- Topic: Microsoft Defender is deleting my AHK scripts!
- Replies: 12
- Views: 2793
Re: Microsoft Defender is deleting my AHK scripts!
Thank you! I did it. But I doubt they will get back to me soon.
- 01 Feb 2022, 09:09
- Forum: Ask for Help (v1)
- Topic: Microsoft Defender is deleting my AHK scripts!
- Replies: 12
- Views: 2793
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!
- 01 Feb 2022, 08:41
- Forum: Ask for Help (v1)
- Topic: Microsoft Defender is deleting my AHK scripts!
- Replies: 12
- Views: 2793
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!
message shows: Detected Trojan:HTML/CryptoStealBTC. Action: Removed.
Please help!
- 28 Dec 2021, 16:44
- Forum: Ask for Help (v1)
- Topic: Please help me, RegExMatch()
- Replies: 5
- Views: 557
Re: Please help me, RegExMatch()
It works!
Best wishes to you all!
Happy New Year!!!
Best wishes to you all!
Happy New Year!!!
- 28 Dec 2021, 14:02
- Forum: Ask for Help (v1)
- Topic: Please help me, RegExMatch()
- Replies: 5
- Views: 557
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...
- 28 Dec 2021, 09:01
- Forum: Ask for Help (v1)
- Topic: Please help me, RegExMatch()
- Replies: 5
- Views: 557
Re: Please help me, RegExMatch()
Thank you so much!!!
- 28 Dec 2021, 08:21
- Forum: Ask for Help (v1)
- Topic: Please help me, RegExMatch()
- Replies: 5
- Views: 557
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...
- 07 Dec 2021, 07:02
- Forum: Ask for Help (v1)
- Topic: Please help with another RegExMatch
- Replies: 2
- Views: 473
Re: Please help with another RegExMatch
Thank you so much!
- 06 Dec 2021, 22:22
- Forum: Ask for Help (v1)
- Topic: Please help with another RegExMatch
- Replies: 2
- Views: 473
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>...
- 04 Dec 2021, 22:09
- Forum: Ask for Help (v1)
- Topic: Please help with RegExReplace
- Replies: 4
- Views: 598
Re: Please help with RegExReplace
Wow!
It works great! Thank you so much!
It works great! Thank you so much!
- 04 Dec 2021, 21:51
- Forum: Ask for Help (v1)
- Topic: Please help with RegExReplace
- Replies: 4
- Views: 598
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...
- 30 Nov 2021, 08:28
- Forum: Ask for Help (v1)
- Topic: RegExReplace
- Replies: 5
- Views: 648
Re: RegExReplace
It works perfectly! Thank you all!
- 29 Nov 2021, 20:09
- Forum: Ask for Help (v1)
- Topic: RegExReplace
- Replies: 5
- Views: 648
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]."
- 29 Nov 2021, 19:01
- Forum: Ask for Help (v1)
- Topic: RegExReplace
- Replies: 5
- Views: 648
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]"
- 29 Nov 2021, 13:56
- Forum: Ask for Help (v1)
- Topic: Instr(). Please help
- Replies: 2
- Views: 295
Re: Instr(). Please help
Hi mikeyww,
Thank you very much for your quick reply. I didn't understand it correctly.
Thank you very much for your quick reply. I didn't understand it correctly.