Search found 17028 matches

by boiler
27 minutes ago
Forum: Ask for Help (v1)
Topic: Why does this script sometimes does nothing?
Replies: 8
Views: 223

Re: Why does this script sometimes does nothing?

Note that I edited it above to remove the WinTitle parameters from the WinMove and WinWaitNotActive. They're not needed because they use the LastFoundWindow which was found in the WinWaitActive command.
by boiler
32 minutes ago
Forum: Ask for Help (v1)
Topic: Why does this script sometimes does nothing?
Replies: 8
Views: 223

Re: Why does this script sometimes does nothing?

The hasMoved variable is only set to false when the window is not active. The window is not active all the time. But, on the times it is active, hasMoved stays as true after being moved. No, that is not correct. You used WinExist , not WinActive , so it will keep moving it as long as the window exi...
by boiler
Today, 18:57
Forum: Ask for Help (v1)
Topic: Why does this script sometimes does nothing?
Replies: 8
Views: 223

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?
by boiler
Today, 18:30
Forum: Ask for Help (v1)
Topic: Why does this script sometimes does nothing?
Replies: 8
Views: 223

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 boiler
Today, 18:17
Forum: Ask for Help (v2)
Topic: Touch screen detect
Replies: 1
Views: 79

Re: Touch screen detect

One way to tell is to keep monitoring the position of the mouse, and if the change from the last position is large, then it was most likely a tap.
by boiler
Today, 08:11
Forum: Off-topic Discussion
Topic: Report False-Positives To Anti-Virus Companies
Replies: 121
Views: 996028

Re: Report False-Positives To Anti-Virus Companies

bshogeman -- Antivirus software flagging a false positive is not an AHK bug, so your topic in "Bug Reports" was moved to this thread. You may need to temporarily disable Defender to let it install, and you may need to identify a whitelisted directory to prevent your AHK installation folder from bei...
by boiler
Today, 08:03
Forum: Ask for Help (v2)
Topic: COM change font of highlighted text
Replies: 6
Views: 198

Re: COM change font of highlighted text

But for some reason doing so with this code has no effect. Any ideas? There must be something more that Word is doing when selecting a different font from the dropdown than just applying a new font to the entire selection like happens via COM, so the only thing I can suggest is trying to automate t...
by boiler
Today, 06:00
Forum: Ask for Help (v2)
Topic: COM change font of highlighted text
Replies: 6
Views: 198

Re: COM change font of highlighted text

It works for me as-is on selected text. By the way, you posted it as v1 code, but you posted in the v2 section of the forum. The main lines also work in v2 with the other syntax changed: #Requires AutoHotkey v2.0 ^F1:: { oWord := ComObjActive("Word.Application") oWord.Selection.Font.Name := "Arial" }
by boiler
Today, 05:50
Forum: Ask for Help (v1)
Topic: Tooltip to remind myself for good posture
Replies: 2
Views: 138

Re: Tooltip to remind myself for good posture

@pivotphone — Please note that we have again moved a thread you started in the main part of the forum, which is now for AHK v2, to the v1 section. Please post in the designated v1 section with any new questions regarding v1 scripts.
by boiler
Today, 03:37
Forum: Pulovers Macro Creator
Topic: Stop searching image
Replies: 7
Views: 210

Re: Stop searching image

I don’t know anything about PMC.
by boiler
Today, 02:40
Forum: Gaming
Topic: Double tap key + hold
Replies: 1
Views: 79

Re: Double tap key + hold

Try this:

Code: Select all

#Requires AutoHotkey v2.0

~$w:: {
	Send '{w down}'
	KeyWait 'w'
	Send '{w up}'
}
by boiler
Today, 02:30
Forum: Pulovers Macro Creator
Topic: Stop searching image
Replies: 7
Views: 210

Re: Stop searching image

Topic moved from the main section, since this is not looking for AHK help. The (vast) majority of helpers on this forum don’t use PMC. I’m not sure there is much help available from the PMC users or author either, but good luck.
by boiler
Yesterday, 23:17
Forum: General Discussion
Topic: System call in Operating System
Replies: 5
Views: 412

Re: System call in Operating System

This forum in general is about the AutoHotkey programming language. This specific sub-forum is a place to discuss topics related to AutoHotkey. Just general tech discussions are not related enough to AHK to be posted here.
by boiler
Yesterday, 19:47
Forum: Pulovers Macro Creator
Topic: Stop searching image
Replies: 7
Views: 210

Re: Stop searching image

So you're asking how to change your macro script without posting it? Change line 7 to tell it to stop after it's been too long.
by boiler
Yesterday, 19:43
Forum: Gaming
Topic: Im trying to make a autoclicker that clicks when you hold
Replies: 15
Views: 628

Re: Im trying to make a autoclicker that clicks when you hold

You can try this just in case:

Code: Select all

#Requires AutoHotkey v2.0

*f::SpamKey()

SpamKey() {
	key := SubStr(A_ThisHotkey, 2)
	Spam := SendDownUp.Bind(key)
	SetTimer(Spam, 50)
	KeyWait(key)
	SetTimer(Spam, 0)

	SendDownUp(k) {
		Send '{' k ' down}'
		Sleep 20
		Send '{' k ' up}'
	}
}
by boiler
Yesterday, 18:29
Forum: Gaming
Topic: Im trying to make a autoclicker that clicks when you hold
Replies: 15
Views: 628

Re: Im trying to make a autoclicker that clicks when you hold

No, if that were the issue, it really shouldn’t work at all, so it must be like a lot of games that it only responds to physical keystrokes, not virtual ones.
by boiler
Yesterday, 18:26
Forum: Ask for Help (v2)
Topic: Assign a function to a double middle click press? Topic is solved
Replies: 19
Views: 631

Re: Assign a function to a double middle click press? Topic is solved

I can’t see why it would do that. When I test it in a text editor and sending just the letter y instead of !^y so I can see visible proof, it works only after two quick clicks. Make sure you don’t have any other scripts running.
by boiler
Yesterday, 18:23
Forum: Gaming
Topic: Im trying to make a autoclicker that clicks when you hold
Replies: 15
Views: 628

Re: Im trying to make a autoclicker that clicks when you hold

You could try running the script as administrator or otherwise address UAC.
by boiler
Yesterday, 16:22
Forum: Ask for Help (v2)
Topic: Assign a function to a double middle click press? Topic is solved
Replies: 19
Views: 631

Re: Assign a function to a double middle click press? Topic is solved

Are you sure it didn't give you an error? It should have if you ran it with AHK v2. Here's how to fix it: #Requires AutoHotkey v2.0 ~MButton:: { If (A_PriorHotkey="~MButton") and (A_TimeSincePriorHotkey<400) send("!^y") } Or not having to worry about the literal string in case you change the hotkey:...
by boiler
Yesterday, 11:39
Forum: Ask for Help (v1)
Topic: Shifting Only Start Position Each Loop
Replies: 4
Views: 303

Re: Shifting Only Start Position Each Loop

In case it's not clear why this line would cause an error, a space is needed before the semicolon for it to be seen as a comment: MouseClick, L, 1464, (604 + ((A_Index - 1) * 50); Select task line (I want to shift this command down 50 pixels after each loop) Like this: MouseClick, L, 1464, (604 + ((...

Go to advanced search