Search found 94 matches

by omareg94
27 Oct 2023, 05:04
Forum: Ask for Help (v1)
Topic: Shift key stuck after firing hotstring
Replies: 4
Views: 416

Re: Shift key stuck after firing hotstring

Anyone has any justification / solution?
by omareg94
11 Oct 2023, 11:26
Forum: Ask for Help (v1)
Topic: Shift key stuck after firing hotstring
Replies: 4
Views: 416

Re: Shift key stuck after firing hotstring

@boiler
This issue happens also on other editors like VS Code or a text input in a browser.
by omareg94
11 Oct 2023, 07:55
Forum: Ask for Help (v1)
Topic: Shift key stuck after firing hotstring
Replies: 4
Views: 416

Shift key stuck after firing hotstring

I have a hotstring defined as following: :*SEK10:cdyy<:: ; (c)urrent (d)a(y) (format 2) FormatTime, CurrentDateTime, Default, dddd, dd-MMM-yyyy Clipboard := "⋮ " CurrentDateTime ClipWait SendEvent % "^v" ; paste content return On Windows 11, many times, when I type `cdyy<` hotstring on any window (m...
by omareg94
10 Oct 2023, 06:08
Forum: Ask for Help (v1)
Topic: Very slow & hanging hotstring Topic is solved
Replies: 2
Views: 296

Re: Very slow & hanging hotstring Topic is solved

Thank you a lot this solved the problem.
by omareg94
10 Oct 2023, 05:41
Forum: Ask for Help (v1)
Topic: Very slow & hanging hotstring Topic is solved
Replies: 2
Views: 296

Very slow & hanging hotstring Topic is solved

I have a hotstring defined as following: :*XP1:cdm<:: SendInput, "Heyy" return After a while of using my PC, on Windows 11, many times, when I type `cdm<` hotstring on any notepad window, it becomes so slow or hanging to continue typing/sending input until I press any keyboard button to make it cont...
by omareg94
24 Feb 2021, 07:09
Forum: Ask for Help (v1)
Topic: How to sendmessage virtual key codes of multiple keys (keys with modifiers, e.g. ctrl+c, ctrl+v)?
Replies: 0
Views: 489

How to sendmessage virtual key codes of multiple keys (keys with modifiers, e.g. ctrl+c, ctrl+v)?

I use SendMessage to send virtual keys to PotPlayer window while in background. This is the only way I can send key strokes to PotPlayer window (I tried ControlSend, and it didn't work). I can send single key strokes easily (e.g. space key like shown below): SendMessage, 0x0400, 0x5010,0x20,, ahk_cl...
by omareg94
27 Oct 2020, 09:51
Forum: Ask for Help (v1)
Topic: How to get VS Code active window's current file path?
Replies: 4
Views: 1871

Re: How to get VS Code active window's current file path?

You can get the file path from the title of the VS Code window. The RegExMatch below removes the ● and space preceding the filename if it appears (indicating unsaved changes) and the - Visual Studio Code from the end. WinGetTitle, filepath, ahk_exe Code.exe RegExMatch(filepath, Chr(9679) . "? ?\K.*...
by omareg94
27 Oct 2020, 00:01
Forum: Ask for Help (v1)
Topic: How to get VS Code active window's current file path?
Replies: 4
Views: 1871

How to get VS Code active window's current file path?

I need to get active window's file path of VS Code.
I'm able to get active window's file path of Sublime Text using the method below:

Code: Select all

RunWait, "subl --command ""copy_path""",,Hide
filepath = Clipboard
I've searched for a similar CLI command for VS Code but I couldn't find any.
by omareg94
12 Jun 2020, 13:52
Forum: Ask for Help (v1)
Topic: How to detect file rename event on File Explorer
Replies: 1
Views: 711

How to detect file rename event on File Explorer

I need to make autohotkey execute some function on the event when the user renames any file on file explorer (autohotkey should get the old and new file's names).
by omareg94
02 Jun 2020, 16:14
Forum: Ask for Help (v1)
Topic: Limit (or filter) Alt+Tab windows switcher to show specific windows only
Replies: 3
Views: 619

Re: Limit (or filter) Alt+Tab windows switcher to show specific windows only

mshafer1 That's a good step towards what I'm looking for. I'm really interested in using the original Windows Switcher because when I hold Win+Alt, I can take a quick glimpse of what windows are open, and I can select window I want to switch to using arrow keys. I hope there's a way to control the ...
by omareg94
02 Jun 2020, 08:44
Forum: Ask for Help (v1)
Topic: Limit (or filter) Alt+Tab windows switcher to show specific windows only
Replies: 3
Views: 619

Limit (or filter) Alt+Tab windows switcher to show specific windows only

I'm looking for a way to limit (or filter) Alt+Tab windows switcher (screenshot below) to show only windows with specific WinTitle (e.g., ahk_exe notepad.exe). Is there any idea where to start. I've come across this blog post: how do I write an Alt+Tab replacement program? Are there any AHK function...
by omareg94
27 Apr 2020, 07:22
Forum: Ask for Help (v1)
Topic: 4 options to change the current folder in Windows Explorer
Replies: 77
Views: 38226

Re: 4 options to change the current folder in Windows Explorer

I have what looks to be a working solution for this, which I've also posted here: windows - Navigate Shell command not working when the path includes an hash - Stack Overflow https://stackoverflow.com/questions/22868546/navigate-shell-command-not-working-when-the-path-includes-an-hash ;links: ;Expl...
by omareg94
26 Apr 2020, 04:29
Forum: Ask for Help (v1)
Topic: Jump cursor to line number & column number on Notepad window?
Replies: 1
Views: 398

Jump cursor to line number & column number on Notepad window?

Hello, I know I can jump cursor to (Go to) specific line and column numbers on a Notepad window by sending multiple sequence of up/down/right/left keys to a notepad window. Is there a more straightforward/high-performing way to achieve this (may be like send message or something) that gets me instan...
by omareg94
26 Apr 2020, 04:21
Forum: Ask for Help (v1)
Topic: Get Line and Column numbers of a Notepad window? Topic is solved
Replies: 2
Views: 528

Re: Get Line and Column numbers of a Notepad window? Topic is solved

Thanks this gets it successfully. 2:: WinGet, window_id, ID, A StatusBarGetText, StatusText, 2, ahk_id %window_id% RegExMatch(StatusText, "(?<=Ln )\d*", line_number) RegExMatch(StatusText, "(?<=Col )\d*", column_number) MsgBox, % "line number: " line_number "`ncolumn number: " column_number return
by omareg94
26 Apr 2020, 03:24
Forum: Ask for Help (v1)
Topic: Get Line and Column numbers of a Notepad window? Topic is solved
Replies: 2
Views: 528

Get Line and Column numbers of a Notepad window? Topic is solved

Hello,

How can I get Line and Column numbers of a Notepad window?

Image
by omareg94
26 Apr 2020, 03:17
Forum: Ask for Help (v1)
Topic: Get time when window was last accessed (or activated)?
Replies: 3
Views: 466

Get time when window was last accessed (or activated)?

Hello, I'm looking for a way to get the time when a window was last accessed (or activated). Let's say I activated (or accessed) a window 5 hours ago and I didn't activate it since this time (another window is currently activated). Then, some arbitrarily-named function like getWindowLastActivateTime...
by omareg94
18 Apr 2020, 03:36
Forum: Ask for Help (v1)
Topic: How to assign hotkey of pressing Alt key twice (Alt+Release+Alt) in Autohotkey? Topic is solved
Replies: 4
Views: 6368

Re: How to assign hotkey of pressing Alt key twice (Alt+Release+Alt) in Autohotkey? Topic is solved

Thank you all for your suggestions. Hope you and all your families are safe. Sorry for the very late reply. See TapHoldManager This will allow you to handle multi-tap / long-press etc for any number of keys (ie it supports tap-tap, tap-hold, tap-tap-hold etc) FYI Rohdwedder's technique will only wor...
by omareg94
16 Apr 2020, 10:46
Forum: Scripts and Functions (v1)
Topic: TapHoldManager - Long Press / Multi Tap / Multi Tap and Hold / Any number of Taps / Multi-Keyboard / Joystick buttons
Replies: 113
Views: 44841

Re: TapHoldManager - Long Press / Multi Tap / Multi Tap and Hold / Any number of Taps / Multi-Keyboard / Joystick button

Hello evilC,

Is it possible to declare a hotkey limited to specific window in order not to conflict with other hotkeys already declared for other windows?

Thank you.

Update:
I've solved it. Kindly check this.
@evilC
by omareg94
22 Jan 2020, 14:28
Forum: Scripts and Functions (v1)
Topic: notepad get/set path (get/set text file path)
Replies: 27
Views: 12597

Re: notepad get/set path (get/set text file path)

I found a way to simplify the GetPath function and make it run significantly faster (~100 times). EDIT : Changed the function so that it now works with both Notepad x32 and x64 on Windows 7. Hello iPhilip and jeeswg Does this function work consistently when multiple windows of notepad are open? I'm...
by omareg94
21 Jan 2020, 19:17
Forum: Scripts and Functions (v1)
Topic: notepad get/set path (get/set text file path)
Replies: 27
Views: 12597

Re: notepad get/set path (get/set text file path)

I have tested it on Windows 10 x64, unfortunately it's not working.
It doesn't get the file path, just an empty string.

Go to advanced search