Search found 2882 matches

by Exaskryz
17 Feb 2018, 22:25
Forum: Ask for Help (v1)
Topic: Multiple ControlClicks Window PID's Topic is solved
Replies: 6
Views: 1742

Re: Multiple ControlClicks Window PID's Topic is solved

You're not utilizing the ahk_pid, so it just targets the active window when multiple windows would otherwise match "ahk_class ahk_class Chrome_WidgetWin_1". First, ignore the timer. Get one thing working at a time. It is not good form to include a timer label inside of a loop, so avoid it if you can...
by Exaskryz
17 Feb 2018, 11:19
Forum: Ask for Help (v1)
Topic: Multiple ControlClicks Window PID's Topic is solved
Replies: 6
Views: 1742

Re: Multiple ControlClicks Window PID's Topic is solved

I think it's going to be easiest to use F1 only for turning on and off the While loop. Use a second button, like F2, to add windows. You may even add F3 to remove the currently active window if it is inside the loop. (Loop the array and compare captured variable to each value in the array, if it's a...
by Exaskryz
16 Feb 2018, 17:18
Forum: Ask for Help (v1)
Topic: Multiple ControlClicks Window PID's Topic is solved
Replies: 6
Views: 1742

Re: Multiple ControlClicks Window PID's Topic is solved

Sometimes with Chrome, and I'll assume all Chromium browsers, the ahk_class can change to "Chrome_WidgetWin_1". Also, not sure that ahk_class ahk_class should be repeated, only use ahk_class . What I would do is this for creating a list of windows to target: array:=[] ; we're going to store all our ...
by Exaskryz
15 Feb 2018, 21:58
Forum: Ask for Help (v1)
Topic: Creating Listings From Clipboard
Replies: 2
Views: 731

Re: Creating Listings From Clipboard

Note that your SEC, ROW, SEAT, Confirmation Number, Order Summary are all blank values here, because you didn't pass them as strings. RegExMatch() has an output parameter to capture the matching needle. You can then break it up by specifying a certain portion to be captured in a pseudo-array. (I'm g...
by Exaskryz
15 Feb 2018, 16:48
Forum: Ask for Help (v1)
Topic: How can I do this while loop in 1 line
Replies: 2
Views: 873

Re: How can I do this while loop in 1 line

I do this set up pos:=1 while (pos<=LengthLim) && (pos>0) ; it returns 0 when not found, not sure if you could use ErrorLevel here { pos:=regexmatch(haystack,needle) do stuff } This does assume that you will find a result each time. You could work around that with this logic actually: pos:=regexmatc...
by Exaskryz
15 Feb 2018, 09:48
Forum: Ask for Help (v1)
Topic: Excel COM Insert (and Delete) Methods
Replies: 4
Views: 2436

Re: Excel COM Insert (and Delete) Methods

Thanks Black. I got as far as section 4 to verify methods would be formatted like functions. Didn't go beyond that. Thanks jeeswg, I figured it'd be some numerical value, but had no idea where to find it. If I follow the link on the Insert docs I found for the constants, I get this page with no numb...
by Exaskryz
15 Feb 2018, 01:17
Forum: Ask for Help (v1)
Topic: Excel COM Insert (and Delete) Methods
Replies: 4
Views: 2436

Excel COM Insert (and Delete) Methods

--------------------------- &Test Script.ahk --------------------------- Error: 0x800A03EC - Source: Microsoft Excel Description: Unable to get the Insert property of the Range class HelpFile: xlmain11.chm HelpContext: 0 Specifically: Insert Line# 316: Return 320: Loop,250 321: SendInput,{Del}{Back...
by Exaskryz
14 Feb 2018, 18:31
Forum: Ask for Help (v1)
Topic: AutoHotkey constantly needs restarting.
Replies: 17
Views: 4382

Re: AutoHotkey constantly needs restarting.

The way I seem to be crashing my system is using 3 browsers simultaneously and doing memory intensive tasks like video watching while viewing maps in one browser, leaving up a chat application (Discord) in another browser, and doing general internet surfing in yet another browser. This is on top of ...
by Exaskryz
14 Feb 2018, 10:55
Forum: Ask for Help (v1)
Topic: AutoHotkey constantly needs restarting.
Replies: 17
Views: 4382

Re: AutoHotkey constantly needs restarting.

Interesting, thanks lexikos. I will test out doing a quick Suspend/Unsuspend for these instances and see if it resolves, the next time my system has a crisis. If it does, then it likely means the problem is the hooks being unhooked and not something else. If it doesn't, then it could be that case wh...
by Exaskryz
13 Feb 2018, 23:35
Forum: Ask for Help (v1)
Topic: a question with clipboard autohotkey Topic is solved
Replies: 2
Views: 706

Re: a question with clipboard autohotkey Topic is solved

Continuation this is wen." appears to AHK as being on its own line. The "this" command doesn't exist here. But you may use a period at the start of the line to signal that it should be appended. Clipboard = "hi! . this is wen." However, I don't think this will work for you perfectly -- because the ...
by Exaskryz
13 Feb 2018, 22:16
Forum: Ask for Help (v1)
Topic: AutoHotkey constantly needs restarting.
Replies: 17
Views: 4382

Re: AutoHotkey constantly needs restarting.

That's a good question. I've only experienced this with AHK needing a reboot personally. I have noticed this only with hotkey commands not executing. So it could be keyboard hooks get uninstalled and not reinstalled, if the process is actually being reactivated? However, I do have a persistent GUI t...
by Exaskryz
13 Feb 2018, 20:54
Forum: Ask for Help (v1)
Topic: AutoHotkey constantly needs restarting.
Replies: 17
Views: 4382

Re: AutoHotkey constantly needs restarting.

I have experienced AHK crashing when my system resources are depleted -- if a web browser freezes and demands from Windows more resources, it usually results in AHK getting frozen and requiring I restart the scripts individually. I made a post about it in the past, and the suggestion given was to ru...
by Exaskryz
13 Feb 2018, 13:44
Forum: Ask for Help (v1)
Topic: How to map two keys on same button
Replies: 1
Views: 409

Re: How to map two keys on same button

There are many ways. But consider a hotstring. :*:oo::ok This will actually produce backspace, backspace, o, k which may not be compatible with your target program. But I can't imagine a use case where it wouldn't be.
by Exaskryz
13 Feb 2018, 05:06
Forum: Ask for Help (v1)
Topic: Random "bugs" in Autohotkey? Topic is solved
Replies: 44
Views: 12496

Re: Random "bugs" in Autohotkey? Topic is solved

Then I am back at not understanding how {Blind} could help with hotkeys like ^d::^c (or ^c::^c , for that matter, which I also use). I may have not followed the thread decently, only skimming ove rit. But wanted to try to clarify this point, at least how I understand it. Doing ^d::Send ^c results i...
by Exaskryz
11 Feb 2018, 23:54
Forum: Ask for Help (v1)
Topic: Need help with IF else function Topic is solved
Replies: 6
Views: 1012

Re: Need help with IF else function Topic is solved

value:= Trim (value) Turns out, I linked to the wrong page in the documentation. That should be a better link. The fact that you're getting a "1" only tells me th.. That you're now assigning the value to F2 ? In that case, use MsgBox % F2 "`n`n" StrLen(F2) . If you change the variable name in one pl...
by Exaskryz
11 Feb 2018, 19:21
Forum: Ask for Help (v1)
Topic: Need help with IF else function Topic is solved
Replies: 6
Views: 1012

Re: Need help with IF else function Topic is solved

Yeah, what I meant when you didn't define a value for M was without the "" around M, it was read as a variable. Because you accidentally wrote it as a variable instead of the literal letter M, that caused problems. For now, you have fixed that issue. Double check the value of value by using MsgBox %...
by Exaskryz
11 Feb 2018, 01:02
Forum: Ask for Help (v1)
Topic: How to run four programs, and always reload them when they exit?
Replies: 5
Views: 934

Re: How to run four programs, and always reload them when they exit?

You may consider a timeout on the WinWait for the Error Message. In which case, even if there was an Error Message, you could use WinGet's Count subcommand and see how many programs get returned. If it's <4, run another instance.
by Exaskryz
11 Feb 2018, 00:33
Forum: Bug Reports
Topic: Right Mouse Button disables view
Replies: 6
Views: 2190

Re: Right Mouse Button disables view

For testing, I would close every software you can through the task manager and then running a simple Click, up, right / Send {RButton up} to see if you can replicate the issue then. AHK may indeed be a factor, but it is likely not the cause but instead a cofactor enabling the root problem. My hope i...
by Exaskryz
10 Feb 2018, 22:27
Forum: Ask for Help (v1)
Topic: How to run four programs, and always reload them when they exit?
Replies: 5
Views: 934

Re: How to run four programs, and always reload them when they exit?

I would think that doing Loop, 4 Run "pathtomyprogram.exe" ; not runwait because the -wait makes it wait for the program to exit Loop { WinWait Diskmonitor.exe ; or however you want to specify the ERROR message WinClose Diskmonitor.exe ; close out the ERROR message Run "pathtomyprogram.exe" } Should...
by Exaskryz
09 Feb 2018, 00:33
Forum: Ask for Help (v1)
Topic: Need help with IF else function Topic is solved
Replies: 6
Views: 1012

Re: Need help with IF else function Topic is solved

The very last bit, you have if sendinput ; I think you want to drop that "if". Also note that your "Break" is at the end of a loop and not part of any if condition, well, except it is technically right now, but I think that if is unintentional. I don't see M defined anywhere; is the Value supposed t...

Go to advanced search