Search found 60 matches
- 06 Dec 2013, 14:12
- Forum: Scripts and Functions (v1)
- Topic: AutoHotkey_L Fork With Improved Debugging Support
- Replies: 7
- Views: 5281
AutoHotkey_L Fork With Improved Debugging Support
AutoHotkey_L++ (more like L += .0001) I have created a small fork of AutoHotkey_L for experimental purposes with several new debugging features. I hope to merge the code back into the main branch after more testing. The REAL AutoHotkey is the Lexikos Version on GitHub . All my changes are geared ar...
- 06 Dec 2013, 12:27
- Forum: Wish List
- Topic: Prevent decompile like IronAHK
- Replies: 45
- Views: 20107
Re: Prevent decompile like IronAHK
Look at this Forum Post which appears to offer at least some level of obfuscation.
- 05 Dec 2013, 20:40
- Forum: Ask for Help (v1)
- Topic: Run *RunAs problem [SOLVED]
- Replies: 13
- Views: 13546
Re: Run *RunAs
You don't actually need to drop back to usermode. The second instance would be running with elevated privileges, and it exits as soon as it's done writing, and the first instance does the rest of the processing, so you'd be OK with the strategy above, but making a .REG file and loading that works ju...
- 05 Dec 2013, 20:01
- Forum: Ask for Help (v1)
- Topic: Run *RunAs problem [SOLVED]
- Replies: 13
- Views: 13546
Re: Run *RunAs
There are a lot of ways to skin that cat. One way, which I assume you're proposing, is to have a single script that goes through and executes the bulk of the processing, and it uses the *RunAs verb to rerun itself with an elevated prompt when necessary. It's as good a way as any, and if you're doing...
- 05 Dec 2013, 17:57
- Forum: Ask for Help (v1)
- Topic: Run *RunAs problem [SOLVED]
- Replies: 13
- Views: 13546
Re: Run *RunAs
Correct. The snipped didn't work for me.
P.S. This snippet assumes no command line parameters. If you want to re-run exactly what you're running, you'd have to generate the rest of the command line as well. I have a snipped to do that if you need it.
P.S. This snippet assumes no command line parameters. If you want to re-run exactly what you're running, you'd have to generate the rest of the command line as well. I have a snipped to do that if you need it.
- 05 Dec 2013, 17:14
- Forum: Ask for Help (v1)
- Topic: Run *RunAs problem [SOLVED]
- Replies: 13
- Views: 13546
Re: Run *RunAs
I think it's because *RunAs verb doesn't handle file association right. This works:
Code: Select all
Run *RunAs "%A_AhkPath%" "%A_ScriptFullPath%"
- 21 Nov 2013, 11:18
- Forum: Ask for Help (v1)
- Topic: Can you make a Func() reference to a Static/Class Method?
- Replies: 20
- Views: 9422
Re: Can you make a Func() reference to a Static/Class Method
Thanks guys. It all makes sense now.
- 19 Nov 2013, 20:19
- Forum: Ask for Help (v1)
- Topic: Can you make a Func() reference to a Static/Class Method?
- Replies: 20
- Views: 9422
Can you make a Func() reference to a Static/Class Method?
Anyone know a way to make a Func reference to a Static/Class method? For example, in the code below I'd like to be able to make a Func() reference that calls TestClass.TestMethod() , but can't quite figure out the syntax or even if it's possible. class TestClass { TestMethod() { MsgBox TestMethod } ...
- 13 Nov 2013, 11:32
- Forum: Ask for Help (v1)
- Topic: Generic GetParameters Function
- Replies: 7
- Views: 3108
Re: Generic GetParameters Function
Didn't know about that. That's impressive work. I'll look at it a more closely.
- 12 Nov 2013, 14:16
- Forum: Ask for Help (v1)
- Topic: Generic GetParameters Function
- Replies: 7
- Views: 3108
Re: Generic GetParameters Function
That all makes sense, and pretty much what I expected. I've been putting the code in the gives me the information I want with editor macros which are pretty efficient, but not very pretty. Maybe one of these days I'll add a bit of introspection capabilities to AHK, but for the moment I'll just carry...
- 09 Nov 2013, 12:31
- Forum: Wish List
- Topic: One line if statements
- Replies: 6
- Views: 4213
Re: One line if statements
Agree on the ternary operator. I use it about 90% of the time when I would be tempted to make a 1-line if statement. In fact, I usually do that even in languages that do have 1-line if statements. One minor caution. The examples above are just how I do it, but eg~="^\d$" is not the same as eg is num...
- 08 Nov 2013, 17:07
- Forum: Ask for Help (v1)
- Topic: Generic GetParameters Function
- Replies: 7
- Views: 3108
Re: Generic GetParameters Function
I want it for debugging and crash messages. For example, if I have a generic exception handler that takes any unhandled exception, and wraps it up with a bunch of debugging information. I'd like to be able to have the names and values of the parameters, not just variadics, but all the parameters pas...
- 08 Nov 2013, 14:17
- Forum: Ask for Help (v1)
- Topic: Generic GetParameters Function
- Replies: 7
- Views: 3108
Generic GetParameters Function
Is there a reliable way from inside a function I get a list of the parameters passed. In Python I would use their "introspection" features to get access to a hash table that contains the local parameters (the key is the name of the parameter, and the value is the value passed in). Is there any way t...
- 08 Nov 2013, 14:02
- Forum: Ask for Help (v1)
- Topic: Using A_screenHeight etc as optional parameters?
- Replies: 5
- Views: 2609
Re: Using A_screenHeight etc as optional parameters?
I program in one other language that allows you to use expressions as optional parameters. It's a very cool feature, although in practice I don't use it as much as you would think - maybe 2-3% of my functions. The technique shown above works well. What I usually do is reserve a special word like NAD...
- 07 Nov 2013, 12:15
- Forum: Ask for Help (v1)
- Topic: Shortcutkey works only once?
- Replies: 8
- Views: 6451
Re: Shortcutkey works only once?
You're correct that it should work. The ~ allows the click to go through to the underlying window, so I guess there's some chance it's getting hung processing the mouse event, but it's a longshot. Try it without the ~. I just tried it with a 1-liner exactly as you showed and it works on my machine r...
- 06 Nov 2013, 22:27
- Forum: Ask for Help (v1)
- Topic: Why a function name can't be followed by spaces?
- Replies: 13
- Views: 5717
Re: Why a function name can't be followed by spaces?
I love auto concatenation myself, and if you don't like it you can always use the . Operator.
- 05 Nov 2013, 19:32
- Forum: Ask for Help (v1)
- Topic: Shortcutkey works only once?
- Replies: 8
- Views: 6451
Re: Shortcutkey works only once?
Here's another handy trick I use all the time. Some scripts are just not very stable because they depend on a whole bunch of actions, timing, what you have running, etc. Whenever I have a hotkey that will fail a high percentage of the time, I put the action in a very small script, and just launch it...
- 05 Nov 2013, 00:21
- Forum: Ask for Help (v1)
- Topic: Manipulating Arrays
- Replies: 3
- Views: 2343
Re: Manipulating Arrays
.Insert(value) works like push()
.Remove() without parameters works like pop()
.Insert(1, value) inserts at the beginning
.Insert(key, value) is like splice
Objects
.Remove() without parameters works like pop()
.Insert(1, value) inserts at the beginning
.Insert(key, value) is like splice
Objects
- 04 Nov 2013, 22:05
- Forum: Ask for Help (v1)
- Topic: Shortcutkey works only once?
- Replies: 8
- Views: 6451
Re: Shortcutkey works only once?
It's probably hung up in the hotkey handler. Use ListLines to see the last line that was executed and most of the time you'll see it right away.
- 03 Nov 2013, 12:55
- Forum: Wish List
- Topic: [request] PDFor any version of help file
- Replies: 16
- Views: 5589
Re: [request] PDFor any version of help file
Unzip it and search for the words. Don't really know what you're trying to do, but just unzipping to a folder and using Explorer's "Search" box will probably get you what you want. If not, you can search using any GREP tool (I like dnGrep ), or write a small script to go through the files and search...