Search found 193 matches

by JJohnston2
02 Oct 2016, 19:02
Forum: Ask For Help
Topic: SciTE Tab Detection
Replies: 1
Views: 471

SciTE Tab Detection

Does anyone have any ideas for detecting the number of SciTE tabs open? I am looking to determine if more than one file is open for editing. Now that I write that... knowing how many files SciTE has open might also suffice (if I can relate that back to how many tabs are open, since it may not be a 1...
by JJohnston2
02 Oct 2016, 15:53
Forum: Ask For Help
Topic: COM Object Behavior Doesn't Match VBA
Replies: 11
Views: 2040

Re: COM Object Behavior Doesn't Match VBA

The second error indicates that either evaluation of obj.Windows succeeded and .CurrentWindow produced the error, or it failed but giving a different error despite being the exact same sub-expression. FYI, attempted assignment of objWin:=obj.Windows also results in 0x8002801D - Library not register...
by JJohnston2
02 Oct 2016, 02:11
Forum: Ask For Help
Topic: COM Object Behavior Doesn't Match VBA
Replies: 11
Views: 2040

Re: COM Object Behavior Doesn't Match VBA

The returned object is valid, it just doesn't appear to have any of the properties or methods available that would be normally be returned using the same syntax with OneNote 2010, or using the VBA code above with OneNote 2016. For Office 2010: The items are enumerated correctly for the object return...
by JJohnston2
30 Sep 2016, 20:39
Forum: Ask For Help
Topic: COM Object Behavior Doesn't Match VBA
Replies: 11
Views: 2040

COM Object Behavior Doesn't Match VBA

With OneNote 2016, the method I was expecting to instantiate a COM Object doesn't work for me the same way it does in OneNote 2010. Furthermore, if I try what I understand to be as close to equivalent code as possible in VBA (using Excel), it works ok. The following code works when executed in Excel...
by JJohnston2
29 Sep 2016, 23:54
Forum: Ask For Help
Topic: How to get "No Markup" text with Word COM (ComObj)
Replies: 13
Views: 4990

Re: How to get "No Markup" text with Word COM (ComObj)

In VBA you should have different window sections... usually project tree on the top left, properties on the bottom left, and then on the right, an Immediate window on the bottom, and code window on the top. If you don't have an immediate window, go to Menu > View > Immediate Window. Immediate window...
by JJohnston2
28 Sep 2016, 01:18
Forum: Ask For Help
Topic: How to get "No Markup" text with Word COM (ComObj)
Replies: 13
Views: 4990

Re: How to get "No Markup" text with Word COM (ComObj)

Thanks for posting a copy of your routine... looks like that might come in handy. For future ref, if you run into MSDN documentation for VBA with enum constansts such as Word.WdSaveOptions.wdDoNotSaveChanges , open an immediate window in VBA and print them using debug.print or "?" to get the const v...
by JJohnston2
28 Sep 2016, 01:12
Forum: Scripts and Functions
Topic: Rename Process Name of uncompiled scripts
Replies: 17
Views: 6008

Re: Rename Process Name of uncompiled scripts

I am not answering a particular post in this thread, but I wound up modifying exe() previously to copy AutoHotkey.exe to the name of my script and launching that copy with the script as the argument. That winds up with multiple .exe files that are really just copies of AutoHotkey but it was an easy ...
by JJohnston2
30 Jul 2016, 19:33
Forum: Ask For Help
Topic: Update MsgBox dialog text without closing/re-opening Topic is solved
Replies: 2
Views: 878

Re: Update MsgBox dialog text without closing/re-opening Topic is solved

I should have been able to figure that out... can't believe how simple it is.

Thanks... exactly what I was looking for.
by JJohnston2
30 Jul 2016, 17:10
Forum: Ask For Help
Topic: Update MsgBox dialog text without closing/re-opening Topic is solved
Replies: 2
Views: 878

Update MsgBox dialog text without closing/re-opening Topic is solved

Does anyone know if there's a way to update the dialog text in a MsgBox without closing the message box (perhaps via time-out) and re-opening it with new text to display? i.e., some kind of SendMessage command or window property that could be changed once the MsgBox has launched? I know I can achiev...
by JJohnston2
20 Jul 2016, 14:48
Forum: Tutorials
Topic: Tutorial of some One Line Logic in AutoHotkey
Replies: 9
Views: 9351

Re: Tutorial of some One Line Logic in AutoHotkey

I like the ternary demo code showing it in a multi-line view for multiple selections... I hadn't thought about it doing it that way before (or at least initially before collapsing it into a single line)--it makes a multi-case ternary statement very clear.
by JJohnston2
19 Jul 2016, 23:24
Forum: Scripts and Functions
Topic: KeyValStore.ahk - Convenient data persistence
Replies: 4
Views: 2311

Re: KeyValStore.ahk - Convenient data persistence

This is a great way to store object-based program settings without implementing the save/restore functions... very convenient.
by JJohnston2
05 Jul 2016, 22:36
Forum: Ask For Help
Topic: Array Concatenation
Replies: 12
Views: 2904

Re: Array Concatenation

That's actually what I was looking to see if I could, simple example case. Thanks for posting.
by JJohnston2
04 Jul 2016, 03:08
Forum: Ask For Help
Topic: Set Script Icon in Alt+Tab Window
Replies: 3
Views: 1477

Set Script Icon in Alt+Tab Window

Under the Window Appearance section of the GUI help topic, there is some code to load an icon that will show up in the Alt+Tab Task Switcher... hIcon32 := DllCall("LoadImage", uint, 0 , str, "My Icon.ico" ; Icon filename (this file may contain multiple icons). , uint, 1 ; Type of image: IMAGE_ICON ,...
by JJohnston2
04 Jul 2016, 02:52
Forum: Ask For Help
Topic: Array Concatenation
Replies: 12
Views: 2904

Re: Array Concatenation

Thanks. At least figured it was worth asking in case it was possible to insert one array into another or something like that.
by JJohnston2
04 Jul 2016, 02:22
Forum: Ask For Help
Topic: Array Concatenation
Replies: 12
Views: 2904

Array Concatenation

Is it possible to concatenate two arrays with an operator or method, vs. looping all the elements individually (in one of the arrays) and pushing them to the target array?
by JJohnston2
20 Jun 2016, 22:15
Forum: Ask For Help
Topic: Help with COM within a larger macro
Replies: 2
Views: 683

Re: Help with COM within a larger macro

Is Outlook open before running this code? If not, try replacing ComObjActive with ComObjCreate . Also, I'm not sure you need the "true" argument to email.Display()... there are certain cases where the AutoHotkey true/false booleans don't match the object boolean values (I don't remember off the top ...
by JJohnston2
20 Jun 2016, 22:08
Forum: Ask For Help
Topic: can i just send a copy action, but no any key action?
Replies: 6
Views: 1662

Re: can i just send a copy action, but no any key action?

What program do you want this to work with?

You can also customize keyboard shortcuts (i.e., sending certain keystrokes for a given action) to only work for certain programs.
by JJohnston2
11 Jun 2016, 23:49
Forum: Ask For Help
Topic: Unlinking Win7 Tray Icons
Replies: 4
Views: 848

Re: Unlinking Win7 Tray Icons

Yes, makes sense to me as well that the tray icon settings are all the same. The installer option was worth a shot but didn't work (for this anyway--I'm sure it does just fine at not grouping taskbar buttons on the taskbar). Running a copy of Sean's "tray icons info" script to extract information on...
by JJohnston2
11 Jun 2016, 15:10
Forum: Ask For Help
Topic: Unlinking Win7 Tray Icons
Replies: 4
Views: 848

Unlinking Win7 Tray Icons

I have a few scripts that I usually run in an uncompiled state with an auto-reload monitor that will reload them if the script gets updated and saved. These scripts are launched separately (separate threads / instances of AutoHotkey, launched with the run command), have their own icons, and would ot...
by JJohnston2
11 Jun 2016, 14:50
Forum: Ask For Help
Topic: HyperLinks in Auto Hot Key
Replies: 12
Views: 3586

Re: HyperLinks in Auto Hot Key

I have automated some of the URL dialogs for Office programs but have never considered being able to directly insert a link straight from the clipboard... I'd be interested in seeing a working example of this if you get something working.

Go to advanced search