Search found 17023 matches
- Today, 08:11
- Forum: Off-topic Discussion
- Topic: Report False-Positives To Anti-Virus Companies
- Replies: 121
- Views: 995153
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: 173
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: 173
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: 100
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: 182
Re: Stop searching image
I don’t know anything about PMC.
- Today, 02:40
- Forum: Gaming
- Topic: Double tap key + hold
- Replies: 1
- Views: 78
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: 182
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: 395
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: 182
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: 623
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: 623
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: 619
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: 623
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: 619
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: 262
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: 349
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: 139
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...
- Yesterday, 08:12
- Forum: Ask for Help (v2)
- Topic: WinGetTitle Looping Error
- Replies: 3
- Views: 139
Re: WinGetTitle Looping Error
if WinExist("ahk_exe PharmAssist.exe") ;check if window is active (or does this just check if its running though not necessarily active?) It only checks to see if the window exists, hence the name. You want to use WinActive instead of WinExist to determine whether it's active. By the way, you're in...
- Yesterday, 08:02
- Forum: Ask for Help (v1)
- Topic: GetKeyState("CapsLock", "P") stopped working
- Replies: 4
- Views: 328
Re: GetKeyState("CapsLock", "P") stopped working
Because you're not specifying what you are looking for. CapsLock is one of the keys that has a toggle state. If you want to know its physical state instead of its toggle state, then you need to specify that. The following returns 1:
Code: Select all
CapsLock::MsgBox, % GetKeyState("CapsLock", "P")
- Yesterday, 05:01
- Forum: Ask for Help (v2)
- Topic: A problem of using calling V1's libs in V2
- Replies: 8
- Views: 349
Re: A problem of using calling V1's libs in V2
Do you have a copy of the AutoHotkey.dll file in your script directory?