Search found 5818 matches

by lexikos
Yesterday, 18:01
Forum: Ask For Help
Topic: define hotkey with modifier in loop
Replies: 2
Views: 54

Re: define hotkey with modifier in loop

You can simply concatenate.

Code: [Select all]GeSHi © Codebox Plus

Loop, 26
Hotkey, % "+" Chr(A_Index + 64), DoSomething


key := % Chr(A_Index + 64)
This is tolerated by the program, but invalid. The percent sign should be removed.
by lexikos
Yesterday, 17:56
Forum: Ask For Help
Topic: Icons included in AutoHotkey.exe
Replies: 1
Views: 48

Re: Icons included in AutoHotkey.exe

There is one green H icon (RT_GROUP_ICON) which includes three bitmaps (RT_ICON). This icon is shown by Explorer when you look at AutoHotkey.exe or a shortcut to AutoHotkey.exe, or in the Start menu if you have AutoHotkey there, and it is also used by the program's main window , GUI windows and the ...
by lexikos
Yesterday, 17:45
Forum: Ask For Help
Topic: Starting AHK Script from Visual Studio 2017 C# Code
Replies: 2
Views: 34

Re: Starting AHK Script from Visual Studio 2017 C# Code

.net - Launching an application (.EXE) from C#? - Stack Overflow

You can launch either the .ahk file itself or AutoHotkey.exe with the .ahk file as an argument.
by lexikos
Yesterday, 17:41
Forum: About This Community
Topic: Google is blocking autohotkey.com
Replies: 24
Views: 763

Re: Google is blocking autohotkey.com

That's exactly how I would do, but some people are just really clueless about computer stuff, I'm sure you've witnessed your fair share... If I were writing an article teaching how to uninstall a program, I would include both methods. For our purposes though, it's fine as it is. process(es) To be c...
by lexikos
Yesterday, 03:44
Forum: About This Community
Topic: Google is blocking autohotkey.com
Replies: 24
Views: 763

Re: Google is blocking autohotkey.com

On your computer, close all AutoHotkey scripts and process. I think that should be "all AutoHotkey scripts and process es ", though "and process(es)" seems redundant. Setup automatically closes running scripts (including Ahk2Exe) and the help file, but I suppose including that a...
by lexikos
Yesterday, 02:37
Forum: Ask For Help
Topic: This variable has not been assigned a value after running some other scripts.
Replies: 3
Views: 45

Re: This variable has not been assigned a value after running some other scripts.

That is because, as it says, the variable has not been assigned a value. It would have started when you added the SC029 hotkey at the top of the script. See the FAQ: Why do some lines in my script never execute?
by lexikos
20 Jul 2018, 21:12
Forum: Offtopic
Topic: Return from function - True or 1?
Replies: 20
Views: 220

Re: Return from function - True or 1?

The effect of the code is not the most important aspect in the context of best practices (consider comments, for instance). True does not just mean "the number 1", even though it has that value - the added meaning is the whole reason for having True and False . Return True shows that the f...
by lexikos
20 Jul 2018, 17:10
Forum: Scripts and Functions
Topic: .NET Framework Interop (CLR, C#, VB)
Replies: 140
Views: 31982

Re: .NET Framework Interop (CLR, C#, VB)

CLR assemblies contain CLR IL code and metadata, not compiled machine code. Your file is neither 32-bit nor 64-bit. Setting the target platform to something other than "Any CPU" only restricts how the file can be loaded. See Visual Studio .NET Platform Target Explained : Visual Studio Hack...
by lexikos
19 Jul 2018, 22:49
Forum: AutoHotkey v2 Development
Topic: AHK V2: function reference works to class prototype method but not class instance method
Replies: 8
Views: 158

Re: AHK V2: function reference works to class prototype method but not class instance method

There is only one MyClassPrototype.MyMethod, not one instance of the method for each instance of the object. Putting aside addresses, MyClass.MyMethod will give you a function object which is in no way associated with an instance. To call it, you would need to pass the instance, e.g. .Call(MyCla...
by lexikos
19 Jul 2018, 22:33
Forum: Scripts and Functions
Topic: .NET Framework Interop (CLR, C#, VB)
Replies: 140
Views: 31982

Re: .NET Framework Interop (CLR, C#, VB)

I have certainly seen instances where x64 AHK does not seem to like loading x86 DLLs, There is no 64-bit executable that can load a 32-bit dll for execution. In the Ctor, the 2nd param is a GumboWrapperOptions class, There is no such class. It is a struct. I do not think you can pass this struct be...
by lexikos
17 Jul 2018, 02:03
Forum: Scripts and Functions
Topic: .NET Framework Interop (CLR, C#, VB)
Replies: 140
Views: 31982

Re: .NET Framework Interop (CLR, C#, VB)

Probably the wrong .NET Framework version, or bitness (32-bit vs 64-bit, though I think some assemblies are both).
by lexikos
17 Jul 2018, 02:01
Forum: AutoHotkey v2 Development
Topic: AHK V2, Object(obj): is doc correct?
Replies: 6
Views: 139

Re: AHK V2, Object(obj): is doc correct?

I assumed so when I replied, but didn't care to mention it.

v1: Object(obj) [calls AddRef and returns the object's address].
v2: Object(obj) no longer [calls AddRef and returns the object's address].

I'm sure someone can fix it.
by lexikos
14 Jul 2018, 22:36
Forum: Wish List
Topic: #define MAX_HOTKEYS 1000
Replies: 2
Views: 217

Re: #define MAX_HOTKEYS 1000

See test build. It seems I exaggerated the cost.
by lexikos
14 Jul 2018, 22:35
Forum: Announcements
Topic: Test build - increased max hotkeys to 32762
Replies: 1
Views: 177

Test build - increased max hotkeys to 32762

v1.1.29.01-3+ga4de083 This test build removes the limit of 1000 hotkeys previously imposed by the internal use of fixed-size arrays. There is a limit of 32762 (0x7FF9) hotkeys based on the range of ID values available. Compared to the jump from 1000 to 32k, the cost of further increasing the limit ...
by lexikos
14 Jul 2018, 22:05
Forum: AutoHotkey v2 Development
Topic: Downloading v2
Replies: 11
Views: 640

Re: Downloading v2

DrReflex, tank and joedf manage the website and forum. I have a responsibility to ensure the binaries I upload are malware-free. Beyond that, I have no wish to spend my time fighting against Google and antivirus vendors or otherwise managing the site. Perhaps copies of the email warnings from Google...
by lexikos
14 Jul 2018, 19:19
Forum: Ask For Help
Topic: How can I link GUI vVariables with elements of an object
Replies: 6
Views: 124

Re: How can I link GUI vVariables with elements of an object

Array elements are not "variables" and cannot be assigned to GUI controls. It is not necessary to name each Edit control. You can refer to it by ClassNN or HWND. For instance, use the HWND VarName option when creating the control to get its HWND and then copy the value of VarName into an a...
by lexikos
14 Jul 2018, 19:11
Forum: AutoHotkey v2 Development
Topic: AHK V2, Object(obj): is doc correct?
Replies: 6
Views: 139

Re: AHK V2, Object(obj): is doc correct?

Is what doc correct?

You seem to expect Object(obj) to return an address, but the document you quoted is telling you it does not do that anymore.

If there is any reference to Object(obj) in the actual v2 documentation, it is an error left over from v1.
by lexikos
14 Jul 2018, 01:47
Forum: Ask For Help
Topic: Key & any key?
Replies: 6
Views: 146

Re: Key & any key?

If the requirements stated in the OP are met, < will click LButton even when you intend to use it as Ctrl. There may be trouble if you aren't conscious of the mouse position when you use the hotkey. That aside, there are methods simpler than those shown above. The first method puts LCtrl down uncond...

Go to advanced search