Search found 17026 matches
- Today, 18:57
- Forum: Ask for Help (v1)
- Topic: Why does this script sometimes does nothing?
- Replies: 6
- Views: 170
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?
- Today, 18:30
- Forum: Ask for Help (v1)
- Topic: Why does this script sometimes does nothing?
- Replies: 6
- Views: 170
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 ...
- Today, 18:17
- Forum: Ask for Help (v2)
- Topic: Touch screen detect
- Replies: 1
- Views: 72
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.
- Today, 08:11
- Forum: Off-topic Discussion
- Topic: Report False-Positives To Anti-Virus Companies
- Replies: 121
- Views: 995900
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...
- Today, 08:03
- Forum: Ask for Help (v2)
- Topic: COM change font of highlighted text
- Replies: 6
- Views: 196
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...
- Today, 06:00
- Forum: Ask for Help (v2)
- Topic: COM change font of highlighted text
- Replies: 6
- Views: 196
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" }
- Today, 05:50
- Forum: Ask for Help (v1)
- Topic: Tooltip to remind myself for good posture
- Replies: 2
- Views: 128
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.
- 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.
- 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}'
}
- 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.
- Yesterday, 23:17
- Forum: General Discussion
- Topic: System call in Operating System
- Replies: 5
- Views: 411
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.
- 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.
- 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}'
}
}
- 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.
- Yesterday, 18:26
- Forum: Ask for Help (v2)
- Topic: Assign a function to a double middle click press? Topic is solved
- Replies: 19
- Views: 630
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.
- 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.
- Yesterday, 16:22
- Forum: Ask for Help (v2)
- Topic: Assign a function to a double middle click press? Topic is solved
- Replies: 19
- Views: 630
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:...
- Yesterday, 11:39
- Forum: Ask for Help (v1)
- Topic: Shifting Only Start Position Each Loop
- Replies: 4
- Views: 294
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 + ((...
- Yesterday, 10:51
- Forum: Ask for Help (v2)
- Topic: A problem of using calling V1's libs in V2
- Replies: 8
- Views: 358
Re: A problem of using calling V1's libs in V2
In my view, if the reason for using DP's code instead of viv's is because DP said it's a better approach, but DP's code doesn't work anymore, it's not better. I would just continue to use viv's code.
- Yesterday, 09:36
- Forum: Ask for Help (v2)
- Topic: WinGetTitle Looping Error
- Replies: 3
- Views: 140
Re: WinGetTitle Looping Error
Getting the title and then using that is an extra step that only adds ambiguity because then it opens it up to other windows that may also match (or partially match) the title. Just specify the active window directly as the WinTitle parameter without getting its title: if InStr(WinGetText("A"), "Shi...