Search found 6001 matches

by lexikos
18 Oct 2018, 20:39
Forum: Scripts and Functions
Topic: ScriptInfo(): Get ListLines/ListVars/ListHotkeys/KeyHistory text
Replies: 13
Views: 2711

Re: ScriptInfo(): Get ListLines/ListVars/ListHotkeys/KeyHistory text

The script is not compatible with a100, because the Control parameter is now mandatory.

Just change ,"ahk_id" hEdit to hEdit (remove the comma and string).
by lexikos
16 Oct 2018, 22:10
Forum: Ask For Help
Topic: Can't get script to run
Replies: 4
Views: 99

Re: Can't get script to run

Applying the registry patch (by simply downloading the file and double-clicking it) should have removed the association with Notepad, leaving the default association with AutoHotkey (which is in a separate part of the registry). what fixed this was right clicking on my script and associating it with...
by lexikos
16 Oct 2018, 22:01
Forum: AutoHotkey v2 Development
Topic: Any key as modifier sugestion
Replies: 4
Views: 161

Re: Any key as modifier sugestion

And without breaking their default actions and other shortcut combinations. You can't have it both ways. Either the native function is blocked and the key acts like a modifier, or the native function is not blocked and this interferes with its use as a modifier. If the native function is blocked, y...
by lexikos
16 Oct 2018, 21:25
Forum: AutoHotkey v2 Development
Topic: Suggestion: Binary Integers
Replies: 4
Views: 81

Re: Suggestion: Binary Integers

Most of the formatting for each value is done with a C runtime function similar to printf. All of the type characters and flags supported by Format except for U, L and T are implemented by passing them to this function. Octal is supported merely because the Microsoft's printf supports it; on our end...
by lexikos
16 Oct 2018, 03:23
Forum: AutoHotkey v2 Development
Topic: Objects
Replies: 10
Views: 300

Re: Objects

I have put Object.ahk and Object.Errors.ahk in my lib folder and tried running the example found in Errors.md . It doesn't seem like the ErrorDialog is pointing to the right line though. I downloaded a fresh copy of the repository (as a zip), extracted, renamed the "Object.ahk-master" folder to "Li...
by lexikos
16 Oct 2018, 03:00
Forum: AutoHotkey v2 Development
Topic: Objects
Replies: 10
Views: 300

Re: Objects

I think some examples of how the new usage would work might be helpful. Have you looked at the test cases (class Tests)? They're very arbitrary, but any examples I might come up with right now would be much the same. Reading through some of the documentation on GitHub, it sounded as if you were thi...
by lexikos
15 Oct 2018, 20:35
Forum: About This Community
Topic: Question about code publishing
Replies: 15
Views: 668

Re: Question about code publishing

I omitted this part, as was specifically referring to if the interpreter can impose restrictions on the user's copyright of their script. And the AutoHotkey interpreter can not . Speaking generally, the GPL can and does impose restrictions on a work as a whole, including the parts which you hold co...
by lexikos
15 Oct 2018, 05:55
Forum: About This Community
Topic: Question about code publishing
Replies: 15
Views: 668

Re: Question about code publishing

Are you saying that AutoHotkey_L uses no code from AutoHotkey_Basic? And thus you have exclusive rights and ownership of the AutoHotkey language that overrides that of Chris Mallett. Meaning, you are the sole or main copyright holder of AutoHotkey, in regards to any dispute concerning the GPL? Noth...
by lexikos
15 Oct 2018, 03:27
Forum: About This Community
Topic: Question about code publishing
Replies: 15
Views: 668

Re: Question about code publishing

However, if you visit the GNU GPL website and read what they wrote, to include the direct quotes from them that I gave in my previous post, it's clear that they (the GNU GPL itself) don't have an issue with selling. They state so multiple times, that it's OK to sell. I didn't say anything at all ab...
by lexikos
13 Oct 2018, 20:31
Forum: About This Community
Topic: Question about code publishing
Replies: 15
Views: 668

Re: Question about code publishing

It appears that Chris, who has openly stated that he is fine with the commercial use of scripts and compiled EXEs from AutoHotkey, would ultimately be the deciding factor of what is or is not to be done . False. AutoHotkey contains source code by many authors. Some of them cannot be contacted (as f...
by lexikos
13 Oct 2018, 19:00
Forum: Ask For Help
Topic: How to prevent Gui gLabels to trigger when resetting all controls? Topic is solved
Replies: 8
Views: 194

Re: How to prevent Gui gLabels to trigger when resetting all controls? Topic is solved

Ok, I understand the concept of the EN_Change but since I was not using this particular OnMessage() to monitor anything, I am not able to make it affect the script the way its currently written. You're not making sense. It does not matter whether you were using OnMessage before. Just copy-paste the...
by lexikos
13 Oct 2018, 18:55
Forum: AutoHotkey v2 Development
Topic: Objects
Replies: 10
Views: 300

Objects

Over the last 16 months, I have created a script library to test a number of ideas for potential changes to how objects work. Object.ahk Summary of changes implemented by the script: Separate data and interface: array elements and properties/methods are separated, and generic objects do not have arr...
by lexikos
13 Oct 2018, 16:29
Forum: Ask For Help
Topic: Collect keystrokes as long as a hotkey is pressed?
Replies: 1
Views: 39

Re: Collect keystrokes as long as a hotkey is pressed?

In general, you can use a key-up hotkey ( [i]keyname[/i] up:: ) which calls the Input command with no parameters to terminate any other Input in progress. However, if your goal is to override Windows' built-in handling of Alt-Numpad without disabling the other normal functions of Alt, I don't think ...
by lexikos
13 Oct 2018, 16:02
Forum: Ask For Help
Topic: Move a window with no title bar
Replies: 5
Views: 105

Re: Move a window with no title bar

The Text control won't be autosized, but you can change its size with GuiControl and then autosize the Gui (Gui, Show, AutoSize).
by lexikos
13 Oct 2018, 15:59
Forum: Ask For Help
Topic: How to prevent Gui gLabels to trigger when resetting all controls? Topic is solved
Replies: 8
Views: 194

Re: How to prevent Gui gLabels to trigger when resetting all controls? Topic is solved

I tried to understand how to implement EN_Change but its a bit too advanced yet for me. It's not difficult; one can just copy and paste the Suppress() function definition and call OnMessage(0x111, Func("Suppress"), Suppress ? 1 : 0) after either setting Suppress to true or false or replacing Suppre...
by lexikos
12 Oct 2018, 22:21
Forum: Ask For Help
Topic: How to prevent Gui gLabels to trigger when resetting all controls? Topic is solved
Replies: 8
Views: 194

Re: How to prevent Gui gLabels to trigger when resetting all controls? Topic is solved

As far as I am aware, only the Edit control calls its g-label when changed by GuiControl (or any other means). I suppose that your options are: Change each label to detect the reset (or empty content) and avoid doing anything. Remove each g-label ( GuiControl -g ) before resetting the control and re...
by lexikos
12 Oct 2018, 19:40
Forum: Ask For Help
Topic: Move a window with no title bar
Replies: 5
Views: 105

Re: Move a window with no title bar

[How To] Enable Drag for a GUI without a Titlebar - Tutorials (archive forum)

If you want to detect clicks anywhere on the GUI (not just on the text control as in the tutorial), you can monitor the WM_LBUTTONDOWN message.
by lexikos
12 Oct 2018, 16:37
Forum: Ask For Help
Topic: prevent send from being triggered by another send
Replies: 2
Views: 59

Re: prevent send from being triggered by another send

F7 & x::1 is fine as it is, with AutoHotkey v1.1.27.01 or later. You just need $1:: or #UseHook (which would apply to all hotkeys if you just put it at the top of your script).
by lexikos
12 Oct 2018, 16:31
Forum: Ask For Help
Topic: Passing variables to second script
Replies: 9
Views: 127

Re: Passing variables to second script

Legacy Syntax explains =. := is part of Expressions . Expression syntax can be more daunting for new users because there is a lot more to it, but that really just means it is more flexible and all-encompassing. As a new user, you are much better off learning expressions as soon as possible (even ju...
by lexikos
12 Oct 2018, 16:24
Forum: Ask For Help
Topic: Can't get script to run
Replies: 4
Views: 99

Re: Can't get script to run

Whenever I try to force Autohotkey to run through the start menu the Help file pops up. Did you read the page that popped up? Specifically the "Why am I seeing this?" part, and click the links. When I right click on my script file, I don't get the option to Run directly from the script. Try applyin...

Go to advanced search