Search found 60 matches

by Wade Hatler
06 Oct 2016, 10:41
Forum: Ask for Help (v1)
Topic: Old script to hide unusued tray icons broken with Win10 update
Replies: 7
Views: 3002

Old script to hide unusued tray icons broken with Win10 update

I have an ancient script written by Sean several years ago that clears out all old tray icons. For instance if you terminate an AHK script or any other program with a tray icon, it will remove the icon from the system tray. The full script is shown below, although it's really just cleanup of somethi...
by Wade Hatler
29 Sep 2014, 15:05
Forum: Ask for Help (v1)
Topic: SOLVED: How to make a menu horizontal instead of vertical
Replies: 3
Views: 2321

Re: Hot to make a menu horizontal instead of vertical

DOH!! You're exactly right. Thanks.

I had tried that, but I made the mistake of not setting the width on the test window, so it was just vertical because it was wrapping. Setting window width fixed it ;)
by Wade Hatler
29 Sep 2014, 13:00
Forum: Ask for Help (v1)
Topic: SOLVED: How to make a menu horizontal instead of vertical
Replies: 3
Views: 2321

SOLVED: How to make a menu horizontal instead of vertical

I'd like to make a topline menu like you'd see in Notepad in an AHK Gui. It's easy to create the menu with something like this: Menu, DocsMenu, Add, Doctype 1, DocsMenu Menu, DocsMenu, Add, Doctype 2, DocsMenu Menu, MainMenu, Add, &Help , Menu_Help Menu, MainMenu, Add, &Documents, :DocsMenu Menu, Ma...
by Wade Hatler
31 Jul 2014, 21:35
Forum: Ask for Help (v1)
Topic: Word VBA "For...Each" to AHK COM script, help.
Replies: 10
Views: 4753

Re: Word VBA "For...Each" to AHK COM script, help.

Yes, you're right there. I find that most MS COM in general is 0..n-1 except for Office Interop, which is mostly 1..n because most of it started out as VBA. Don't count on it though, because I've seen 0..n-1 here and there.
by Wade Hatler
31 Jul 2014, 17:48
Forum: Ask for Help (v1)
Topic: Word VBA "For...Each" to AHK COM script, help.
Replies: 10
Views: 4753

Re: Word VBA "For...Each" to AHK COM script, help.

Good catch. You're correct that it doesn't have a .Length parameter, but it also won't index from the Ranges object. You have to use Ranges.Item[n] and it's 1.nn instead of 0..n-1. This works: App := ComObjActive("Word.Application") Ranges := App.ActiveDocument.StoryRanges Loop % ranges.Count { MsgB...
by Wade Hatler
31 Jul 2014, 17:06
Forum: Ask for Help (v1)
Topic: Does AutoHotKey still operate within Citrix windows?
Replies: 4
Views: 6034

Re: Does AutoHotKey still operate within Citrix windows?

Tank is correct. What you're seeing when you start a Citrix session is the Citrix client - not your application, and it doesn't expose much of anything you can reliably automate from the client. You can try to find things on the screen with ImageSearch, but it's really unreliable because there are t...
by Wade Hatler
31 Jul 2014, 16:58
Forum: Wish List
Topic: Citrix Client Object
Replies: 3
Views: 4559

Re: Citrix Client Object

It appears to be a simple Active-X Object, so you can probably just hit it with ComObjCreate. I'm doing some Citrix work as we speak, so I may take a look at it. I'll report back if I learn anything useful.
by Wade Hatler
31 Jul 2014, 16:52
Forum: Ask for Help (v1)
Topic: Word VBA "For...Each" to AHK COM script, help.
Replies: 10
Views: 4753

Re: Word VBA "For...Each" to AHK COM script, help.

UNTESTED : I didn't test this in your example, but I've used it before for COM enumeration with some success. This is a script I found on the forum some time ago, but don't know who wrote it. ComObjEnum(obj) { if ComObjType(obj) & 0x2000 ; if *obj* is a SafeArray return, obj else if ComObjType(obj)...
by Wade Hatler
03 Jul 2014, 18:12
Forum: Ask for Help (v1)
Topic: Help with RegexMatch and text from file
Replies: 5
Views: 2518

Re: Help with RegexMatch and text from file

One other thing to watch out for is the difference between CRLF and LF only line ends. Code in inline variables typically has only LF at the end of each line (`n), while code read from disk will sometimes have CRLF and sometimes will have LF only, depending on how the file was written and read. Easy...
by Wade Hatler
31 Jan 2014, 19:19
Forum: Scripts and Functions (v1)
Topic: AutoHotkey_L Fork With Improved Debugging Support
Replies: 7
Views: 5281

Re: AutoHotkey_L Fork With Improved Debugging Support

My apologies for the long delay in replying. Looks like I wiped that folder out when I rebuild my website. I've reuploaded it, so go to the very first message in this thread and grab the link from there. Everything is as described in that post, including only ANSI support and some superfluous error ...
by Wade Hatler
30 Dec 2013, 19:14
Forum: Ask for Help (v1)
Topic: Embed WinWord in GUI
Replies: 1
Views: 1808

Embed WinWord in GUI

Anyone know if it's possible to embed a Word viewer in a GUI control. Back in the VB6 days there was an OLE Container Control that could embed Word documents without the menus, but that capability is deprecated and seems hard to find. I don't have VB6 readily available anymore to experiment with. I'...
by Wade Hatler
30 Dec 2013, 18:58
Forum: Ask for Help (v1)
Topic: How to combine multiple scripts in one?
Replies: 11
Views: 20951

Re: How to combine multiple scripts in one?

DOH!! You're right ;)
by Wade Hatler
30 Dec 2013, 15:20
Forum: Ask for Help (v1)
Topic: Send multiple keys?
Replies: 2
Views: 24078

Re: Send multiple keys?

Good explanation. The only thing I would add is that if the string of text might contain anything that could be a special character, such as ^!#+{} , the second Send should really be a SendRaw , which sends the string as raw text without special processing , or Send {Raw} which disables special proc...
by Wade Hatler
30 Dec 2013, 15:13
Forum: Forum Issues
Topic: New Home page up
Replies: 92
Views: 66035

Re: New Home page up

I'm digging the new page. Very clean design. The AutoHotkey v2 link is a little confusing. It points to an Alpha Branch of AutoHotkey_L which may be V2 but it doesn't give anyone any sense of what it's about. That's the only link I found to be confusing. Might also be worth pointing out that Iron AH...
by Wade Hatler
30 Dec 2013, 15:01
Forum: Ask for Help (v1)
Topic: How to combine multiple scripts in one?
Replies: 11
Views: 20951

Re: How to combine multiple scripts in one?

I think the last post was correct. Memory usage is trivial, but it still is a lot nicer to have everything in one script. I have one script with a couple thousand lines that I keep running all the time, and I like that better than having a lot of small ones. I would basically start with the biggest ...
by Wade Hatler
15 Dec 2013, 12:16
Forum: Ask for Help (v1)
Topic: In use file/folder
Replies: 13
Views: 6866

Re: In use file/folder

Agree on using handle.exe as mentioned above. I've been using it for years, and it works in most but not all cases. It always seems to work if a file is being held open by the local file, but doesn't always work when a file is open across the network. It is however the best solution I've found. One ...
by Wade Hatler
12 Dec 2013, 21:23
Forum: Other Utilities & Resources
Topic: AutoHotkey Search - (Google)
Replies: 28
Views: 16010

Re: AutoHokey Search - (Google)

It looks like the problem is with the Ghostery addin. It's an addin that blocks most ad trackers, so it looks like something you're doing in the page .JS is triggering it. I haven't looked at the page source to see what it is or if it's legitimate, but disabling that adding makes it work.
by Wade Hatler
12 Dec 2013, 16:09
Forum: Other Utilities & Resources
Topic: AutoHotkey Search - (Google)
Replies: 28
Views: 16010

Re: AutoHokey Search - (Google)

On my system, doesn't seem to work with Firefox 25. Search box never gets generated. Thought it might be GreaseMonkey or something so tried it in Safe Mode and still no-go. Works OK with Chrome and IE. P.S. Firefox has an easy way to do those kind of searches so I probably wouldn't use the web site ...
by Wade Hatler
10 Dec 2013, 14:42
Forum: General Discussion
Topic: A Github organisation for ahkscript
Replies: 245
Views: 185475

Re: A Github organisation for ahkscript

+1 for Good Idea
by Wade Hatler
06 Dec 2013, 18:20
Forum: Scripts and Functions (v1)
Topic: AutoHotkey_L Fork With Improved Debugging Support
Replies: 7
Views: 5281

Re: AutoHotkey_L Fork With Improved Debugging Support

That makes sense. It will take more changes to the code than I was hoping for, but they're all low risk changes and your suggestion is better. I'll do it when I fix Unicode and 64bit.

Thanks,

Go to advanced search