Search found 27158 matches

by mikeyww
Today, 06:02
Forum: Ask for Help (v1)
Topic: Clipboard Stopped Working ... AHK Scripts Won't Run
Replies: 11
Views: 486

Re: Clipboard Stopped Working ... AHK Scripts Won't Run

You can now shorten a single test script to three lines, and test only that script, while no other scripts run. If the script fails, you have three lines to debug, and you can also post your revised script to get feedback about it. In your new post, include a description of what you do, what the scr...
by mikeyww
Today, 06:01
Forum: Ask for Help (v2)
Topic: COM change font of highlighted text
Replies: 6
Views: 185

Re: COM change font of highlighted text

Worked here as well.
by mikeyww
Today, 05:09
Forum: Ask for Help (v1)
Topic: Tooltip to remind myself for good posture
Replies: 2
Views: 106

Re: Tooltip to remind myself for good posture

Hello, You have posted a v1 script in the v2 forum. Hotkeys defined by :: are not subject to control flow or subroutines in that manner. The Hotkey command can be used to create, modify, enable, or disable a hotkey while the script is running. An alternative is using a directive to define a context ...
by mikeyww
Yesterday, 21:45
Forum: Ask for Help (v2)
Topic: Tray app to change power plans
Replies: 10
Views: 258

Re: Tray app to change power plans

The script that I posted lets you assign the GUID to a scheme (name) specific to the AHK script. These names are independent of the Windows plan name and can include spaces if you like. XMCQCX has shown an alternative that retrieves the Windows plan information.
by mikeyww
Yesterday, 21:18
Forum: Ask for Help (v2)
Topic: COM change font of highlighted text
Replies: 6
Views: 185

Re: COM change font of highlighted text

I can do even better than that: just search the forum to find the code that is already written for you.

viewtopic.php?p=379452#p379452

I've never encountered a noob with 206 posts! ;)
by mikeyww
Yesterday, 21:12
Forum: Ask for Help (v1)
Topic: Clipboard Stopped Working ... AHK Scripts Won't Run
Replies: 11
Views: 486

Re: Clipboard Stopped Working ... AHK Scripts Won't Run

Others here will be more familiar with that error and can chime in. OK with calling Microsoft, though the testing approach that I mentioned would probably require about 10 minutes instead of 2 months. :) If you shorten your script to the three lines that you would like to test, you could get the tim...
by mikeyww
Yesterday, 20:23
Forum: Ask for Help (v2)
Topic: Tray app to change power plans
Replies: 10
Views: 258

Re: Tray app to change power plans

#Requires AutoHotkey v2.0 Persistent guid := Map( 'Balanced', '381b4222-f694-41f0-9685-ff5bb260df2e' , 'Custom' , '429ad934-c04d-49b7-893a-e80c306b7eed' ; Change as needed ) tray := A_TrayMenu tray.Add 'Power', (itemName, itemPos, m) => power.Show() tray.Default := 'Power' tray.ClickCount := 1 powe...
by mikeyww
Yesterday, 19:11
Forum: Ask for Help (v2)
Topic: Tray app to change power plans
Replies: 10
Views: 258

Re: Tray app to change power plans

#Requires AutoHotkey v2.0 Persistent tray := A_TrayMenu tray.Add 'Power', (itemName, itemPos, m) => power.Show() tray.Default := 'Power' tray.ClickCount := 1 power := Menu() power.Add 'High' , powerSelect power.Add 'Balanced', powerSelect power.Add 'Low' , powerSelect powerSelect(itemName, itemPos,...
by mikeyww
Yesterday, 16:43
Forum: Ask for Help (v1)
Topic: How to retain variables between runs
Replies: 2
Views: 188

Re: How to retain variables between runs

Welcome to this AutoHotkey forum! A script is simply a plain text file with the .ahk filename extension containing instructions for the program. What does "run the hotkey" mean to you? When a script exits, the values of its variables are not retained. If you are referring to when the script closes o...
by mikeyww
Yesterday, 14:58
Forum: Ask for Help (v1)
Topic: Clipboard Stopped Working ... AHK Scripts Won't Run
Replies: 11
Views: 486

Re: Clipboard Stopped Working ... AHK Scripts Won't Run

Although I asked four questions, you answered none of them. I also provided a specific suggestion for your approach to troubleshooting, but whether you tried that is unstated here. My earlier comments stand, so I have no additional comments at this time.
by mikeyww
Yesterday, 06:06
Forum: Ask for Help (v2)
Topic: Why color is not displayed correctly?
Replies: 2
Views: 89

Re: Why color is not displayed correctly?

Hello, Although you can omit an optional parameter in your function call, you cannot omit the comma that marks its place. This is explained in the documentation as follows. It is not possible to have optional parameters isolated in the middle of the parameter list. In other words, all parameters tha...
by mikeyww
15 May 2024, 22:29
Forum: Ask for Help (v2)
Topic: Script to draw a tiny circle
Replies: 3
Views: 252

Re: Script to draw a tiny circle

I would look at the AddProgress line where the x and y values are specified.
by mikeyww
15 May 2024, 20:35
Forum: Ask for Help (v2)
Topic: Script to draw a tiny circle
Replies: 3
Views: 252

Re: Script to draw a tiny circle

#Requires AutoHotkey v2.0 g := [] r:: { g.Push f := Gui('+AlwaysOnTop -DPIScale +LastFound -Caption') f.AddPic 'AltSubmit', 'circle.gif' WinSetTransColor f.BackColor := 'White' CoordMode('Mouse'), MouseGetPos(&x, &y), f.Show('x' x - 13 ' y' y - 6) } d:: { For f in g f.Destroy Global g := [] }
by mikeyww
15 May 2024, 20:08
Forum: Ask for Help (v2)
Topic: Can I determine if the Always property has been used in SetCapsLockState? Topic is solved
Replies: 2
Views: 241

Re: Can I determine if the Always property has been used in SetCapsLockState? Topic is solved

I would actually recommend using the script as in your last comment, because the script "knows". That approach is direct, straightforward, and reliable.
by mikeyww
15 May 2024, 07:11
Forum: Gaming Help (v1)
Topic: Script for Minecraft :)
Replies: 7
Views: 414

Re: Script for Minecraft :)

I have already mentioned that keys might not be sent as you expect them to be sent while a mouse button is down or held. You can test this in Notepad to see what happens. That would be a fast way to troubleshoot your script initially. How you disable the script will depend on exactly what you want t...
by mikeyww
15 May 2024, 06:29
Forum: Gaming Help (v1)
Topic: Script for Minecraft :)
Replies: 7
Views: 414

Re: Script for Minecraft :)

You can test these things to see what happens. Add a timer, add a Send command, etc.
by mikeyww
15 May 2024, 05:20
Forum: Gaming Help (v1)
Topic: Script for Minecraft :)
Replies: 7
Views: 414

Re: Script for Minecraft :)

While the LButton is held, I think that the X is unlikely to be triggered or to be visible (I'm not sure which). Adjust to get what you want. #Requires AutoHotkey v1.1.33.11 #MaxThreadsPerHotkey 2 SLOW := 0 ; Speed of moving mouse cursor (0=fastest, 100=slowest) p:: If !on := !on { ; Toggle off SetT...
by mikeyww
14 May 2024, 20:37
Forum: Gaming Help (v1)
Topic: Script for Minecraft :)
Replies: 7
Views: 414

Re: Script for Minecraft :)

Welcome to this AutoHotkey forum! Ideas are below; adjust as needed. #Requires AutoHotkey v1.1.33.11 #MaxThreadsPerHotkey 2 SoundBeep 2500 SetKeyDelay 25, 25 SLOW := 0 p:: If on := !on { SetTimer X, 12000 Loop { SendEvent az MouseMove 15, 0, SLOW, R } } Else Reload Return X: SendEvent x Return If yo...
by mikeyww
14 May 2024, 20:10
Forum: Ask for Help (v2)
Topic: Progress bar and (not) Sleep
Replies: 7
Views: 349

Re: Progress bar and (not) Sleep

Yes, the process might run before any icon appears, so you can add sleep if needed.

Go to advanced search