Search found 8865 matches

by gregster
Yesterday, 09:46
Forum: Gaming Help (v1)
Topic: help me to fix this script please
Replies: 8
Views: 304

Re: help me to fix this script please

It's clearly v1 code.
Moved topic from AHK v2 gaming help subforum to corresponding v1 subforum since this is not v2 code.
by gregster
Yesterday, 02:29
Forum: Ask for Help (v2)
Topic: speaker on the PC switched on
Replies: 3
Views: 174

Re: speaker on the PC switched on

@keyeyey1, you are aware that this is not an AHK script?
I mean, there are similar ways to use the SAPI voice per AHK but what do you expect from a "switched off" speaker? To magically switch on?
Edit: Or did you mean it's muted like reddyshyam assumed above?
by gregster
20 May 2024, 21:31
Forum: Gaming Help (v1)
Topic: ADS + Hold breath script (Help)
Replies: 4
Views: 324

Re: ADS + Hold breath script (Help)

I would try the * modifier:

Code: Select all

*XButton1::Suspend
by gregster
20 May 2024, 08:36
Forum: Gaming Help (v1)
Topic: ADS + Hold breath script (Help)
Replies: 4
Views: 324

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
20 May 2024, 07:15
Forum: Ask for Help (v2)
Topic: repeating code?
Replies: 1
Views: 128

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
19 May 2024, 20:58
Forum: Gaming
Topic: how to make middle mouse button alternate between inputing three times and once per click
Replies: 8
Views: 433

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 277 times
by gregster
19 May 2024, 11:03
Forum: Gaming Help (v1)
Topic: Continous scroll wheel input (maybe a ffew hundred milliseconds)
Replies: 5
Views: 508

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: 224

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: 848

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: 848

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: 848

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: 848

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: 321

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: Off-topic Discussion
Topic: System call in Operating System
Replies: 5
Views: 623

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: 441

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: 230

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: 230

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: 284

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 281 times
by gregster
13 May 2024, 15:26
Forum: Off-topic Discussion
Topic: Report False-Positives To Anti-Virus Companies
Replies: 121
Views: 1000013

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...

Go to advanced search