Search found 24 matches
- 04 Jan 2024, 03:55
- Forum: Suggestions on Documentation Improvements
- Topic: Bug in ProcessSetPriority Example #2 ahk v2 Topic is solved
- Replies: 2
- Views: 474
Bug in ProcessSetPriority Example #2 ahk v2 Topic is solved
Bug in ProcessSetPriority Example #2 in AHK Docs v2 - Link #z:: ; Win+Z hotkey { active_pid := WinGetPID("A") active_title := WinGetTitle("A") MyGui := Gui(, "Set Priority") MyGui.Add("Text",, " ( Press ESCAPE to cancel, or double-click a new priority level for the following window: )") MyGui.Add("T...
- 31 Dec 2023, 14:28
- Forum: Ask for Help (v1)
- Topic: How to pause or temporarily disable OnClipboardChange? Topic is solved
- Replies: 7
- Views: 510
- 31 Dec 2023, 12:56
- Forum: Ask for Help (v1)
- Topic: How to pause or temporarily disable OnClipboardChange? Topic is solved
- Replies: 7
- Views: 510
Re: How to pause or temporarily disable OnClipboardChange? Topic is solved
I am a novice at AHK, and still learning. Apologies for the confusion. Where do you have the value of the variable pasteText from? It is generated from other hotkeys/function that pull data from text file. I would use a function like this for pasting long text. Your Send(text){} function uses clipbo...
- 31 Dec 2023, 10:56
- Forum: Ask for Help (v1)
- Topic: How to pause or temporarily disable OnClipboardChange? Topic is solved
- Replies: 7
- Views: 510
Re: How to pause or temporarily disable OnClipboardChange? Topic is solved
You should use the OnClipboardChange() function instead of the deprecated OnClipboardChange label. Done. Thanks for this. :dance: See spoiler. One additional problem... #SingleInstance force #Persistent #Requires AutoHotkey v1.1.37 clipboard := "" ; don't trigger ToolTip on start OnClipboardChange(...
- 31 Dec 2023, 07:56
- Forum: Ask for Help (v1)
- Topic: How to pause or temporarily disable OnClipboardChange? Topic is solved
- Replies: 7
- Views: 510
How to pause or temporarily disable OnClipboardChange? Topic is solved
How to pause or temporarily disable OnClipboardChange? #SingleInstance force #Persistent #Requires AutoHotkey v1.1.37 clipboard := "" ; don't trigger ToolTip on start OnClipboardChange: if A_EventInfo != 1 ; if clipboard is empty or contains something entirely non-text such as a picture return ; do ...
- 23 Dec 2023, 00:48
- Forum: Ask for Help (v2)
- Topic: Unable to Destroy/Hide a Gui, Gui.Destroy() causes Error Topic is solved
- Replies: 2
- Views: 836
Re: Unable to Destroy/Hide a Gui, Gui.Destroy() causes Error Topic is solved
@flyingDman
Perfect. Thank you.
Perfect. Thank you.
- 23 Dec 2023, 00:06
- Forum: Ask for Help (v2)
- Topic: Unable to Destroy/Hide a Gui, Gui.Destroy() causes Error Topic is solved
- Replies: 2
- Views: 836
Unable to Destroy/Hide a Gui, Gui.Destroy() causes Error Topic is solved
My CapsLock is usually disabled. I wrote a script to enable it temporarily for 10 seconds with a notification Gui and then disable it. It also includes a Keywait that allows me to skip the 10s wait and disable it immediately, but the notification gui persists for the full 10 seconds. Any attempt to ...
- 20 Dec 2023, 11:22
- Forum: Scripts and Functions (v2)
- Topic: Small AHK v2 functions
- Replies: 2
- Views: 1056
Re: Small AHK v2 functions
@AHK_user
It does. Huh, I didn't know. I used these ones in my AHK v1 script for a long time. Thanks for pointing it out.
It does. Huh, I didn't know. I used these ones in my AHK v1 script for a long time. Thanks for pointing it out.
- 20 Dec 2023, 04:08
- Forum: Scripts and Functions (v2)
- Topic: Small AHK v2 functions
- Replies: 2
- Views: 1056
Small AHK v2 functions
Tray Icon - change script tray icon (which also changes the default icon in a script's error windows, msgboxes and GUI title icon). HasVal Function - Check if value is already in an array and retrieve it's Index if present. This code is old. Updates will be posted here on GitHub. #Requires AutoHotk...
- 18 Dec 2023, 14:38
- Forum: Scripts and Functions (v2)
- Topic: Change the case of text in-line using AHK v2 Menu()
- Replies: 6
- Views: 760
Re: Change the case of text in-line using AHK v2 Menu()
@andymbody
Argh! One more correctIon. ClipboardAll to ClipboardAll()
There are probably more snafu's in there... somewhere. Sorry.
Argh! One more correctIon. ClipboardAll to ClipboardAll()
There are probably more snafu's in there... somewhere. Sorry.
- 18 Dec 2023, 14:14
- Forum: Scripts and Functions (v2)
- Topic: Change the case of text in-line using AHK v2 Menu()
- Replies: 6
- Views: 760
Re: Change the case of text in-line using AHK v2 Menu()
in case it affects other apps as well. I don't use Scite, so it doesn't affect me. And this is the only script that has such a TestString, so your post should help those who encounter an error. Thanks for the explanation. Also, there was an error in CallClipboard function. I had forgotten to change...
- 18 Dec 2023, 13:02
- Forum: Scripts and Functions (v2)
- Topic: Wrap Text In Quotes in-line using AHK v2 Menu() & keys
- Replies: 0
- Views: 619
Wrap Text In Quotes in-line using AHK v2 Menu() & keys
I find myself wanting to enclose words and numbers in different types of quotation marks, especially when working on a AutoHotkey script :) Taking inspiration from two old AHK v1 scripts from here and here , I rewrote my chimeric mess of a AHK v1 script into AHK v2. #Requires AutoHotkey v2.0 ; Wrap ...
- 18 Dec 2023, 12:40
- Forum: Scripts and Functions (v2)
- Topic: Change the case of text in-line using AHK v2 Menu()
- Replies: 6
- Views: 760
Re: Change the case of text in-line using AHK v2 Menu()
1. Add closing brace to line 61 - for CaseConvert() That was a copy paste error, corrected now. I will be more careful when posting code. 2. Delete (rather than comment out) line 53 - not sure why this line causes a missing brace error even after adding the brace on line 61 ; . "abcdefghijklmnopqrs...
- 18 Dec 2023, 09:32
- Forum: Scripts and Functions (v2)
- Topic: Change the case of text in-line using AHK v2 Menu()
- Replies: 6
- Views: 760
Change the case of text in-line using AHK v2 Menu()
This script was inspired by a AutoHotkey v1 script I altered and used for several years - sourced from here . The script below is in AutoHotkey v2 and uses a pop up menu that allows you to select the type of case you want the text to be changed to. It should work with special characters such as é an...
- 17 Dec 2023, 02:34
- Forum: Scripts and Functions (v2)
- Topic: Toggle protected operating system files (Explorer Show/Hide SuperHidden)
- Replies: 0
- Views: 464
Toggle protected operating system files (Explorer Show/Hide SuperHidden)
Toggle protected operating system files in Windows File Explorer, i.e., show or hide SuperHidden files - applies to OS folders like $Recycle.Bin and files like hiberfil.sys . Inspired by this post by gonzax Adapted to AHK v2 and improved to show status of registry key (in the form of a check mark) i...
- 16 Dec 2023, 09:57
- Forum: Scripts and Functions (v2)
- Topic: Automatically capitalize first letter AHK v2 with InputHook
- Replies: 0
- Views: 590
Automatically capitalize first letter AHK v2 with InputHook
This code was modified from a script posted here by Xtra Adapted to AutoHotkey v2 and improved to capitalize the first letter whether or not it is preceded by a space. #Requires AutoHotkey v2.0 ~NumpadEnter:: ~Enter:: ~.:: ~!:: ~?:: { char1 := InputHook("L1 V C"," {LShift}{RShift}", "a,b,c,d,e,f,g,h...
- 15 Dec 2023, 12:16
- Forum: Ask for Help (v2)
- Topic: #HotIf fails to activate when global variant is present Topic is solved
- Replies: 5
- Views: 407
Re: #HotIf fails to activate when global variant is present Topic is solved
Thanks. I will post a new topic there.
- 15 Dec 2023, 05:37
- Forum: Ask for Help (v2)
- Topic: use Run with a variable containing space Topic is solved
- Replies: 6
- Views: 508
- 15 Dec 2023, 05:31
- Forum: Ask for Help (v2)
- Topic: #HotIf fails to activate when global variant is present Topic is solved
- Replies: 5
- Views: 407
Re: #HotIf fails to activate when global variant is present Topic is solved
@niCode
This worked. Thank you.
This worked. Thank you.
- 15 Dec 2023, 03:00
- Forum: Ask for Help (v2)
- Topic: use Run with a variable containing space Topic is solved
- Replies: 6
- Views: 508
Re: use Run with a variable containing space Topic is solved
Thanks @neogna2
It worked.
I did read the docs, but there was no clear mention of putting variables into single AND double quotes. It makes sense now though.
Thanks @vmech for replying
Your response raised an error `Error: Unexpected operator following literal string.`
It worked.
I did read the docs, but there was no clear mention of putting variables into single AND double quotes. It makes sense now though.
Thanks @vmech for replying
Your response raised an error `Error: Unexpected operator following literal string.`