Search found 204 matches

by JJohnston2
14 Oct 2016, 15:06
Forum: Ask for Help (v1)
Topic: Pasting in their appropriate fields Topic is solved
Replies: 2
Views: 914

Re: Pasting in their appropriate fields Topic is solved

Have you read any of the help files? What is your development environment? I would suggest downloading SciTE4AutoHotkey (or a similar platform) where you can reference the help files easily (or look at the help topics online). Start with syntax and usage for Objects , which shows different ways to s...
by JJohnston2
14 Oct 2016, 14:45
Forum: Ask for Help (v1)
Topic: WMIC ClientSiteName help
Replies: 4
Views: 1455

Re: WMIC ClientSiteName help

Does anyone know if there is any particular advantage, safety, code clarity, etc. by using the second implementation with ._NewEnum in a While loop, vs. the other code with the for loop?
by JJohnston2
11 Oct 2016, 00:16
Forum: Ask for Help (v1)
Topic: How to get current username (non-admin) when running script as Admin? Topic is solved
Replies: 2
Views: 1776

Re: How to get current username (non-admin) when running script as Admin? Topic is solved

I arrived at this post by way of slogging through a completely different problem in WMI land, only to get stuck at the GetOwner() call. I was wondering if it had a slightly more complicated parameter setup since everything I was trying failed quite nicely... might have figured it out eventually from...
by JJohnston2
07 Oct 2016, 18:49
Forum: Scripts and Functions (v1)
Topic: OfficeInfo - MS Office COM constants
Replies: 9
Views: 6609

Re: OfficeInfo - MS Office COM constants

I had trouble finding ImportTypeLib from the forum link above, I believe it is here -- I'm still not sure which files to grab and load but I'll figure that out eventually. I was also a bit slow trying to figure out exactly what this script was supposed to do, but it LOOKS LIKE it provides all of the...
by JJohnston2
07 Oct 2016, 16:15
Forum: Ask for Help (v1)
Topic: Pass an Object Between Two Scripts
Replies: 5
Views: 2241

Re: Pass an Object Between Two Scripts

These are both great suggestions with solutions I hadn't seen before... thanks.
by JJohnston2
07 Oct 2016, 15:16
Forum: Ask for Help (v1)
Topic: Default Folder for File Open in SciTE
Replies: 1
Views: 1052

Default Folder for File Open in SciTE

Does anyone know if SciTE has a way to set the default folder to open from? i.e., Menu > File > Open > Open File dialog The files in this dialog are typically in a folder that you have either opened from recently or has the file you are working with or something similar. I would like to have this sh...
by JJohnston2
07 Oct 2016, 14:59
Forum: Ask for Help (v1)
Topic: Pass an Object Between Two Scripts
Replies: 5
Views: 2241

Pass an Object Between Two Scripts

I'm looking for a good way to transfer a block of settings between two separate scripts (script1 and script2). This is currently a one-way transfer and could happen via commandline (when starting script2) or using a message handler (after script2 is started). I could also possibly write an INI file ...
by JJohnston2
04 Oct 2016, 11:39
Forum: Ask for Help (v1)
Topic: COM Object Behavior Doesn't Match VBA
Replies: 11
Views: 2493

Re: COM Object Behavior Doesn't Match VBA

I'll look into that, thanks.
by JJohnston2
04 Oct 2016, 11:38
Forum: Ask for Help (v1)
Topic: [SOLVED] ComObjActive doesn't work with script as Admin
Replies: 4
Views: 2924

Re: [SOLVED] ComObjActive doesn't work with script as Admin

There may be a better way, but I run some scripts with Admin and then launch others with reduced privileges if needed to handle the type of case you describe
by JJohnston2
02 Oct 2016, 22:55
Forum: Ask for Help (v1)
Topic: COM Object Behavior Doesn't Match VBA
Replies: 11
Views: 2493

Re: COM Object Behavior Doesn't Match VBA

Does it still work if you remove As OneNote.Application? The OneNote Object Library is listed in the VBA references from running previous test code in VBA, otherwise VBA will highlight the part of the Dim statement you mentioned and return Compile error: User-defined type not defined Deleting altog...
by JJohnston2
02 Oct 2016, 19:43
Forum: Ask for Help (v1)
Topic: COM Object Behavior Doesn't Match VBA
Replies: 11
Views: 2493

Re: COM Object Behavior Doesn't Match VBA

the assignment never comes into play unless you choose "Yes" to continue at the error dialog Understood... it's not even making it to the assignment part of the statement at the time it throws an error. I was just pointing out that that particular line of code fails with the same error whether it's...
by JJohnston2
02 Oct 2016, 19:02
Forum: Ask for Help (v1)
Topic: SciTE Tab Detection
Replies: 1
Views: 590

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 (v1)
Topic: COM Object Behavior Doesn't Match VBA
Replies: 11
Views: 2493

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 (v1)
Topic: COM Object Behavior Doesn't Match VBA
Replies: 11
Views: 2493

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 (v1)
Topic: COM Object Behavior Doesn't Match VBA
Replies: 11
Views: 2493

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 (v1)
Topic: How to get "No Markup" text with Word COM (ComObj)
Replies: 13
Views: 6201

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 (v1)
Topic: How to get "No Markup" text with Word COM (ComObj)
Replies: 13
Views: 6201

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 (v1)
Topic: Rename Process Name of uncompiled scripts
Replies: 17
Views: 8214

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 (v1)
Topic: Update MsgBox dialog text without closing/re-opening Topic is solved
Replies: 2
Views: 1216

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 (v1)
Topic: Update MsgBox dialog text without closing/re-opening Topic is solved
Replies: 2
Views: 1216

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...

Go to advanced search