Search found 9480 matches

by lexikos
07 Nov 2013, 16:25
Forum: Ask for Help (v1)
Topic: Why a function name can't be followed by spaces?
Replies: 13
Views: 5824

Re: Why a function name can't be followed by spaces?

I'm not sure what you mean by that. The example was not aimed at you, hence being written above "@isurface" rather than below it. I was simply showing another reason why x () is not a function call.
by lexikos
07 Nov 2013, 16:20
Forum: Ask for Help (v1)
Topic: externally-called subroutines inside of function / local var
Replies: 1
Views: 1355

Re: externally-called subroutines inside of function / local

Local variables are erased when the function returns. In your example, the function is never called and never returns.
by lexikos
07 Nov 2013, 02:20
Forum: Ask for Help (v1)
Topic: Why a function name can't be followed by spaces?
Replies: 13
Views: 5824

Re: Why a function name can't be followed by spaces?

Code: Select all

MsgBox (this is not a function call)
@isurface: That's not concatenation. It's a function call with a string containing format codes. Part of the library, not the language. It's also totally different to AutoHotkey's auto-concatenation.
by lexikos
06 Nov 2013, 03:28
Forum: Ask for Help (v1)
Topic: Help needed with Exe2Ahk
Replies: 5
Views: 3574

Re: Help needed with Exe2Ahk

A resource editor is a program you can use to extract a script from an exe - that's all you need to know. One such program is Resource Hacker, as I said. You can find it with Google. All you have to do is open the EXE file in Resource Hacker and look through the list of resources until you find one ...
by lexikos
05 Nov 2013, 00:23
Forum: Ask for Help (v1)
Topic: associative array count?
Replies: 9
Views: 6227

Re: associative array count?

Object.SetCapacity(0) returns the number of key-value pairs in the object, but only after trimming off any unused space. (It could be slow and/or cause more memory fragmentation.)
by lexikos
05 Nov 2013, 00:19
Forum: Ask for Help (v1)
Topic: Manipulating Arrays
Replies: 3
Views: 2360

Re: Manipulating Arrays

Yes, but StringSplit doesn't create an array. It creates a pseudo-array; a bunch of individual variables.

If you have v1.1.13 or later, you can use StrSplit() instead. It returns an array (object).

For arrays (objects), the Insert and Remove methods cover most/all of that functionality.
by lexikos
05 Nov 2013, 00:11
Forum: Ask for Help (v1)
Topic: Help needed with Exe2Ahk
Replies: 5
Views: 3574

Re: Help needed with Exe2Ahk

Exe2Ahk is for scripts compiled with v1.1.00.01 or older. For v1.1.01 and newer you can use a resource editor such as ResHacker/Resource Hacker, or possibly the decompiler which can be found on the other forum.
by lexikos
04 Nov 2013, 16:21
Forum: Ask for Help (v1)
Topic: Load html and images using res:// is not a good idea
Replies: 4
Views: 2241

Re: Load html and images using res:// is not a good idea

That's not relevant. 1) It only works on old versions of AutoHotkey. Now you can use the Win32 resource API instead. 2) You'd still need some way of rendering the images in the WebBrowser control. I don't believe there's any way to avoid temporary files- that's just how IE works. However, if you cre...
by lexikos
04 Nov 2013, 06:31
Forum: Forum Issues
Topic: Bugs CodeBox
Replies: 21
Views: 8865

Re: Bugs CodeBox

It's still working fine here.

Is there a reason that several of the built-in functions just link to #BuiltIn? There should be an anchor for each function - #NumPut and #Round, for instance.
by lexikos
03 Nov 2013, 16:31
Forum: Wish List
Topic: Wishes for ~= (RegExMatch)
Replies: 7
Views: 4524

Re: Wishes for ~= (RegExMatch)

Users can already get use to using a MatchObject. How will using the O option to return an object ease the transition to v2, when v2 doesn't have the O option and doesn't return an object (but stores it in the output var)?
by lexikos
03 Nov 2013, 00:42
Forum: Wish List
Topic: Wishes for ~= (RegExMatch)
Replies: 7
Views: 4524

Re: Wishes for ~= (RegExMatch)

Wade Hatler wrote:I use it because it's easier to read later.
I avoid using it because it isn't...
by lexikos
02 Nov 2013, 21:43
Forum: Forum Issues
Topic: Topic page title
Replies: 23
Views: 11928

Re: Topic page title

Pages in the User Control Panel or Moderator Control Panel have messed up titles. For example: Compose messageUser Control Panel • • AHKScript (an AutoHotkey Forum) View topicModerator Control Panel • • AHKScript (an AutoHotkey Forum) Also, is it necessary to have "(an AutoHotkey Forum)" in the page...
by lexikos
02 Nov 2013, 21:40
Forum: Off-topic Discussion
Topic: Shall we have an official AHK channel without Ops and rules?
Replies: 60
Views: 22371

Re: Shall we have an official AHK channel without Ops and ru

On which you replied "I don't care.", which means you didn't mind me doing so. It is not that you misinterpreted my words, but that you later twisted the truth, that I object to. I neither granted nor denied you permission . To do that I would have to care. Just the idea that a kidbit wants a chann...
by lexikos
02 Nov 2013, 21:08
Forum: Wish List
Topic: [request] PDFor any version of help file
Replies: 16
Views: 5670

Re: [request] PDFor any version of help file

Edit: I pointed out that you can download the documentation from github, but then realized that Wade already mentioned it. Why decompile the help file?
by lexikos
02 Nov 2013, 21:04
Forum: Bug Reports
Topic: Passing object to command in AHK v2
Replies: 2
Views: 2491

Re: Passing object to command in AHK v2

You're right that it doesn't work, but wrong about the reason. With a few specific exceptions, commands are not capable of accepting objects and never have been. ExpandExpression converts the object to a string before returning it, and ExpandArgs puts the string into the deref array which is used by...
by lexikos
02 Nov 2013, 20:55
Forum: Wish List
Topic: Wishes for ~= (RegExMatch)
Replies: 7
Views: 4524

Re: Wishes for ~= (RegExMatch)

I've split your posts from the original thread , which has been moved. ~= is something I added impulsively, to prove that it was possible (and at the time, required only a few lines of code). Aside from a mention in the changelog, it was undocumented for nearly two years. I kept it because of its lo...
by lexikos
02 Nov 2013, 20:19
Forum: Ask for Help (v1)
Topic: Why there's no i) setting for ~= command?
Replies: 4
Views: 2723

Re: Why there's no i) setting for ~= command?

I have moved the thread and split off some loosely related wishes . wow, that's quite a hidden feature. It's no more hidden than for RegExMatch. i) is documented in the RegEx Quick Reference, and is used in exactly the same way regardless of which command/function/operator you are using -- it has al...
by lexikos
01 Nov 2013, 18:21
Forum: Ask for Help (v2)
Topic: assignment in V2
Replies: 9
Views: 5106

Re: assignment in V2

Thanks, but V2 does not support this format. It just needs the Q option, so that the second quote mark is interpreted as a close-quote. var := (Q "This is a string. that is a very long string and it spans multiple lines. " ) MsgBox, % var Of course, the previous two posts show better alternatives.
by lexikos
01 Nov 2013, 18:17
Forum: Ask for Help (v1)
Topic: Sending Gampad Commands
Replies: 1
Views: 7862

Re: Sending Gampad Commands

This requires a virtual joystick driver, such as vJoy, used by this script. It also requires that you use the virtual joystick in-game instead of your actual USB gamepad.

Go to advanced search