| Author |
Message |
Forum: Offtopic Topic: Unicode or UTF8 |
| Jamie |
|
Posted: June 17th, 2011, 3:12 pm
|
|
Replies: 3 Views: 303
|
| Unicode is not an encoding. It is basically a standard set of symbols and a family of encodings for those symbols. UTF-8 is one such encoding. UTF-16 is another. UTF-8 is common for "text files" including AHK scripts, while the Windows API calls expect UTF-16. Unicode AHK_L translates to U... |
|
 |
Forum: Offtopic Topic: HardwareSend |
| Jamie |
|
Posted: June 8th, 2011, 12:38 am
|
|
Replies: 8 Views: 485
|
| I think this is a good idea but I don't think it's necessary to have a physical device. You could make a device driver that behaves the same way. I have thought about making such a device driver. If the keypresses originate at the driver level they should be truly indistinguishable from real physica... |
|
 |
Forum: Suggestions Topic: UTF-8 Build of AHK_L |
| Jamie |
|
Posted: March 21st, 2011, 3:54 pm
|
|
Replies: 4 Views: 603
|
| Whenever I see "ANSI" my brain translates that into "ASCII with the caveat that if I'm going to try to handle non-ASCII characters (which is not common), I will need to put in a bunch of extra effort to make sure stuff works correctly". The thing about UTF-8 that I find so appeal... |
|
 |
Forum: Offtopic Topic: Crackers always decode the serial numbers of SW apps, why ? |
| Jamie |
|
Posted: March 21st, 2011, 9:42 am
|
|
Replies: 28 Views: 2066
|
| ^^That will just make the software totally unusable in situations where it is being used on a computer without a constant Internet connection or where a firewall is up and can't be opened... Besides, that could probably be patched by someone watching the connection in Wireshark and figuring out wha... |
|
 |
Forum: Scripts Topic: SW copy protection |
| Jamie |
|
Posted: March 21st, 2011, 8:16 am
|
|
Replies: 289 Views: 53752
|
| One thing I often do is make "false" represent success, because it lets me more easily return more information if there is a failure. In PHP I often return the empty string (false) for success, and for failure I return a string describing the reason for the failure. If false represents fai... |
|
 |
Forum: Support Topic: Constant "if" check |
| Jamie |
|
Posted: February 9th, 2011, 6:13 pm
|
|
Replies: 9 Views: 338
|
| untested, just off the top of my head: F1::RunMe() F2::wake := 1 WakeableSleep(msec) { global wake iters := msec // 100 rem := mod(msec, 100) if (wake) { wake := 0 return 1 } Loop, %iters% { if (wake) { wake := 0 return 1 } Sleep,... |
|
 |
Forum: Scripts Topic: List Manipulation |
| Jamie |
|
Posted: February 9th, 2011, 5:43 pm
|
|
Replies: 18 Views: 2276
|
| This looks good. Using delimiters at the beginning and the end is good to distinguish a list with no elements from a list with a single empty string. And it also allows the simple and fast search using InStr. It's also clever to use StringGetPos with L%StartIndex% to skip over elements. I'm going to... |
|
 |
Forum: Offtopic Topic: multiple accounts at the same time |
| Jamie |
|
Posted: February 8th, 2011, 4:56 pm
|
|
Replies: 2 Views: 1853
|
| I do this with IE8 to access multiple accounts at the same time: Run, "C:\Program Files\Internet Explorer\iexplore.exe" -noframemerging -private %url% InPrivate is useful to prevent using whatever cookies you might happen to have stored, which may contain a prior identity. noframemerging i... |
|
 |
Forum: Support Topic: COM leaking? Maybe shouldn't call ObjectFromLresult? |
| Jamie |
|
Posted: February 8th, 2011, 4:32 pm
|
|
Replies: 0 Views: 348
|
| Executive summary: I would like to replace the ObjectFromLresult call with the "proper" way of doing things, but I don't know enough about COM to know what to replace it with. Can someone suggest an alternative? I have a script in AHK Basic that uses COM and Sean's IEReady function . It ru... |
|
 |
Forum: Support Topic: Imagesearch. Two machines. |
| Jamie |
|
Posted: February 4th, 2011, 9:12 am
|
|
Replies: 8 Views: 284
|
| Yes, you are correct, for a color R, G, B, and shades of variation N, any color R', G', B' will be considered a match as long as abs(R-R') <= N and abs(G-G') <= N and abs(B-B') <= N. Happy? |
|
 |
Forum: Support Topic: Imagesearch. Two machines. |
| Jamie |
|
Posted: February 4th, 2011, 7:04 am
|
|
Replies: 8 Views: 284
|
| Read the manual. I hope that helps. |
|
 |
Forum: Support Topic: any idea for a solution? virtual desktops and stuff |
| Jamie |
|
Posted: February 4th, 2011, 6:51 am
|
|
Replies: 1 Views: 192
|
| Most virtual desktops work by hiding and restoring sets of windows on the single true desktop, to give the appearance of multiple desktops. While a window is hidden (on a desktop that is not being viewed) it is somewhat like being minimized in that it's hard to send clicks to it, and you can't Image... |
|
 |
Forum: Support Topic: Imagesearch. Two machines. |
| Jamie |
|
Posted: February 4th, 2011, 6:33 am
|
|
Replies: 8 Views: 284
|
| Setting one display to 16-bit and another to 32-bit color depth is enough to cause ImageSearch to fail if the shades of variation is set to zero. Try a few shades of variation and see if that helps. If you're looking for a fragment of text (not a good idea), in many programs there can also be differ... |
|
 |
Forum: Offtopic Topic: Is Piracy This Centuries Equivalency to Slavery? |
| Jamie |
|
Posted: January 22nd, 2011, 6:32 pm
|
|
Replies: 32 Views: 1191
|
| It's not a crime until you try to make money off of someones else's work. ... I'm just saying that IS how the law works. I can post anything anywhere as long as I don't ask for money or attach my name to it. WRONG. At least in the US, it's still illegal. The laws will always be slow to adapt to tec... |
|
 |
Forum: Scripts Topic: C++ imagesearch |
| Jamie |
|
Posted: January 22nd, 2011, 5:51 pm
|
|
Replies: 3 Views: 852
|
| Here ya go. Enjoy. This code is under GPL by the way. ResultType Line::ImageSearch(int aLeft, int aTop, int aRight, int aBottom, char *aImageFile) // Author: ImageSearch was created by Aurelian Maga. { // Many of the following sections are similar to those in PixelSearch(), so t... |
|
 |
| Sort by: |