Search found 6039 matches

by lexikos
10 Oct 2018, 16:27
Forum: Ask For Help
Topic: Simplifying Block of Code using Variables Topic is solved
Replies: 3
Views: 191

Re: Simplifying Block of Code using Variables Topic is solved

I would recommend reading about Functions , and using those instead of gosub. Functions are designed to accept parameters. For example: GrabData(Num) { WinActivate, ProgramBillingWorkbook.xlsm - Excel Xl := ComObjActive("Excel.Application") ;creates a handle to your currently active excel sheet Clie...
by lexikos
10 Oct 2018, 15:56
Forum: Ask For Help
Topic: Copy Folders without copying subfolders
Replies: 2
Views: 101

Re: Copy Folders without copying subfolders

@TheDewd: If one wants to copy only files, one can just use FileCopy with a wildcard and no loop. I don't think that's what henryblack wants. copy the main folders in a directory but exclude the subfolders So in other words, copy the first level of subfolders but no deeper. You can use the same prin...
by lexikos
09 Oct 2018, 19:08
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 545
Views: 103697

Re: Suggestions on documentation improvements

I just thought this might benefit from mentioning that setting UAC to its lowest setting, i.e "never notify", doesn't actually (necessarily?) disable UAC and the process is still being elevated by RunAs on my Win7 and 10 systems. On all of the Windows 7 systems that I have set to "never notify", it...
by lexikos
08 Oct 2018, 16:06
Forum: Forum Issues
Topic: Maintenance
Replies: 51
Views: 3132

Re: Maintenance

Somehow it seems v2.0-a100 was removed and version.txt was reverted to a99. I've fixed it.
by lexikos
08 Oct 2018, 15:56
Forum: Ask For Help
Topic: Run As Administrator (*RunAs) 32-bit vs. 64-bit issue
Replies: 2
Views: 143

Re: Run As Administrator (*RunAs) 32-bit vs. 64-bit issue

This is due to the file system redirector. Whether it will be an issue depends on what you're doing with the command prompt. There are workarounds, such as using SysNative or disabling file system redirection temporarily as mentioned in the Microsoft documentation.
by lexikos
07 Oct 2018, 19:29
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 545
Views: 103697

Re: Suggestions on documentation improvements

Looks like I missed adding ControlGetClassNN.htm in commit 9d505530. I'll add it.

I replaced A_IPAddress with SysGetIPAddresses but probably didn't think to add it to commands/index.htm since A_IPAddress isn't a command.

As for other suggestions for improvements, I'll leave it to any volunteer.
by lexikos
07 Oct 2018, 03:00
Forum: AutoHotkey v2 Development
Topic: AutoHotkey versions
Replies: 17
Views: 846

Re: AutoHotkey versions

There hasn't been much in the way of new script-breaking changes since that last conversion guide update, and it doesn't look like there will be many in future It may appear that way because v2-thoughts is missing some significant things that I haven't written about, either because I'm still slowly...
by lexikos
06 Oct 2018, 23:44
Forum: Ask For Help
Topic: Is there a way to clear function stack, i.e to avoid stack overflow? Topic is solved
Replies: 4
Views: 281

Re: Is there a way to clear function stack, i.e to avoid stack overflow? Topic is solved

Is there a way to clear function stack, i.e to avoid stack overflow? Yes. Return. Or exit the thread, which effectively returns repeatedly until reaching the code which launched the thread. ahk has a 603 level recursion limit... Not exactly. Each system thread (AutoHotkey only uses one to execute s...
by lexikos
06 Oct 2018, 22:08
Forum: Ask For Help
Topic: Is there anything contrary to a 'trans'
Replies: 4
Views: 256

Re: Is there anything contrary to a 'trans'

Examples of what? The only code part is to use the Trans option after editing the image as I described. Use any image editor of your choosing. I would suggest Paint.net since it is free and can do quite a lot.
by lexikos
05 Oct 2018, 22:52
Forum: AutoHotkey v2 Development
Topic: AutoHotkey v2 alpha (UPDATES)
Replies: 54
Views: 32444

v2.0-a100-52515e2

Merge pull request #111 from HelgeffegleH/AutoHotkey_L (validation of A_CoordMode). Changed A_CoordMode to require a non-empty value on assignment. Changed ComObjValue() and ComObjFlags() to require a valid ComObject. Changed Func.IsOptional(n) and Func.IsByRef(n) to throw if n is invalid. Changed u...
by lexikos
05 Oct 2018, 20:54
Forum: Ask For Help
Topic: Disable hotkeys when textbox selected
Replies: 2
Views: 119

Re: Disable hotkeys when textbox selected

For a reply it doesn't open up a separate window. I would set Outlook to always open a new window instead of replying "inline" in the preview pane. Outlook 2013: Disable the Inline Reply Feature . (Probably applies to 2016 and 2019 as well.) I would presume you want the hotkey to depend on keyboard...
by lexikos
05 Oct 2018, 20:43
Forum: Ask For Help
Topic: Shift and plus as hotkey Topic is solved
Replies: 3
Views: 176

Re: Shift and plus as hotkey Topic is solved

++::+ is not a hotkey. It is a remapping - a shortcut for creating two hotkeys with specific behaviour. By design, AutoHotkey v1 does not "release" the Shift modifier when it sends the target key, so you are effectively "remapping" Shift-Plus to Shift-Plus. (AutoHotkey v2 fixes it to automatically ...
by lexikos
05 Oct 2018, 04:21
Forum: Ask For Help
Topic: Problems with Windows 10 64 bit
Replies: 1
Views: 136

Re: Problems with Windows 10 64 bit

There is absolutely no reason for this code to not work on Windows 10 64-bit in particular. If your script file is in "files\some-subfolder" (e.g. C:\files\some-subfolder\script.ahk), the directory will be set as expected. Either this isn't the issue, or your folder structure is different. I would s...
by lexikos
04 Oct 2018, 19:47
Forum: Ask For Help
Topic: Joystick RT, LT, and arrow LS, RS
Replies: 1
Views: 157

Re: Joystick RT, LT, and arrow LS, RS

By arrow buttons do you mean the d-pad/JoyPOV? This and the trigger axis (assuming this is an Xbox-compatible controller) are not supported as hotkeys, so it depends entirely on how you are detecting them. In other words, you should post your code. In general, one would use a timer to detect when th...
by lexikos
04 Oct 2018, 19:36
Forum: Ask For Help
Topic: Is there anything contrary to a 'trans'
Replies: 4
Views: 256

Re: Is there anything contrary to a 'trans'

I want to scan only the colors I specify.
That's simple. In the image you are searching for, replace all colors you don't want to "scan" with a single color that you don't want to scan, then use that with the Trans option.
by lexikos
01 Oct 2018, 05:58
Forum: AutoHotkey v2 Development
Topic: Will AutoHotkey v2 Syntax Be More Confusing For Newbies?
Replies: 12
Views: 1227

Re: Will AutoHotkey v2 Syntax Be More Confusing For Newbies?

Apparently I missed some posts. I also got a server error but apparently posted twice (which is twice more than I thought). I've deleted the duplicate.

I believe that the v1 syntax being "easier" to read for beginners or closer to English is only superficial, if even true, and offers no real benefit.
by lexikos
01 Oct 2018, 04:28
Forum: AutoHotkey v2 Development
Topic: Will AutoHotkey v2 Syntax Be More Confusing For Newbies?
Replies: 12
Views: 1227

Re: Will AutoHotkey v2 Syntax Be More Confusing For Newbies?

However, the point was to mention it, and maybe look again at the perspective of non-programmers and new people. So you've mentioned it, and nothing has changed. Unless someone can offer a new perspective, regardless of their level of experience, this is futile. "Non-programmers and new people" are...
by lexikos
30 Sep 2018, 15:57
Forum: AutoHotkey v2 Development
Topic: Nothing.
Replies: 24
Views: 1613

Re: Nothing.

Thanks for the input, and let me reiterate:
lexikos wrote:No, this is not part of any plan. It is just a bunch of thoughts and hypotheticals that I wrote down in response to someone indirectly requesting null, as I wrote at the top.
No change happening here, just discussion.
by lexikos
30 Sep 2018, 05:15
Forum: AutoHotkey v2 Development
Topic: Will AutoHotkey v2 Syntax Be More Confusing For Newbies?
Replies: 12
Views: 1227

Re: Will AutoHotkey v2 Syntax Be More Confusing For Newbies?

I'm not sure this is really a "new" topic. Arguably, Version 1 syntax is more easily understood. So you say, but haven't actually posed an argument as I see it. That is just subjective opinion. Many others have done the same, with very few giving a plausible explanation. The legacy syntax might seem...
by lexikos
29 Sep 2018, 07:08
Forum: Ask For Help
Topic: AHK Compiler not working correctly after update
Replies: 13
Views: 670

Re: AHK Compiler not working correctly after update

I already did a complete uninstall and any trace of AHK was deleted from my laptop. If no one else is having these issues with either an update or clean install, that, to me, pretty clearly indicates that either there are traces you haven't removed (which AutoHotkey likely is not responsible for cr...

Go to advanced search