Search found 193 matches

by JJohnston2
30 Oct 2016, 02:04
Forum: Ask For Help
Topic: Powershell / AHK Integration
Replies: 12
Views: 4362

Re: Powershell / AHK Integration

I don't have the same setup you do but when I run the second command it fails and says it's not recognized as the name of a cmdlet. When you run the second instance 'manually', are you doing it manually from within PowerShell using Get-Hotfix ? or manually from a command prompt via powershell.exe -N...
by JJohnston2
30 Oct 2016, 01:52
Forum: Ask For Help
Topic: Powershell / AHK Integration
Replies: 12
Views: 4362

Re: Powershell / AHK Integration

arrrghhh wrote:I'm realizing that using wmic/comspec is going away partially (if not completely).
Just curious about this... do you have a link by any chance with more info?
by JJohnston2
17 Oct 2016, 11:33
Forum: Ask For Help
Topic: Multiple instances of script appearing in Taskbar tray
Replies: 7
Views: 1429

Re: Multiple instances of script appearing in Taskbar tray

I was able to group a bunch of icons in the tray one time when I had an issue... must have been for something else (maybe a recurring dialog vs. separate script instances). Nice shortcut to kill everything by name.
by JJohnston2
16 Oct 2016, 22:51
Forum: Ask For Help
Topic: When ComObjCreate() never returns
Replies: 6
Views: 1516

When ComObjCreate() never returns

So I found this the other day in the run log for a program that hung... 668: Try 669: outlookApp := ComObjCreate("Outlook.Application") (10984.62) Obviously Try doesn't work if the offending code doesn't throw an exception... it looks like Outlook just went to lunch and never came back. Is there any...
by JJohnston2
16 Oct 2016, 22:35
Forum: Ask For Help
Topic: Multiple instances of script appearing in Taskbar tray
Replies: 7
Views: 1429

Re: Multiple instances of script appearing in Taskbar tray

Your best bet is to fix the problem that got you there, but I've had this happen unintentionally when it's not supposed to. Two options if you have to kill everything: 1) You can have the taskbar group your icons temporarily (since it sounds like you don't have that option set) and then right click ...
by JJohnston2
16 Oct 2016, 20:08
Forum: Ask For Help
Topic: ControlSend command issue Topic is solved
Replies: 13
Views: 1939

Re: ControlSend command issue Topic is solved

All of the COM Object code above is for Word. If you want to use another program go back to your original code.

You can also try ControlFocus if your ControlSend text isn't getting sent the way you think it should be.
by JJohnston2
16 Oct 2016, 13:58
Forum: Ask For Help
Topic: Detect Color click script
Replies: 2
Views: 1735

Re: Detect Color click script

Use SetCoordMode to set pixel coordinates to screen, pick a set of coordinates in the region of interest, then use pixelGetColor as noted above. Something else I've also found handy in regions of 'white' or with some color that is actually shaded (i.e., has color variations vs. pure white 0xFFFFFF),...
by JJohnston2
16 Oct 2016, 13:48
Forum: Ask For Help
Topic: AHK Send Key to Program
Replies: 1
Views: 1062

Re: AHK Send Key to Program

#x::SendInput !{F4}
by JJohnston2
16 Oct 2016, 13:37
Forum: Ask For Help
Topic: ControlSend command issue Topic is solved
Replies: 13
Views: 1939

Re: ControlSend command issue Topic is solved

There are other references for code that utilizes COM Objects... here is some code from a link on the old forum (http://www.autohotkey.com/board/topic/56987-com-object-reference-autohotkey-v11/page-3) You can use the TypeText() method to do this operation in the background or even when the documents...
by JJohnston2
14 Oct 2016, 15:06
Forum: Ask For Help
Topic: Pasting in their appropriate fields Topic is solved
Replies: 2
Views: 777

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
Topic: WMIC ClientSiteName help
Replies: 4
Views: 1255

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
Topic: How to get current username (non-admin) when running script as Admin? Topic is solved
Replies: 2
Views: 1234

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
Topic: OfficeInfo - MS Office COM constants
Replies: 9
Views: 5052

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
Topic: Pass an Object Between Two Scripts
Replies: 5
Views: 1660

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
Topic: Default Folder for File Open in SciTE
Replies: 1
Views: 791

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
Topic: Pass an Object Between Two Scripts
Replies: 5
Views: 1660

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

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
Topic: [SOLVED] ComObjActive doesn't work with script as Admin
Replies: 4
Views: 2020

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

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

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

Go to advanced search