Search found 44 matches
- 10 Mar 2024, 05:41
- Forum: Ask for Help (v2)
- Topic: Set 0px or 1px width for a window
- Replies: 2
- Views: 159
Re: Set 0px or 1px width for a window
just me I didn't get your point, but for more clarification, I am intended to create a slider to slide some apps (eg. chatGPT chrome app), just like Copilot which slides in/out with Win+C in windows 11. I've already written a script to simulates sliding by moving the window out of the screen (By mo...
- 10 Mar 2024, 03:54
- Forum: Ask for Help (v2)
- Topic: Set 0px or 1px width for a window
- Replies: 2
- Views: 159
Set 0px or 1px width for a window
Is it possible in Autohotkey to set a 0px or a 1px width for a window? In the following script, I intended to create a simple slider, but it cant set the window width less than 334px . F1:: { hwnd := WinExist('Notepad') WinGetPos(, , &width, , hwnd) Step := 10 Loop width / Step { WinMove( , ,width -...
- 08 Mar 2024, 06:06
- Forum: Ask for Help (v2)
- Topic: Problem with unhiding a window
- Replies: 3
- Views: 165
Re: Problem with unhiding a window
@mikeyww
Yes, that was my mistake.
Thanks
Yes, that was my mistake.
Thanks
- 08 Mar 2024, 05:34
- Forum: Ask for Help (v2)
- Topic: Problem with unhiding a window
- Replies: 3
- Views: 165
Problem with unhiding a window
I want to know why this script cannot unhide windows?
Code: Select all
hidden := []
F2:: {
hwnd := WinExist('A')
hidden.Push(hwnd)
WinHide(hwnd)
}
F3:: {
; MsgBox (hidden.Length) ; This detect the length correctly
loop(hidden){
WinShow(hidden[A_Index])
WinActivate(hidden[A_Index])
}
}
- 27 Feb 2024, 04:41
- Forum: Ask for Help (v2)
- Topic: Converting v1 script to v2
- Replies: 2
- Views: 549
Re: Converting v1 script to v2
Here is the answer thanks to iPhilip: ; REMOVED: #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode("Input") ; Recommended for new scripts due to its superior speed and reliability. SetWor...
- 27 Feb 2024, 04:30
- Forum: Scripts and Functions (v1)
- Topic: Simple Windows Drag - Easily snap, move and resize windows
- Replies: 9
- Views: 3259
Re: Simple Windows Drag - Easily snap, move and resize windows
@iPhilip
Works perfectly
Thank you for your help
Works perfectly
Thank you for your help
- 23 Feb 2024, 05:01
- Forum: Ask for Help (v2)
- Topic: Converting v1 script to v2
- Replies: 2
- Views: 549
Converting v1 script to v2
I'm trying to convert this script to v2: https://github.com/Tome-Sulmont/SimpleWindowsDrag But I get the following error when using Win + numpad or Win + MButton hotkeys: Error: Invalid parameter(s). ▶ 227: NumPut('UPtr', 40, monitorInfo) I'm new to AHK and can't fix the error by myself. So, appreci...
- 22 Feb 2024, 15:14
- Forum: Scripts and Functions (v1)
- Topic: Simple Windows Drag - Easily snap, move and resize windows
- Replies: 9
- Views: 3259
Re: Simple Windows Drag - Easily snap, move and resize windows
# Update Here is the v2 version for those who interested: ; REMOVED: #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode("Input") ; Recommended for new scripts due to its superior speed and...
- 16 Feb 2024, 23:50
- Forum: Ask for Help (v2)
- Topic: Override default windows hotkeys
- Replies: 5
- Views: 474
Re: Override default windows hotkeys
Seven0528 xMaxrayx Thank you both for reply. I didn't want to disable all Win keys. So, I just disabled Win+l using this guide: https://superuser.com/questions/1059511/how-to-disable-winl-in-windows-10 and removed Game-bar using the following command in PowerShell (Admin): Get-AppxPackage Microsoft...
- 14 Feb 2024, 06:48
- Forum: Ask for Help (v2)
- Topic: Override default windows hotkeys
- Replies: 5
- Views: 474
Override default windows hotkeys
How to override some default windows hotkeys?
I can override #r easily, by #r:: soundbeep or Lwin & r:: soundbeep
but can't override #g or #l in the same way. These hotkeys don't prevent default actions which are opening xbox gamebar and lock system.
I can override #r easily, by #r:: soundbeep or Lwin & r:: soundbeep
but can't override #g or #l in the same way. These hotkeys don't prevent default actions which are opening xbox gamebar and lock system.
- 11 Feb 2024, 05:32
- Forum: Ask for Help (v2)
- Topic: Detecting if a text is selected
- Replies: 6
- Views: 512
Re: Detecting if a text is selected
@Noitalommi_2
This script cant detect the selection correctly
This script cant detect the selection correctly
- 06 Feb 2024, 10:10
- Forum: Ask for Help (v2)
- Topic: Detecting if a text is selected
- Replies: 6
- Views: 512
Re: Detecting if a text is selected
I am new to ahk and cant fully follow the documents yet!
Can you provide some examples pls.
Can you provide some examples pls.
- 06 Feb 2024, 08:43
- Forum: Ask for Help (v2)
- Topic: Detecting if a text is selected
- Replies: 6
- Views: 512
Detecting if a text is selected
I need to check if any text selected. I have this function which works fine: IsTextSelected() { SavedClip := ClipboardAll() A_Clipboard := "" Send("^c") Errorlevel := !ClipWait(0.5) ; Wait for the clipboard to contain data if (!ErrorLevel) ; There is data on clipboard return (true) else return (fals...
- 01 Feb 2024, 08:03
- Forum: Ask for Help (v2)
- Topic: Problem sending Win+A_PriorKey
- Replies: 1
- Views: 207
Problem sending Win+A_PriorKey
I have this modified version of Morse Function by Laszlo, which detects different patterns of pressing Win key (Single, double or triple in addition to short and long presses) Morse(Timeout := 150, Count := 3) { Global Pattern := "" Win := WinExist("A") RegExMatch(Hotkey := A_ThisHotkey, "\W$|\w*$",...
- 29 Jan 2024, 06:03
- Forum: Visual Studio Code
- Topic: Setting launch.json up
- Replies: 6
- Views: 3664
Re: Setting launch.json up
I couldn't set the launch.json up correctly to tcheck
That is what I've asked for help for!
That is what I've asked for help for!
- 28 Jan 2024, 23:13
- Forum: Visual Studio Code
- Topic: Setting launch.json up
- Replies: 6
- Views: 3664
Re: Setting launch.json up
I get the above mentioned error even on this simple one line script:
Code: Select all
:*:btw::by the way
- 28 Jan 2024, 12:55
- Forum: Visual Studio Code
- Topic: Setting launch.json up
- Replies: 6
- Views: 3664
Re: Setting launch.json up
If you do not need a custom debugger feature, you can launch the debugger using the debug button in the editor context menu or editor title menu without setting launch.json . Thank you for the reply. Without setting launch.json, When using the debug button, I get this error: "An internal error has ...
- 28 Jan 2024, 07:53
- Forum: Ask for Help (v2)
- Topic: Select a word in MSWord Topic is solved
- Replies: 11
- Views: 1014
Re: Select a word in MSWord Topic is solved
@Descolada
Works perfectly
Thanks again
Works perfectly
Thanks again
- 28 Jan 2024, 03:04
- Forum: Ask for Help (v2)
- Topic: Select a word in MSWord Topic is solved
- Replies: 11
- Views: 1014
Re: Select a word in MSWord Topic is solved
@Descolada
Do you have any idea how to make it work in VSCode?
Do you have any idea how to make it work in VSCode?
- 28 Jan 2024, 02:41
- Forum: Ask for Help (v2)
- Topic: Select a word in MSWord Topic is solved
- Replies: 11
- Views: 1014
Re: Select a word in MSWord Topic is solved
Perhaps something like this for other applications (requires UIA.ahk in the same folder as the script): #Requires AutoHotkey v2 #include UIA.ahk F12::{ try if (el := UIA.GetFocusedElement()) && el.IsTextPatternAvailable { selectionRange := el.GetSelection()[1] selectionRange.ExpandToEnclosingUnit(U...