Search found 17 matches
- 13 Apr 2015, 20:57
- Forum: Ask For Help
- Topic: Are dual key operations possible in AHK?
- Replies: 13
- Views: 4055
Re: Are dual key operations possible in AHK?
Well, I explained * and ~. I put a link in my post to the documentation. And they don't really go in front of a line of code, only in front of the name of a hotkey, there's a difference since code can be multiline and also doesn't even need a hotkey to function. You can use AHK script as a regular s...
- 12 Apr 2015, 10:46
- Forum: Ask For Help
- Topic: Are dual key operations possible in AHK?
- Replies: 13
- Views: 4055
Re: Are dual key operations possible in AHK?
Also makes you wonder with whomever came up with putting the power/sleep keys on the keyboard why they couldn't have made it so you had to hold down another key like say the shift key while doing so, that would've been so much better. I mean it can't possibly be that hard. Though perhaps not intuiti...
- 12 Apr 2015, 10:09
- Forum: Ask For Help
- Topic: Are dual key operations possible in AHK?
- Replies: 13
- Views: 4055
Re: Are dual key operations possible in AHK?
I really understand. If you think those power keys up top are bad, on my old keyboard they were embedded right between the arrow keys and the home keys, so I would sometimes sleep the computer when I was reaching up from the arrow keys to the home keys. Unfortunately even with autohotkey you can't r...
- 11 Apr 2015, 22:21
- Forum: Ask For Help
- Topic: Are dual key operations possible in AHK?
- Replies: 13
- Views: 4055
Re: Are dual key operations possible in AHK?
No, I tried at first to do both right and left shift just to see if I could, It didnt work though since when I'm holding down both, then my keyboard doesn't register the capslock key at all. Then I thought I only really need the right shift to keep me from hitting it accidentally, so I just did that...
- 11 Apr 2015, 19:45
- Forum: Ask For Help
- Topic: Are dual key operations possible in AHK?
- Replies: 13
- Views: 4055
Re: Are dual key operations possible in AHK?
Hmm, I'm not sure if it's related, but I was trying to setup a hotkey the other day to only toggle capslock when I held both shift keys and then press capslock, but it didn't register, I'm guessing maybe a scancode conflict or something. I did change it to RShift + Capslock and I haven't had any pro...
- 04 Sep 2014, 07:26
- Forum: Tutorials
- Topic: The Unofficial Known Issues and Gotchas List
- Replies: 10
- Views: 8575
Re: The Unofficial Known Issues and Gotchas List
Hmm, I think I just tried the ctrl+Win thing on my newer keyboard and it seemed to work by the key log(didn't make a hotkey to test). I think I last tried it on a much older keyboard, so that was probably the problem.
- 03 Aug 2014, 14:17
- Forum: Ask For Help
- Topic: Shouldn't Abs() and math operation(s) return blank("")?
- Replies: 11
- Views: 2946
Re: Shouldn't Abs() and math operation(s) return blank("")?
Hmm, I'm guessing that the space and tab are getting ignored as white space, but a new line isn't. Just like whitespace is mostly ignored in command arguments.
- 02 Aug 2014, 14:19
- Forum: Ask For Help
- Topic: Reversing orders of arrays/strings/lists
- Replies: 29
- Views: 7660
Re: Reversing orders of arrays/strings/lists
Hmm, I just tested that. I created a really huge string(16000 characters) and ran it through each function 10 times and averaged it out. I also used Critical as that's been giving me better results. StrReverse took between 6 to 16 times longer for me with a 16000 character string than my reverse_str...
- 02 Aug 2014, 07:49
- Forum: Ask For Help
- Topic: Reversing orders of arrays/strings/lists
- Replies: 29
- Views: 7660
Re: Reversing orders of arrays/strings/lists
Yeah, I only wrote the first function that way since I wasn't sure how efficient the append operation was, but I guess it's not too bad if you allocate the memory first with VarSetCapacity. I know that in the past I've had trouble where appending characters onto a string repeatedly constantly reallo...
- 01 Aug 2014, 21:50
- Forum: Ask For Help
- Topic: Reversing orders of arrays/strings/lists
- Replies: 29
- Views: 7660
Reversing orders of arrays/strings/lists
I was just wondering what the most efficient way of reversing string, array, and list order would be. I define a "list" as a delimited string like "1,2,3" or "A|B|C" or even "The quick brown fox..."(space is the delimiter", etc. For a string the best I can think of is this:(Only really tested with A...
- 18 Jul 2014, 16:09
- Forum: Tutorials
- Topic: The Unofficial Known Issues and Gotchas List
- Replies: 10
- Views: 8575
Re: The Unofficial Known Issues and Gotchas List
There's also a few other things that are limitations of either the operating system or autohotkey. Unable to detect power, sleep, wakeup keys in almost all instances(Believe me I've tried.) I think this is because with USB keyboards at least it doesn't send a keystroke but a Usage ID that seems to b...
- 18 Jul 2014, 15:24
- Forum: Tips and Tricks
- Topic: My Tips/Tricks for hotkeys
- Replies: 1
- Views: 6626
My Tips/Tricks for hotkeys
This is just some random stuff I've come up with while playing with Autohotkey over the years. They are just my opinions and you're welcome to disagree with them. When making global hotkeys, use care using hotkeys with only ctrl, alt, and/or shift and function/letter keys as there's a very real poss...
- 16 Jul 2014, 05:57
- Forum: Ask For Help
- Topic: Interesting Tidbit Ctrl+ScrollLock = CtrlBreak
- Replies: 0
- Views: 770
Interesting Tidbit Ctrl+ScrollLock = CtrlBreak
Yes, apparently it's left over from some relatively ancient keyboards that didn't have their own Pause/Break key. I have no idea why it's still included besides maybe now being standard and nobody had a problem with it. I found it by accident when I was trying to find an obscure hotkey for some of m...
- 20 Jun 2014, 00:06
- Forum: Ask For Help
- Topic: Calling code automatically
- Replies: 2
- Views: 994
Re: Calling code automatically
Dang, I thought I was so brilliant coming up with that on my own. In my case I made a function to compile a list of initialization functions to run, and then run them toward the end of the autoexec section. The register function only registered their own function. In this way they can register thems...
- 19 Jun 2014, 23:09
- Forum: Ask For Help
- Topic: Calling code automatically
- Replies: 2
- Views: 994
Calling code automatically
Yeah, I'm wondering if there's any better way of doing this. I don't like to have to scroll to the top of my script to put all the startup code for the different parts at the top of my script in the autoexec section. Right now I have a bit of code that calls labels with an incremental number. Like P...
- 19 Jun 2014, 21:33
- Forum: Wish List
- Topic: Recording Components in SoundGet/SoundSet
- Replies: 3
- Views: 1744
Re: Recording Components in SoundGet/SoundSet
Sigh, I was afraid of that. If you ask me, this should've been put in from the beginning, I mean it couldn't possibly have been that much work, only a few extra constants, and now I guess it's too late. I guess if I /really/ want it then I'll have to figure out mixer API calls, which I'm not sure if...
- 19 Jun 2014, 12:57
- Forum: Wish List
- Topic: Recording Components in SoundGet/SoundSet
- Replies: 3
- Views: 1744
Recording Components in SoundGet/SoundSet
Okay, I have Win XP and Realtek HD Audio Input/Output. I can access the output volume of everything, but not the input volume with SoundGet/SoundSet. After doing a general passover of an old copy of AHK source code I have. I think I've discovered why. AHK only uses the component constants for source...