Search found 70 matches

by sn1perwild
21 May 2024, 11:27
Forum: Ask for Help (v1)
Topic: Why does this script sometimes does nothing?
Replies: 15
Views: 1180

Re: Why does this script sometimes does nothing?

I don't know why that would be happening. So you're saying that this Reload version also intermittently fails to move the window after the program closes and you run it again and the window appears again? Yes, just now I noticed even the Reload version has this happen :cry: As an alternative path, ...
by sn1perwild
21 May 2024, 09:32
Forum: Ask for Help (v1)
Topic: Why does this script sometimes does nothing?
Replies: 15
Views: 1180

Re: Why does this script sometimes does nothing?

You can try that. If you’re going to do that, then there’s no reason for the loop because the Reload will start it over before it has a chance to loop, so it’s like a built in loop: Menu, Tray, Icon, Icons\shell32_184.ico WinWait, ahk_class ApplicationFrameWindow ahk_exe ApplicationFrameHost.exe Wi...
by sn1perwild
20 May 2024, 11:43
Forum: Ask for Help (v1)
Topic: Why does this script sometimes does nothing?
Replies: 15
Views: 1180

Re: Why does this script sometimes does nothing?

For that, you would use WinWait and WinWaitClose : Menu, Tray, Icon, Icons\shell32_184.ico loop { WinWait, ahk_class ApplicationFrameWindow ahk_exe ApplicationFrameHost.exe WinMove,,, 2821, 153, 1476, 1044 WinWaitClose } Thank you for this suggestion! I tested it for a day and noticed the problem o...
by sn1perwild
18 May 2024, 08:54
Forum: Ask for Help (v1)
Topic: Why does this script sometimes does nothing?
Replies: 15
Views: 1180

Re: Why does this script sometimes does nothing?

And how can I fix it to work reliably? You could change the logic to actually have it move once per time it's active and perhaps that would do it. But like I said, just changing it from WinExist to WinActive wouldn't accomplish that because it would keep moving it over and over while it's active. T...
by sn1perwild
17 May 2024, 19:23
Forum: Ask for Help (v1)
Topic: Why does this script sometimes does nothing?
Replies: 15
Views: 1180

Re: Why does this script sometimes does nothing?

But it doesn’t move it only once. It moves it every other time because the variable keeps flipping from true to false and vice versa every time through the loop. What about the logic you set up makes you think it only does it once? The hasMoved variable is only set to false when the window is not a...
by sn1perwild
17 May 2024, 18:34
Forum: Ask for Help (v1)
Topic: Why does this script sometimes does nothing?
Replies: 15
Views: 1180

Re: Why does this script sometimes does nothing?

Maybe it's hanging because you're moving it so often -- every two seconds -- whether it needs to or not and it causes an issue in Windows. Not sure what you're trying to accomplish with hasMoved. It gets reset from false to true every other time (and the opposite the other times), having nothing to...
by sn1perwild
17 May 2024, 12:29
Forum: Ask for Help (v1)
Topic: Why does this script sometimes does nothing?
Replies: 15
Views: 1180

Re: Why does this script sometimes does nothing?

Deprecated: These control flow statements are not recommended for use in new scripts. Use the WinExist function instead. Thanks for your reply! You think it might have something to do with the command being deprecated? I tried changing it to the following and will test for a while and report if the...
by sn1perwild
17 May 2024, 11:36
Forum: Ask for Help (v1)
Topic: Why does this script sometimes does nothing?
Replies: 15
Views: 1180

Why does this script sometimes does nothing?

I have a script that uses a SetTimer to adjust the dimensions and placement of WhatsApp's Windows Store app every time it is in focus, since for some reason it gest bigger every time I launch it. The script works but I noticed that occasionally it doesn't. Nothing has changed: the class and exe are ...
by sn1perwild
27 Jan 2024, 12:37
Forum: Ask for Help (v1)
Topic: Hotstrings sometimes don't work
Replies: 3
Views: 314

Re: Hotstrings sometimes don't work

Hallo, only a try: #Requires AutoHotkey v1.1.33 :?*B0:çoe::{Left}{Bs}õ{Right} ; çoe -> çõe (untested :?*B0:a1b::{Left}{Bs}2{Right} ; a1b -> a2b (tested) Without #Requires AutoHotkey v1.1.33 here PCRE execution error happens. (probably an Autohotkey error when checking whether Autohotkey v1 or v2 co...
by sn1perwild
25 Jan 2024, 06:50
Forum: Ask for Help (v1)
Topic: Simple on-the-fly clipboard replacement not working Topic is solved
Replies: 17
Views: 1142

Re: Simple on-the-fly clipboard replacement not working Topic is solved

You might mean hotkey subroutines instead of scripts. "Script" is defined below. Using the program : A script is simply a plain text file with the .ahk filename extension containing instructions for the program. Next: Only trigger when done via traditional Ctrl+C You can achieve your goal by creati...
by sn1perwild
23 Jan 2024, 07:47
Forum: Ask for Help (v1)
Topic: Simple on-the-fly clipboard replacement not working Topic is solved
Replies: 17
Views: 1142

Re: Simple on-the-fly clipboard replacement not working Topic is solved

mikeyww wrote:
21 Jan 2024, 08:39
Combining the scripts would be simple. You can then disable the clipboard checking whenever you wish.
That makes sense, but I have a huge amount of scripts that follow that template. Could there be a way to make the OnClipboardChange("clipChanged") only trigger when done via traditional Ctrl+C?
by sn1perwild
21 Jan 2024, 08:10
Forum: Ask for Help (v1)
Topic: Hotstrings sometimes don't work
Replies: 3
Views: 314

Re: Hotstrings sometimes don't work

Hallo, only a try: #Requires AutoHotkey v1.1.33 :?*B0:çoe::{Left}{Bs}õ{Right} ; çoe -> çõe (untested :?*B0:a1b::{Left}{Bs}2{Right} ; a1b -> a2b (tested) Without #Requires AutoHotkey v1.1.33 here PCRE execution error happens. (probably an Autohotkey error when checking whether Autohotkey v1 or v2 co...
by sn1perwild
21 Jan 2024, 08:04
Forum: Ask for Help (v1)
Topic: Simple on-the-fly clipboard replacement not working Topic is solved
Replies: 17
Views: 1142

Re: Simple on-the-fly clipboard replacement not working Topic is solved

Sure, add as many additional replacements as you need. #Requires AutoHotkey v1.1.33 #Persistent OnClipboardChange("clipChanged") Return clipChanged(dataType) { Static INFO := 1 ; Icon for the traytip , list := {a: "b", c: "d"} str := A_Clipboard For find, replace in list str := StrReplace(str, find...
by sn1perwild
19 Jan 2024, 13:48
Forum: Ask for Help (v1)
Topic: Hotstrings sometimes don't work
Replies: 3
Views: 314

Hotstrings sometimes don't work

Hello, all! Is there a reason some hotstrings simply don't work occasionally in my script? I'm using the autocorrect script on the main site as a base to add several common typos, but I noticed that, intermittently, a few of them don't trigger when they should. The last time it happened, it was with...
by sn1perwild
20 Nov 2023, 09:05
Forum: Ask for Help (v1)
Topic: Simple on-the-fly clipboard replacement not working Topic is solved
Replies: 17
Views: 1142

Re: Simple on-the-fly clipboard replacement not working Topic is solved

Sure, add as many additional replacements as you need. #Requires AutoHotkey v1.1.33 #Persistent OnClipboardChange("clipChanged") Return clipChanged(dataType) { Static INFO := 1 ; Icon for the traytip , list := {a: "b", c: "d"} str := A_Clipboard For find, replace in list str := StrReplace(str, find...
by sn1perwild
19 Nov 2023, 10:03
Forum: Ask for Help (v1)
Topic: Simple on-the-fly clipboard replacement not working Topic is solved
Replies: 17
Views: 1142

Re: Simple on-the-fly clipboard replacement not working Topic is solved

#Requires AutoHotkey v1.1.33 #Persistent OnClipboardChange("clipChanged") Return clipChanged(dataType) { Static INFO := 1 ; Icon for the traytip , find := "a" , replace := "b" If InStr(A_Clipboard, find) { OnClipboardChange("clipChanged", False) A_Clipboard := StrReplace(A_Clipboard, find, replace)...
by sn1perwild
18 Nov 2023, 14:35
Forum: Ask for Help (v1)
Topic: Simple on-the-fly clipboard replacement not working Topic is solved
Replies: 17
Views: 1142

Re: Simple on-the-fly clipboard replacement not working Topic is solved

; This script determines whether the clipboard contains text #Requires AutoHotkey v1.1.33 #Persistent OnClipboardChange("clipChanged") Return clipChanged(dataType) { ; https://www.autohotkey.com/board/topic/150291-detect-clipboard-contents-as-text-file-etc/ If DllCall("IsClipboardFormatAvailable", ...
by sn1perwild
31 Oct 2023, 07:18
Forum: Ask for Help (v1)
Topic: How to send a key combo and avoid activating a script?
Replies: 4
Views: 556

Re: How to send a key combo and avoid activating a script?

You would like to have two different programs using the same global hotkey, but you want to trigger only one of them. I don't think this would be easy to do via AHK-- would probably need to enact a lot of tricks in manipulating how the hotkeys are registered in Windows. I see, that's too bad. Thank...
by sn1perwild
29 Oct 2023, 09:58
Forum: Ask for Help (v1)
Topic: How to send a key combo and avoid activating a script?
Replies: 4
Views: 556

Re: How to send a key combo and avoid activating a script?

So change your other hotkey or the one that Google uses. I'd like to keep the other hotkey as is, since it's ingrained as part of my workflow. As for the one Google uses, it's hardcoded so I can't change it. Since those are the two options, I assume there is no way to send keys that are not interce...
by sn1perwild
28 Oct 2023, 12:50
Forum: Ask for Help (v1)
Topic: How to send a key combo and avoid activating a script?
Replies: 4
Views: 556

How to send a key combo and avoid activating a script?

I'd like to create a hotkey to open Google Docs's version history. The native hotkey for that is Ctrl+Alt+Shift+H. However, I already use that hotkey universally for something else, so I'm trying to use a different hotkey to open the version history (Windows+8). However, when I created the following...

Go to advanced search