| Author |
Message |
Forum: Scripts Topic: SendData() - Sending data between scripts with SendMessage |
| berban |
|
Posted: March 2nd, 2012, 4:39 am
|
|
Replies: 8 Views: 919
|
| In the page for OnMessage() Chris gives a great example of how to send data between two AutoHotkey scripts, an invaluable ability. However just like many other things in the documentation the example doesn't lend itself easily to practical use. This function aims to adapt the method into one that an... |
|
 |
Forum: Scripts Topic: [Scriptlet & WIP] Parsing a csv file |
| berban |
|
Posted: October 26th, 2011, 6:13 pm
|
|
Replies: 0 Views: 338
|
| I often use .csv files to store information that I later read with AutoHotkey. The problem with this is that AutoHotkey can only parse a csv string and not a .csv file. (The difference between the two is that in a .csv file a non-literal linefeed will indicate a new cell.) The following code is pret... |
|
 |
Forum: Scripts Topic: FindClick() - Click an onscreen image, and more |
| berban |
|
Posted: October 24th, 2011, 6:06 pm
|
|
Replies: 17 Views: 2426
|
| FindClick() - Click an onscreen image [updated 3/20/2012] http://www.autohotkey.net/~berban/spacer.png http://www.autohotkey.net/~berban/spacer.png http://www.autohotkey.net/~berban/HorizontalLine.png http://www.autohotkey.net/~berban/spacer.png http://www.autohotkey.net/~berban/spacer.png http://w... |
|
 |
Forum: Scripts Topic: Add an Options param (light & standalone ver.) |
| berban |
|
Posted: October 19th, 2011, 9:26 pm
|
|
Replies: 6 Views: 502
|
| First, why? . If you are familiar with the GUI command, you will know that there is an "Options" parameter. This lets you add a lot of information to the command, for instance an x-coordinate or a particular style. These do not have to be in any particular order. Instead, you indicate whic... |
|
 |
Forum: Scripts Topic: Complex RegEx Collection [Donations Wanted!] |
| berban |
|
Posted: October 8th, 2011, 9:17 am
|
|
Replies: 10 Views: 8541
|
| http://www.autohotkey.net/~berban/shelf.jpg I have a bunch of complex regular expressions that I keep in my back pocket and pull out in times of need. I'm sure you guys do too. This thread is intended to be a repository of those complex phrases, so that we can share our work and help optimize each ... |
|
 |
Forum: Scripts Topic: MultiTap() - Fit many hotkeys into one |
| berban |
|
Posted: September 29th, 2011, 8:05 pm
|
|
Replies: 15 Views: 1300
|
| MultiTap() - Fit many hotkeys into one When I started with AutoHotkey, I followed Chris's example for multi-tap hotkeys as demonstrated in Example #3 of the SetTimer documentation . While the example given is good to demonstrate the possibilites of settimer, it's is a terribly clunky way of going a... |
|
 |
Forum: Scripts Topic: Simple AHK Code Search |
| berban |
|
Posted: September 11th, 2011, 2:04 am
|
|
Replies: 13 Views: 2780
|
| I like this script a lot! I updated it with a few features: ⋅ Ability to change file loop criteria from *.ahk ⋅ Removed Count_SearchDir_Contents, which took up a lot of CPU power ⋅ Made file list update while search is going on ⋅ Added a "Stop this search... |
|
 |
Forum: Scripts Topic: Simple GUI for validating a date |
| berban |
|
Posted: September 9th, 2011, 10:26 am
|
|
Replies: 4 Views: 319
|
| Nothing groundbreaking. Someone on ahk chat needed this functionality so I made it quick for him. Basically, as you enter the date, it will correct inappropriate entries by rounding them to the nearest valid value. It corrects the "Day" field intelligently based on the current "Month&... |
|
 |
Forum: Scripts Topic: RXMS() - RegEx match & split (& parse) |
| berban |
|
Posted: August 30th, 2011, 6:37 am
|
|
Replies: 11 Views: 1954
|
| RXMS() - RegEx multi-match, split, and parse This script adapts AutoHotkey's regular expression implementation to other tasks that are normally limited to a string or character, such as parsing a string. It is particularly useful for parsing large organized strings, such as the contents of a html f... |
|
 |
Forum: Scripts Topic: InputBox() - easy & powerful InputBox implementation |
| berban |
|
Posted: August 19th, 2011, 5:04 am
|
|
Replies: 1 Views: 1520
|
| InputBox() - easy & powerful InputBox implementation Gathering textual user input is a common task, and using AutoHotkey's InputBox command is a great simple way to do this. The following function corrects many shortcomings of the InputBox command, adds a few features, and makes it easier to us... |
|
 |
Forum: Scripts Topic: Clip() - Send and Retrieve Text using the Clipboard |
| berban |
|
Posted: August 19th, 2011, 12:34 am
|
|
Replies: 3 Views: 1414
|
| Clip() - All your clipboard needs in one place This script consolidates two things you do that involve the clipboard: Finding out what text is currently being selected, and sending large amounts of text via Control+V. It also standardizes some features often needed with these operations, and improv... |
|
 |
Forum: Scripts Topic: Quick Functions for Forums |
| berban |
|
Posted: August 19th, 2011, 12:33 am
|
|
Replies: 0 Views: 916
|
| This is a little script to automatically format a forum post, specifically a function. What you do : Write up a report of your script that looks like this, then save it in a text file. TITLE: RXMS() - RegEx multi-match, split, and parse INTRO: This script uses AutoHotkey's regular expression... |
|
 |
Forum: Scripts Topic: String Compare Function - Nonstandard Method |
| berban |
|
Posted: August 13th, 2011, 6:46 am
|
|
Replies: 3 Views: 547
|
| So I needed to compare two strings, and I went about making my own function for it. Then I realized that this has, of course, already been done, even in ahk – which made me feel kind of silly. However, on second consideration, I felt like my method actually might be better than the Damerau–Levenshte... |
|
 |
Forum: Scripts Topic: Poker Hand Evaluator |
| berban |
|
Posted: June 25th, 2011, 4:32 am
|
|
Replies: 9 Views: 1225
|
| Yeah, permutations are a bit of overkill: with a 5 card hand and 7 cards to choose from you get 7*6*5*4*3=2520 permutations. Flushes are easy since order doesn't matter. With pairs & 3-of-a-kinds, order does matter but I could line them up by Sort ing the permutation. The only tricky one is stra... |
|
 |
Forum: Scripts Topic: Poker Hand Evaluator |
| berban |
|
Posted: June 24th, 2011, 7:36 pm
|
|
Replies: 9 Views: 1225
|
| This is just a little toy I made that will hopefully end up on the IRC in some fashion. http://www.autohotkey.net/~berban/Poker.jpg SetBatchLines, -1 NewDeck(), Shuffle() ;Examples: F4:: ;play a game of hold'em with 10 players Start := A_TickCount, Report := "", NewDeck(... |
|
 |
| Sort by: |