Search found 86 matches

by omareg94
12 Jun 2020, 13:52
Forum: Ask For Help
Topic: How to detect file rename event on File Explorer
Replies: 1
Views: 588

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
Topic: Limit (or filter) Alt+Tab windows switcher to show specific windows only
Replies: 3
Views: 162

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
Topic: Limit (or filter) Alt+Tab windows switcher to show specific windows only
Replies: 3
Views: 162

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
Topic: 4 options to change the current folder in Windows Explorer
Replies: 64
Views: 25256

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
Topic: Jump cursor to line number & column number on Notepad window?
Replies: 1
Views: 193

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
Topic: Get Line and Column numbers of a Notepad window? Topic is solved
Replies: 2
Views: 242

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
Topic: Get Line and Column numbers of a Notepad window? Topic is solved
Replies: 2
Views: 242

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
Topic: Get time when window was last accessed (or activated)?
Replies: 3
Views: 292

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
Topic: How to assign hotkey of pressing Alt key twice (Alt+Release+Alt) in Autohotkey? Topic is solved
Replies: 4
Views: 1628

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
Topic: TapHoldManager - Long Press / Multi Tap / Multi Tap and Hold / Any number of Taps / Multi-Keyboard / Joystick buttons
Replies: 37
Views: 14360

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
Topic: notepad get/set path (get/set text file path)
Replies: 27
Views: 8042

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
Topic: notepad get/set path (get/set text file path)
Replies: 27
Views: 8042

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.
by omareg94
21 Jan 2020, 14:51
Forum: Ask For Help
Topic: How to get full multi-line text of Edit1 from a Notepad window all at once (not line by line)? Topic is solved
Replies: 6
Views: 500

Re: How to get full multi-line text of Edit1 from a Notepad window all at once (not line by line)? Topic is solved

just me wrote:
21 Jan 2020, 05:55
ControlGetText ?
Great! this works very well. Thank you for help :)

Code: Select all

ControlGetText, notepad_text, Edit1, ahk_exe notepad.exe ahk_class Notepad
MsgBox, % notepad_text
; Successfully get text from Notepad window
by omareg94
21 Jan 2020, 05:22
Forum: Ask For Help
Topic: How to get full multi-line text of Edit1 from a Notepad window all at once (not line by line)? Topic is solved
Replies: 6
Views: 500

Re: How to get full multi-line text of Edit1 from a Notepad window all at once (not line by line)? Topic is solved

garry wrote:
21 Jan 2020, 04:29
maybe command > fileread,a,C:\... or Drag&Drop text file ( ? )
I need to get text from Notepad window even if it's not saved to any file.
So I can't use FileRead as a solution.
by omareg94
21 Jan 2020, 03:52
Forum: Ask For Help
Topic: How to get full multi-line text of Edit1 from a Notepad window all at once (not line by line)? Topic is solved
Replies: 6
Views: 500

Re: How to get full multi-line text of Edit1 from a Notepad window all at once (not line by line)? Topic is solved

Hallo, perhaps: ControlSend, Edit1, {Ctrl Down}ac{Ctrl Up}, ahk_exe notepad.exe MsgBox,% ClipBoard Return The problem is that my example is a part of a bigger script that is needed to run in the background that get text of many notepad windows. I don't want to change typing-cursor location or even ...
by omareg94
21 Jan 2020, 03:03
Forum: Ask For Help
Topic: How to get full multi-line text of Edit1 from a Notepad window all at once (not line by line)? Topic is solved
Replies: 6
Views: 500

How to get full multi-line text of Edit1 from a Notepad window all at once (not line by line)? Topic is solved

I'm looking for the best approach to get multi-line text from Edit1 control from a Notepad window. I tried this approach to get full text from Notepad window (it reads it line by line, I think it's somehow slow): ControlGet, lines_count, LineCount ,, Edit1, ahk_exe notepad.exe ahk_class Notepad note...
by omareg94
03 May 2019, 09:14
Forum: Ask For Help
Topic: How to get a folder's size (with skipping symbolic links)?
Replies: 2
Views: 407

Re: How to get a folder's size (with skipping symbolic links)?

Like this? Loop, %WhichFolder%\*.*, , 1 { if (A_LoopFileExt != "lnk") FolderSize += %A_LoopFileSize% } It doesn't skip the symbolic link also. I noticed something about the symbolic link file, it seems that it doesn't have the .lnk extension. https://i.imgur.com/taVmTeY.png
by omareg94
03 May 2019, 07:58
Forum: Ask For Help
Topic: How to get a folder's size (with skipping symbolic links)?
Replies: 2
Views: 407

How to get a folder's size (with skipping symbolic links)?

To get a folder's size, I use: SetBatchLines, -1 ; Make the operation run at maximum speed. FolderSize = 0 FileSelectFolder, WhichFolder ; Ask the user to pick a folder. Loop, %WhichFolder%\*.*, , 1 FolderSize += %A_LoopFileSize% MsgBox Size of %WhichFolder% is %FolderSize% bytes. Originally mention...
by omareg94
23 Oct 2018, 10:27
Forum: Ask For Help
Topic: How to assign hotkey of pressing Alt key twice (Alt+Release+Alt) in Autohotkey? Topic is solved
Replies: 4
Views: 1628

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

How to assign a hotkey of quickly pressing {Alt} key twice in Autohotkey? In other words: How to assign Press Alt + Release Alt + Press Alt as a hotkey? In other words: How to assign key down {Alt} key then key up {Alt} key then quickly key down {Alt} ?. I want to set the time between releasing {Alt...
by omareg94
08 Jun 2018, 23:24
Forum: Ask For Help
Topic: How to load binary content to clipboard without anything removed or manipulated?
Replies: 0
Views: 487

How to load binary content to clipboard without anything removed or manipulated?

I have binary content stored in a file (containing previous clipboard content) is being modified (without purpose or adding code for this) every time I try to load it to clipboard. The binary content represents organised paragraphs on OneNote copied to clipboard. In order to be able to use later, I ...

Go to advanced search