| View previous topic :: View next topic |
| Author |
Message |
tic
Joined: 22 Apr 2007 Posts: 1353
|
Posted: Fri Oct 26, 2007 2:33 am Post subject: Whole load of necessary updates to ahk |
|
|
Ok I know many of these have already been requested, but I just wanna write them down so I know I have. I think theyre necessary updates:
UrlDownloadToFile:
Should have the option download to var or file. Should have timeouts on connect and download.
Multithreading:
Very requested feature, and i know it would be hard to do! but I think it is invaluable. I think at least set a certain number of threads that are allowed, say 3 for example, to make it more manageable. I think what it does is self explanatory
Update Listview:
I asked before, but its not possible now. Listview needs the ability to place checkboxes and icons in whichever column required, as well as being able to add other controls, such as a progress bar
Update to Add text and edit:
There still doesnt appear to be a way to write different styles of text to the same line. So for example you cant add bold and non bold text to the same line. The only workaround is to set the new style on a line and then write the text x+5 afterwards which is ridiculous as it is unmanagable and does not give the correct spacing on different peoples systems due to visual styles.
FoundPos for RegexMatch
Self explanatory. Very annoying using regexmatch just to find a position to pass to RegexReplace
Im sure there are more, but ill post them when I remember. thanks for listening 
Last edited by tic on Wed Dec 19, 2007 8:29 pm; edited 5 times in total |
|
| Back to top |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 2558 Location: Australia, Qld
|
Posted: Fri Oct 26, 2007 2:50 am Post subject: Re: Whole load of necessary updates to ahk |
|
|
| tic wrote: | | Should have the option download to var or file. Should have timeouts on connect and download. | You want UrlDownloadToFile to download into a variable? Why not simply use UrlDownloadToVar?
| Quote: | | Whole load of necessary updates to ahk | IMO, none of these are necessary. I think it would be more meaningful to name the thread something like "UrlDownloadToVar, Multithreading, Listview subcontrols." (Not that I think these requests should be grouped.)
Also, for future reference: | Chris wrote: | AutoHotkey isn't designed to support multiple threads except in the case of the keyboard/mouse hook (which both share a second thread when they're active). Therefore, AutoHotkey isn't thread-safe, particularly when it comes to reading/writing variables. Therefore if the second thread does anything that interferes with something the main thread is doing (or vice versa), using multiple threads in a script might cause unexpected behavior or possibly even crashes.
It's also possible there could be other problems just from the mere existence of a second thread that is running parts of the script in parallel with the main thread. The program simply isn't designed to do that. An extensive code-review would be necessary if anyone wants to verify that it's safe.
AutoHotkey doesn't currently support multiple process-threads due to the need to make many sections thread-safe, which in turn would:
1) Increase code size.
2) Reduce performance in many areas due to the need to enforce thread-safety.
3) Be very costly in development time (probably 4-8 weeks of full-time work). |
From real thread handling (page 2) |
|
| Back to top |
|
 |
tic
Joined: 22 Apr 2007 Posts: 1353
|
Posted: Fri Oct 26, 2007 3:07 am Post subject: Re: Whole load of necessary updates to ahk |
|
|
| lexikos wrote: | | tic wrote: | | Should have the option download to var or file. Should have timeouts on connect and download. | You want UrlDownloadToFile to download into a variable? Why not simply use UrlDownloadToVar?
| Quote: | | Whole load of necessary updates to ahk | IMO, none of these are necessary. I think it would be more meaningful to name the thread something like "UrlDownloadToVar, Multithreading, Listview subcontrols." (Not that I think these requests should be grouped.) |
because i already use that and would like it to be built in, and have them all added to one function, rather than using 1 function for timeouts, 1 function to download to var and another to download to file. I do think they are necessary or I wouldnt have posted |
|
| Back to top |
|
 |
tic
Joined: 22 Apr 2007 Posts: 1353
|
|
| Back to top |
|
 |
tic
Joined: 22 Apr 2007 Posts: 1353
|
Posted: Sun Oct 28, 2007 5:07 pm Post subject: |
|
|
| Update to Add text and edit added. This would be very handy |
|
| Back to top |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 2558 Location: Australia, Qld
|
Posted: Mon Oct 29, 2007 2:24 am Post subject: |
|
|
| Standard Windows text controls (Static controls) don't support anything but basic formatting. There would be little point in adding complex formatting to a Static control, since we already have RichEdit and HiEdit. |
|
| Back to top |
|
 |
Thalon
Joined: 12 Jul 2005 Posts: 640
|
Posted: Tue Oct 30, 2007 9:01 am Post subject: |
|
|
There are 2 things I would like to see from above list.
The timeout for UrlDownloadToFile (because the command doesn't work here and causes a freeze at scripts trying it) and the checkboxes/images for Listview-Columns.
Thalon _________________ AHK-Icon-Changer
AHK-IRC
deutsches Forum
SacredVault |
|
| Back to top |
|
 |
|