Search found 273 matches
- 24 Mar 2024, 12:04
- Forum: Ask for Help (v1)
- Topic: Object.Delete(Key) doesn't work in my case. Looks like a bug.
- Replies: 7
- Views: 142
Re: Object.Delete(Key) doesn't work in my case. Looks like a bug.
Thank you mikeyww! I add ‘K_’ to all the keys as a workaround, and it is working properly now.
- 24 Mar 2024, 06:20
- Forum: Ask for Help (v1)
- Topic: Object.Delete(Key) doesn't work in my case. Looks like a bug.
- Replies: 7
- Views: 142
Re: Object.Delete(Key) doesn't work in my case. Looks like a bug.
You might have seen the response from Lexikos on the bug report board. I understand his point, but how can I remove key-value from the array? It's not practical to rebuild the array every time I need to remove a key-value pair. #Requires AutoHotkey v1 words := {"AAA": 1, "Delete": 2, "Add": 3, "Hell...
- 23 Mar 2024, 13:08
- Forum: Ask for Help (v1)
- Topic: Object.Delete(Key) doesn't work in my case. Looks like a bug.
- Replies: 7
- Views: 142
Re: Object.Delete(Key) doesn't work in my case. Looks like a bug.
I posted it in the bug report.
- 23 Mar 2024, 13:07
- Forum: Bug Reports
- Topic: [V 1.1] Object.Delete(Key) doesn't work in some cases Topic is solved
- Replies: 1
- Views: 78
[V 1.1] Object.Delete(Key) doesn't work in some cases Topic is solved
When "Delete" is key of an object, Delete(Key) stops working. Some other key words could have similar issues, but I'm not sure. Please see the details in this thread: https://www.autohotkey.com/boards/viewtopic.php?f=76&t=127710&p=564519#p564519 I hope this can be fixed! #Requires AutoHotkey v1 word...
- 23 Mar 2024, 12:51
- Forum: Ask for Help (v1)
- Topic: Object.Delete(Key) doesn't work in my case. Looks like a bug.
- Replies: 7
- Views: 142
Re: Object.Delete(Key) doesn't work in my case. Looks like a bug.
I think that this is a bug; it appears that when the array contains a key called "Delete", the Delete method can no longer be used. Thank you mikeyww! You are the best! I know lexikos posted "End of life v1.1" yesterday, but I really hope he can get this fixed. Cause I'm still a V1.1 guy :( :( :(. ...
- 23 Mar 2024, 08:38
- Forum: Ask for Help (v1)
- Topic: Object.Delete(Key) doesn't work in my case. Looks like a bug.
- Replies: 7
- Views: 142
Object.Delete(Key) doesn't work in my case. Looks like a bug.
My test code: test.zip (I'm using geek's CJson 0.4.1 for AHK 1) I have tried it in V2 with the same dada and geek's CJson for V2. Works fine. fileRead, data, data.txt MyWords:=JSon.load(data) NewWord :="AAA" MyWords[NewWord] := "2" ;works msgbox, % MyWords[NewWord] MyWords.Delete(NewWord) ;does not ...
- 19 Mar 2024, 12:00
- Forum: Ask for Help (v1)
- Topic: How to sort the list properly?
- Replies: 2
- Views: 63
Re: How to sort the list properly?
It works perfectly!
Thank you so much!
Thank you so much!
- 19 Mar 2024, 11:00
- Forum: Ask for Help (v1)
- Topic: How to sort the list properly?
- Replies: 2
- Views: 63
How to sort the list properly?
Both "Sort List, D|" and "Sort List, N D|" cannot sort the list properly. Please help. #Requires AutoHotkey v1 List :="Class 2. Book 1|Class 1. Book 13|Class 1. Book 2|Class 1. Book 5|Class 1. Book 6|Class 2. Book 12|Class 1. Book 14|Class 1. Book 1|Class 2. Book 2|Class 1. Book 10" Sort List, D| ;S...
- 11 Dec 2023, 13:44
- Forum: Ask for Help (v1)
- Topic: How can I process the Chinese characters correctly?
- Replies: 1
- Views: 183
How can I process the Chinese characters correctly?
Here is a simple example:
Code: Select all
Test := "中国"
MsgBox, %Test%
ExitApp
- 30 Nov 2023, 21:51
- Forum: Scripts and Functions (v2)
- Topic: [Library] cJson.ahk for AHKv2 (version 2.0.0)
- Replies: 6
- Views: 982
Re: [Library] cJson.ahk for AHKv2 (version 2.0.0)
Thanks a lot!ii
- 30 Jun 2023, 09:30
- Forum: Ask for Help (v1)
- Topic: RegExMatch() with foreign language
- Replies: 3
- Views: 357
Re: RegExMatch() with foreign language
Thank you all! It works. Have a nice weekend!
- 29 Jun 2023, 19:38
- Forum: Ask for Help (v1)
- Topic: RegExMatch() with foreign language
- Replies: 3
- Views: 357
RegExMatch() with foreign language
I need to get -0.33 from the string below with RegExMatch. The Chinese characters make it difficult for me to get it working. Please help!
<td>每股收益:<span>-0.33</span></td>
Thank you for your help!
<td>每股收益:<span>-0.33</span></td>
Thank you for your help!
- 13 May 2023, 10:28
- Forum: Ask for Help (v1)
- Topic: RegExMatch question.
- Replies: 2
- Views: 243
Re: RegExMatch question.
It works! Thank you!
- 12 May 2023, 22:38
- Forum: Ask for Help (v1)
- Topic: RegExMatch question.
- Replies: 2
- Views: 243
RegExMatch question.
This test code is working properly: Data= ( TEST CUSTOMER COPY Dataaaaa Databbbb PAGE 1 OF 2Order Confirmation QUANTITY CUSTOMER COPY Data1 Data2 814 PCS(SETS) TOTAL SUB TOTAL: PAGE 4 OF 4 TOTAL:100 ) Needle := "iUm)CUSTOMER COPY(.*)((PAGE \d)|(\n\d+ PCS))" spo:=1 while (fpo:=RegexMatch(Data, Needle...
- 17 Mar 2023, 16:32
- Forum: Scripts and Functions (v1)
- Topic: SetClipboardHTML() for V1.1 & V2
- Replies: 29
- Views: 7583
Re: SetClipboardHTML()
I used ChatGPT revised the function. It is supposed to be more reliable. ChatGPT_SetHtmlToClipboard(html) { htmlDoc := ComObjCreate("Htmlfile") htmlDoc.write(html) body := htmlDoc.getElementsByTagName("body")[0] range := htmlDoc.body.createTextRange() range.moveToElementText(body) range.select() ran...
- 12 Mar 2023, 16:25
- Forum: Scripts and Functions (v2)
- Topic: Notepad written in ahk V2
- Replies: 3
- Views: 929
Re: Notepad written in ahk V2
Thank you for sharing!
- 03 Mar 2023, 16:05
- Forum: Scripts and Functions (v2)
- Topic: AutoXYWH() gui resize converted to v2
- Replies: 1
- Views: 670
Re: AutoXYWH() gui resize converted to v2
Thank you!
- 02 Mar 2023, 21:58
- Forum: Scripts and Functions (v1)
- Topic: SetClipboardHTML() for V1.1 & V2
- Replies: 29
- Views: 7583
Re: SetClipboardHTML()
Yes, I only removed the comments. Thank you!william_ahk wrote: ↑02 Mar 2023, 07:18This whole function was generated by ChatGPT, unchanged? Very impressive.
- 01 Mar 2023, 21:36
- Forum: Scripts and Functions (v2)
- Topic: Set HTML to Clipboard - Created by ChatGPT
- Replies: 1
- Views: 1213
Set HTML to Clipboard - Created by ChatGPT
Created by ChatGPT for V1. Manual changed ComObjCreate("HTMLfile") to ComObject("HTMLfile") for V2. html := "<html><body><h1>Hello World!</h1></body></html>" ChatGPT_SetHtmlToClipboard(html) ChatGPT_SetHtmlToClipboard(html) { htmlFile := ComObject("HTMLfile") htmlFile.write(html) bodyRange := htmlFi...
- 01 Mar 2023, 08:06
- Forum: Scripts and Functions (v1)
- Topic: SetClipboardHTML() for V1.1 & V2
- Replies: 29
- Views: 7583
Re: SetClipboardHTML()
This function was generated by ChatGPT . It looks very simple and works for me. Who's version is better? html := "<html><body><h1>Hello World!</h1></body></html>" ChatGPT_SetHtmlToClipboard(html) ChatGPT_SetHtmlToClipboard(html) { htmlFile := ComObjCreate("HTMLfile") htmlFile.write(html) bodyRange :...