Search found 27165 matches

by mikeyww
13 minutes ago
Forum: Gaming Help (v1)
Topic: Call function and send key down in one line Topic is solved
Replies: 1
Views: 17

Re: Call function and send key down in one line Topic is solved

Code: Select all

#Requires AutoHotkey v1.1.33.11
abc := 12345
Send % "{" SubStr(abc, 3, 1) " down}"
Explained: Expressions
by mikeyww
Today, 06:15
Forum: Ask for Help (v1)
Topic: Can not take screenshot using autohotkey via script
Replies: 5
Views: 343

Re: Can not take screenshot using autohotkey via script

I did not test the script, but I noticed a couple of lines where you referred to A_IsCompiled. I guess you had some reason to check that variable. You might want to examine that more closely.
by mikeyww
Today, 04:46
Forum: Ask for Help (v1)
Topic: can i shift the first text of a tooltip just 1 character to the right Topic is solved
Replies: 2
Views: 89

Re: can i shift the first text of a tooltip just 1 character to the right Topic is solved

Code: Select all

#Requires AutoHotkey v1.1.33.11
#Persistent
f := "def"
ToolTip % " abc`n " f

Code: Select all

#Requires AutoHotkey v1.1.33.11
#Persistent
f := "def"
ToolTip %A_Space%abc`n %f%
Explained: A_Space
by mikeyww
Yesterday, 10:55
Forum: Ask for Help (v1)
Topic: Can not take screenshot using autohotkey via script
Replies: 5
Views: 343

Re: Can not take screenshot using autohotkey via script

"Does not work" does not say anything about what your script does when you run it. I did not test your script, but I can think of two main issues that could stop a (working) script from working only after it is compiled. The first is antivirus software that blocks the compiled program. The second is...
by mikeyww
Yesterday, 10:53
Forum: Ask for Help (v2)
Topic: Autohotkey 3 Side Buttons on mouse.
Replies: 1
Views: 103

Re: Autohotkey 3 Side Buttons on mouse.

Welcome to this AutoHotkey forum!

I can think of two main options. The first is to check for a :arrow: scan code. The second would be to see if that button itself sends a known key or key sequence. If so, you could create a hotkey for that key in your script. KeyHistory
by mikeyww
Yesterday, 07:12
Forum: Ask for Help (v1)
Topic: Can not take screenshot using autohotkey via script
Replies: 5
Views: 343

Re: Can not take screenshot using autohotkey via script

Hello, #If directives apply to all hotkeys and hotstrings below them, until the next such directive. Below are some strategies that I would use if this were my script. Remove #If... directives during testing. Shorten the script to the essential parts that you want to test. If it works, add new secti...
by mikeyww
17 May 2024, 22:23
Forum: Ask for Help (v1)
Topic: Failed to remove directory message
Replies: 1
Views: 277

Re: Failed to remove directory message

General reasons may include the following. Wrong path was specified. Script cannot access the directory due to wrong privileges. Directory does not exist. Directory is in use. Directory is not empty. Mode "DR" does not include any files. You can verify this very quickly if you examine what happens i...
by mikeyww
17 May 2024, 06:02
Forum: Ask for Help (v1)
Topic: Clipboard Stopped Working ... AHK Scripts Won't Run
Replies: 11
Views: 627

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
17 May 2024, 06:01
Forum: Ask for Help (v2)
Topic: COM change font of highlighted text
Replies: 8
Views: 397

Re: COM change font of highlighted text

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

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
16 May 2024, 21:45
Forum: Ask for Help (v2)
Topic: Tray app to change power plans
Replies: 10
Views: 297

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
16 May 2024, 21:18
Forum: Ask for Help (v2)
Topic: COM change font of highlighted text
Replies: 8
Views: 397

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
16 May 2024, 21:12
Forum: Ask for Help (v1)
Topic: Clipboard Stopped Working ... AHK Scripts Won't Run
Replies: 11
Views: 627

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
16 May 2024, 20:23
Forum: Ask for Help (v2)
Topic: Tray app to change power plans
Replies: 10
Views: 297

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
16 May 2024, 19:11
Forum: Ask for Help (v2)
Topic: Tray app to change power plans
Replies: 10
Views: 297

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
16 May 2024, 16:43
Forum: Ask for Help (v1)
Topic: How to retain variables between runs
Replies: 2
Views: 243

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
16 May 2024, 14:58
Forum: Ask for Help (v1)
Topic: Clipboard Stopped Working ... AHK Scripts Won't Run
Replies: 11
Views: 627

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
16 May 2024, 06:06
Forum: Ask for Help (v2)
Topic: Why color is not displayed correctly?
Replies: 2
Views: 104

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

Re: Script to draw a tiny circle

I would look at the AddProgress line where the x and y values are specified.

Go to advanced search