Search found 204 matches

by JJohnston2
10 Dec 2016, 16:26
Forum: Ask for Help (v1)
Topic: [SOLVED] COM Object for Active Word Window
Replies: 6
Views: 3736

Re: [SOLVED] COM Object for Active Word Window

I have always been confused by that statement as well ("the Acc method you use in the first example is mostly useful when Excel is in edit mode")--thanks for clarification. Also thanks for posting that last code snippet autocart, hadn't seen that before (or hadn't tried to look at the difference ret...
by JJohnston2
19 Nov 2016, 16:35
Forum: Ask for Help (v1)
Topic: Powershell / AHK Integration
Replies: 12
Views: 6195

Re: Powershell / AHK Integration

And on the previous note about Microsoft transitioning to PowerShell, looks like they just ditched the traditional command prompt for Win 10 and made it a PowerShell prompt
by JJohnston2
17 Nov 2016, 00:25
Forum: Ask for Help (v1)
Topic: Tray sequence of AHK icons
Replies: 5
Views: 1178

Re: Tray sequence of AHK icons

Running a separate .ahk file does not make it a separate executable, but regarding the order, it is determined by Windows. Separating them into separate executables however makes them run in fixed spots for me since they are not grouped as a single executable under AutoHotkey.exe. To see what I mean...
by JJohnston2
16 Nov 2016, 01:03
Forum: Ask for Help (v1)
Topic: Powershell / AHK Integration
Replies: 12
Views: 6195

Re: Powershell / AHK Integration

I see. I don't do a lot of work in that arena so was just curious... appreciate your insights. Thanks.
by JJohnston2
14 Nov 2016, 23:59
Forum: Ask for Help (v1)
Topic: Tray sequence of AHK icons
Replies: 5
Views: 1178

Re: Tray sequence of AHK icons

Windows likes to group icons of the same executable which can be a real headache sometimes. My issue was that I couldn't make some icons hidden while keeping others visible. I eventually went to using an adaptation of exe() to run each script as it's own executable, afterwhich they can be arranged o...
by JJohnston2
14 Nov 2016, 02:38
Forum: Forum Issues
Topic: Server Emergency Maintanance Notification Notification
Replies: 1
Views: 1297

Re: Server Emergency Maintanance Notification Notification

Back up and running for me without any special cache or cookie clearing... thanks!
by JJohnston2
13 Nov 2016, 00:23
Forum: Ask for Help (v1)
Topic: List of all Invalid Filename Characters Topic is solved
Replies: 5
Views: 2036

Re: List of all Invalid Filename Characters Topic is solved

Joe, thank you for the code... appreciate that a lot.
by JJohnston2
11 Nov 2016, 02:37
Forum: Ask for Help (v1)
Topic: List of all Invalid Filename Characters Topic is solved
Replies: 5
Views: 2036

Re: List of all Invalid Filename Characters Topic is solved

Yeah that's what I was looking for. Not with those search terms though... thanks :thumbsup:
by JJohnston2
11 Nov 2016, 01:32
Forum: Ask for Help (v1)
Topic: List of all Invalid Filename Characters Topic is solved
Replies: 5
Views: 2036

List of all Invalid Filename Characters Topic is solved

Does anyone know of a handy routine adapted or developed from scratch that checks for invalid filename characters in Windows? (i.e., if I go to rename a file and want to throw an earlier error before actually trying to do the rename) Or perhaps just the list of characters that should be stripped fro...
by JJohnston2
30 Oct 2016, 19:56
Forum: Ask for Help (v1)
Topic: Collection of Objects
Replies: 4
Views: 1209

Re: Collection of Objects

Thank you all for example code... very helpful. The code from nnnik is closest to what I was looking for. If I change the init routine to be This.__InitialValue:=Object() then it operates pretty much as I was hoping for. In the __Get(Key) routine, what is the purpose of cloning This.__InitialValue ?...
by JJohnston2
30 Oct 2016, 02:41
Forum: Ask for Help (v1)
Topic: Collection of Objects
Replies: 4
Views: 1209

Collection of Objects

One convenient method to initialize a bunch of settings is to have an array (collection) of objects where the objects all have the same properties. These can be put in tabular form using comma-delimited statements (multiple columns), increment the array index (multiple rows), and it comes out as a d...
by JJohnston2
30 Oct 2016, 02:04
Forum: Ask for Help (v1)
Topic: Powershell / AHK Integration
Replies: 12
Views: 6195

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 (v1)
Topic: Powershell / AHK Integration
Replies: 12
Views: 6195

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 (v1)
Topic: Multiple instances of script appearing in Taskbar tray
Replies: 7
Views: 2028

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 (v1)
Topic: When ComObjCreate() never returns
Replies: 6
Views: 1892

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 (v1)
Topic: Multiple instances of script appearing in Taskbar tray
Replies: 7
Views: 2028

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 (v1)
Topic: ControlSend command issue Topic is solved
Replies: 13
Views: 2197

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 (v1)
Topic: Detect Color click script
Replies: 2
Views: 2212

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 (v1)
Topic: AHK Send Key to Program
Replies: 1
Views: 1468

Re: AHK Send Key to Program

#x::SendInput !{F4}
by JJohnston2
16 Oct 2016, 13:37
Forum: Ask for Help (v1)
Topic: ControlSend command issue Topic is solved
Replies: 13
Views: 2197

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

Go to advanced search