Search found 8862 matches

by gregster
Today, 08:36
Forum: Gaming Help (v1)
Topic: ADS + Hold breath script (Help)
Replies: 2
Views: 136

Re: ADS + Hold breath script (Help)

I moved your topic from 'Scripts and Functions (v2) > Gaming' to the gaming help subforum in the v1 section, since your code is neither v2 code nor a working script but a help request. Please note that we have now separate forums for v1 and v2 questions - while v2 is the current main release and v1 ...
by gregster
Today, 07:15
Forum: Ask for Help (v2)
Topic: repeating code?
Replies: 1
Views: 75

Re: repeating code?

Add the $ modifier: https://www.autohotkey.com/docs/v2/Hotkeys.htm#Symbols

btw, please use code tags when posting code. Thank you!
by gregster
Yesterday, 20:58
Forum: Gaming
Topic: how to make middle mouse button alternate between inputing three times and once per click
Replies: 8
Views: 348

Re: how to make middle mouse button alternate between inputing three times and once per click

@Theleifblower, please use code tags when posting code! Thank you.

ctags.png
ctags.png (14.18 KiB) Viewed 192 times
by gregster
Yesterday, 11:03
Forum: Gaming Help (v1)
Topic: Continous scroll wheel input (maybe a ffew hundred milliseconds)
Replies: 5
Views: 416

Re: Continous scroll wheel input (maybe a ffew hundred milliseconds)

justsda89 , there seems to be some confusion about the application of code tags. In the post above, you just put square [ ] brackets around the code - which didn't do anything. I removed them and replaced them with code tags: [code] code goes here [/code] This is one way how you can do it by using ...
by gregster
18 May 2024, 17:32
Forum: Ask for Help (v2)
Topic: 2.0.15 setup failing
Replies: 1
Views: 201

Re: 2.0.15 setup failing

Perhaps a destination path the script hasn't permissions for? Did you change the installation path from 'Programs'?
Or an antivirus program is interfering - unfortunately, false postiives are pretty common for AHK.
by gregster
17 May 2024, 16:43
Forum: Ask for Help (v1)
Topic: Scroll through open windows issue when Task Manager or Services.msc windows active
Replies: 10
Views: 721

Re: Scroll through open windows issue when Task Manager or Services.msc windows active

Don't think so, v1 and v2 can live happily together. Your script is v1 - it wouldn't run on v2 and v2 isn't involved in executing it. I have both installed (latest versions v1.1.37.02 and v2.0.15).
Just to be sure, what does this msgbox say, if you add it to the top of the script?

Code: Select all

msgbox % A_IsAdmin
by gregster
17 May 2024, 16:27
Forum: Ask for Help (v1)
Topic: Scroll through open windows issue when Task Manager or Services.msc windows active
Replies: 10
Views: 721

Re: Scroll through open windows issue when Task Manager or Services.msc windows active

Can't reproduce it (on WIn11). With admin rights, the script works as expected, afaics - even with elevated windows.
Perhaps you need to describe in more detail what you do, what happens and what you want to happen instead.
by gregster
17 May 2024, 16:15
Forum: Ask for Help (v1)
Topic: Scroll through open windows issue when Task Manager or Services.msc windows active
Replies: 10
Views: 721

Re: Scroll through open windows issue when Task Manager or Services.msc windows active

gregster wrote:
17 May 2024, 15:38
But a guess: a permissions issue because Task Manager and other system windows run with elevated rights -> https://www.autohotkey.com/docs/v1/FAQ.htm#uac
Your script needs elevated rights when an elevated window is active. If you follow the link above, you'll find a few options.
by gregster
17 May 2024, 15:38
Forum: Ask for Help (v1)
Topic: Scroll through open windows issue when Task Manager or Services.msc windows active
Replies: 10
Views: 721

Re: Scroll through open windows issue when Task Manager or Services.msc windows active

What's the issue? Which code did you try? (Hint: When you create a post, there is an edit field for your actual post and the detailed description of your problem. You could even add the code you have tried - between code tags, please. This will help your helpers to help you.) But a guess: a permissi...
by gregster
17 May 2024, 10:29
Forum: Ask for Help (v2)
Topic: Read, write and alert script
Replies: 5
Views: 272

Re: Read, write and alert script

Anyway, the most reliable (and allowed) solution would probably be to use the official Discord APIs - which seem to offer some automation techniques for your own channel: https://discord.com/developers/docs/intro I don't know the details, but it's probably not trivial.
by gregster
16 May 2024, 01:19
Forum: General Discussion
Topic: System call in Operating System
Replies: 5
Views: 552

Re: System call in Operating System

smith2 , I think this is a central problem of your (rather suspicious) posting history on this forum, especially including the posts which I already disapproved. Your posts seem mostly or completely unrelated to AutoHotkey, and they seemed to add no additional value to existing topics (at most, sli...
by gregster
14 May 2024, 15:01
Forum: Ask for Help (v1)
Topic: Can't edit script
Replies: 3
Views: 430

Re: Can't edit script

Yeah, you should post some code which allows to reproduce a clearly defined problem.

This works with v1.1.37.02, the tooltip counts up while I hold v:

Code: Select all

v::
while (GetKeyState("v", "P"))
	tooltip % A_Index
return
This works just the same for t.
by gregster
14 May 2024, 13:54
Forum: Ask for Help (v2)
Topic: Toggle window transparant
Replies: 4
Views: 215

Re: Toggle window transparant

For comparisons in expressions, use =, and not the assignment operator := (which wouldn't check but overwrite the value of the variable).
by gregster
14 May 2024, 12:50
Forum: Ask for Help (v2)
Topic: Toggle window transparant
Replies: 4
Views: 215

Re: Toggle window transparant

You have a typo there. It's WinSetTransparent with an e towards the end, not ...rant

Same for WinGetTransparent. If you need a return value, you'll have to use the function syntax with parentheses, though:

Code: Select all

dz := WinGetTransparent("A")
by gregster
13 May 2024, 16:17
Forum: Ask for Help (v1)
Topic: Can someone please add undo function to this drawing tool
Replies: 2
Views: 275

Re: Can someone please add undo function to this drawing tool

@Sarhad, please use code tags when posting code, especially (but not only) when you post larger amounts of code like above. Thank you!

ctags.png
ctags.png (14.18 KiB) Viewed 272 times
by gregster
13 May 2024, 15:26
Forum: Off-topic Discussion
Topic: Report False-Positives To Anti-Virus Companies
Replies: 121
Views: 997202

Re: Report False-Positives To Anti-Virus Companies

amenu , probably. To feel safer, you can check the SHA256 hash for the downloaded file - look for it toward the end of the latest release post (or whatever you are using): https://www.autohotkey.com/boards/viewtopic.php?f=24&t=111779&p=570714#p570714 or on github https://github.com/AutoHotkey/AutoH...
by gregster
08 May 2024, 18:46
Forum: Ask for Help (v2)
Topic: [v2.0.13+ bug] "up" and "down" states make hotkeys invalid
Replies: 4
Views: 391

Re: [v2.0.13+ bug] "up" and "down" states make hotkeys invalid

I can't reproduce this. Nothing crashes here with v2.0.14. The code above works as expected. (But of course, down shouldn't be used on the left side of :: , following a key name. And for a remapping , up shouldn't be used either, as already noted. It could still be used for a hotkey definition.) Wha...
by gregster
08 May 2024, 12:36
Forum: Scripts and Functions (v2)
Topic: AutoCorrect for v2
Replies: 136
Views: 15304

Re: AutoCorrect for v2

@kunkel321, for a real mention, you need mention-tags around the user name.
You can also type @ and then the beginning of the user name, and then choose from the dropdown as soon as it populates. This will add the tags automatically:

mention.png
mention.png (3.87 KiB) Viewed 733 times
-->
mention2.png
mention2.png (3.64 KiB) Viewed 722 times
by gregster
08 May 2024, 11:50
Forum: Ask for Help (v2)
Topic: [v2.0.13+ bug] "up" and "down" states make hotkeys invalid
Replies: 4
Views: 391

Re: [v2.0.13+ bug] "up" and "down" states make hotkeys invalid

Your remappings used to rely on a bug or rather missing error detection, which is now fixed since v2.0.13: The purpose of a remapping is to remap one key to another, not the release of a key to another key. Try instead: + up::Send("{WheelUp}") - up::Send("{WheelDown}") Space up::Send("{Enter}")

Go to advanced search