Search found 25 matches
- 26 Nov 2021, 14:58
- Forum: Ask for Help (v1)
- Topic: Show Windows 10 native clock widget programmatically Topic is solved
- Replies: 21
- Views: 6024
Re: Show Windows 10 native clock widget programmatically Topic is solved
I am wondering if it's possible to update this code for Windows 11 clock widget? Thanks
- 24 May 2020, 08:50
- Forum: Ask for Help (v1)
- Topic: Show Windows 10 native clock widget programmatically Topic is solved
- Replies: 21
- Views: 6024
Re: Show Windows 10 native clock widget programmatically Topic is solved
For me this works: ControlGet, hClock, hwnd,, TrayClockWClass1, ahk_class Shell_TrayWnd accClock := AccObjectFromWindow(hClock, OBJID_CLIENT := 0xFFFFFFFC) accClock.accDoDefaultAction(0) AccObjectFromWindow(hWnd, idObject = 0) { static IID_IDispatch := "{00020400-0000-0000-C000-000000000046}" , IID...
- 05 May 2020, 06:53
- Forum: Ask for Help (v1)
- Topic: Show Windows 10 native clock widget programmatically Topic is solved
- Replies: 21
- Views: 6024
Re: Show Windows 10 native clock widget programmatically Topic is solved
If you're running a 64-bit version of AutoHotkey (this doesn't work with 32-bit; I guess I'm doing something wrong with the VARIANT structure somewhere) - fixed thanks to Eidola, this works with the clock replacement program I use to show the original clock hosted by the Explorer process: ControlGe...
- 05 Sep 2018, 07:17
- Forum: Ask for Help (v1)
- Topic: Show Win+; emoji dialog programmatically
- Replies: 1
- Views: 731
Show Win+; emoji dialog programmatically
I have diasabled Win+X hotkeys in Windows (using registry) and use them with AHK. But I want to try new emoji feature in Windows 1803. It's annoying to go click the keyboard taskbar and navigate to it. I just want to show the main popup dialog (https://i.stack.imgur.com/ezDce.jpg) using AHK. Somethi...
- 19 Aug 2018, 07:19
- Forum: Ask for Help (v1)
- Topic: Autohotkey miss sometime with High keyboard Repeat Rate (Windows keyboard setting)
- Replies: 2
- Views: 750
- 05 Aug 2018, 13:19
- Forum: Ask for Help (v1)
- Topic: Autohotkey miss sometime with High keyboard Repeat Rate (Windows keyboard setting)
- Replies: 2
- Views: 750
Autohotkey miss sometime with High keyboard Repeat Rate (Windows keyboard setting)
I having an issue with keyboard repeat rate (keyboard setting in control panel) If it's high, and you just keep the key pressed, AHK misses some of them and they don't get captured and worse, active application receive them and start doing funny stuff Example ^!s::Return It fails if I keep 3 of them...
- 23 Mar 2018, 10:43
- Forum: Ask for Help (v1)
- Topic: ^WheelDown::SendInput {PgDn} fails when scrolling fast
- Replies: 2
- Views: 829
Re: ^WheelDown::SendInput {PgDn} fails when scrolling fast
I cannot believe after wasting so much time searching for solution, this simple code worked!
Ctrl & WheelUp::SendInput {PgUp}
Ctrl & WheelDown::SendInput {PgDn}
Ctrl & WheelUp::SendInput {PgUp}
Ctrl & WheelDown::SendInput {PgDn}
- 23 Mar 2018, 09:57
- Forum: Ask for Help (v1)
- Topic: ^WheelDown::SendInput {PgDn} fails when scrolling fast
- Replies: 2
- Views: 829
- 12 Mar 2018, 03:58
- Forum: Ask for Help (v1)
- Topic: ^WheelDown::SendInput {PgDn} fails when scrolling fast
- Replies: 2
- Views: 829
^WheelDown::SendInput {PgDn} fails when scrolling fast
I use this from years:
^WheelUp::SendInput {PgUp}
^WheelDown::SendInput {PgDn}
But it has been always so buggy. It works fine if I scroll slow. But if I scroll fast (reasonable fast for a human), it mess up and skip hotkey. Any idea how to fix it
^WheelUp::SendInput {PgUp}
^WheelDown::SendInput {PgDn}
But it has been always so buggy. It works fine if I scroll slow. But if I scroll fast (reasonable fast for a human), it mess up and skip hotkey. Any idea how to fix it
- 17 Feb 2018, 20:09
- Forum: Bug Reports
- Topic: How to find reason for crash every few weeks
- Replies: 9
- Views: 3134
Re: How to find reason for crash every few weeks
- In what way is it crashing? Does it show an error message? Does it 'forget' the hotkeys? - You could set DetectHiddenWindows to On, and use a Loop, with WinWaitActive, and ahk_class AutoHotkey to identify which scripts are open. You could use PostMessage/WinClose to close or Process Close to forc...
- 17 Feb 2018, 20:06
- Forum: Bug Reports
- Topic: How to find reason for crash every few weeks
- Replies: 9
- Views: 3134
Re: How to find reason for crash every few weeks
Is there some automated way to do it?SL5 wrote:and maybe helps to write to a logfile.
so you could later look at the last actions.
- 17 Feb 2018, 20:06
- Forum: Bug Reports
- Topic: How to find reason for crash every few weeks
- Replies: 9
- Views: 3134
Re: How to find reason for crash every few weeks
You can do second script which check for example every 1min if win exist, if not then run script. Without any code we can only guess why it's crashing. Maybe lost connection to network drive which is required for your script, missing required file, maybe bad var. Who knows :) It's more than 2000 li...
- 15 Feb 2018, 07:34
- Forum: Bug Reports
- Topic: How to find reason for crash every few weeks
- Replies: 9
- Views: 3134
How to find reason for crash every few weeks
I am heavy user of AHK with 2000+ lines of personal scripts/hotkeys along with around a dozen of library. My problem is AHK crash every few days/weeks. Sometime not from weeks, sometime twice in a day. Since it happens very rarely, it's very hard for me to determine what cause it and fix the relevan...
- 14 Dec 2016, 07:35
- Forum: Other Utilities & Resources
- Topic: Chrome native messaging from AHK
- Replies: 3
- Views: 4987
Chrome native messaging from AHK
I want to run particular background page function in Chrome using AHK based on the hotkeys. I think it's possible with chrome native messaging api. But I think we need to build a program that will work between AHK and chrome. I feel it will take a lot of time. Does anyone know of some ready made pro...
- 13 Aug 2016, 08:12
- Forum: Ask for Help (v1)
- Topic: Show Windows 10 native clock widget programmatically Topic is solved
- Replies: 21
- Views: 6024
Re: Show Windows 10 native clock widget programmatically Topic is solved
If you're running a 64-bit version of AutoHotkey (this doesn't work with 32-bit; I guess I'm doing something wrong with the VARIANT structure somewhere), this works with the clock replacement program I use to show the original clock hosted by the Explorer process: ControlGet, hClock, Hwnd,, TrayClo...
- 09 Aug 2016, 15:01
- Forum: Ask for Help (v1)
- Topic: RegExMatch selecting value of attribute in every xml based file
- Replies: 5
- Views: 1484
Re: RegExMatch selecting value of attribute in every xml based file
I don't think there is a pre-existing function for that. One of the simplest trick and poorly written to do that is 1) Programmatically press Shift+Home 2) Copy selection to clipboard and calculate number of moves required to reach quote 3) Do the same for right side 4) Select that region since you ...
- 09 Aug 2016, 04:56
- Forum: Ask for Help (v1)
- Topic: RegExMatch selecting value of attribute in every xml based file
- Replies: 5
- Views: 1484
Re: RegExMatch selecting value of attribute in every xml based file
Try dragging
Double click on "default" (don't release the LButton on second click). While keeping the LButton down, move the mouse to number. Release LButton
Double click on "default" (don't release the LButton on second click). While keeping the LButton down, move the mouse to number. Release LButton
- 08 Aug 2016, 16:50
- Forum: Ask for Help (v1)
- Topic: RegExMatch selecting value of attribute in every xml based file
- Replies: 5
- Views: 1484
Re: RegExMatch selecting value of attribute in every xml based file
Double clicking can do that without even needing RegExp (you can also double click followed by dragging on selection)
- 08 Aug 2016, 16:45
- Forum: Ask for Help (v1)
- Topic: 2 keys bound to 1 button toggle with sleep
- Replies: 2
- Views: 901
Re: 2 keys bound to 1 button toggle with sleep
Something like?
LAlt::
f1()
f2()
SetTimer f1, 3000
SetTimer f2, 6000
Return
f1() {
send q
}
f2() {
send r
}
LAlt::
f1()
f2()
SetTimer f1, 3000
SetTimer f2, 6000
Return
f1() {
send q
}
f2() {
send r
}
- 08 Aug 2016, 16:34
- Forum: Ask for Help (v1)
- Topic: Run scripts as administrator? Topic is solved
- Replies: 13
- Views: 52042
Re: Run scripts as administrator? Topic is solved
Press Alt+Enter on AutoHotkey.exe -> Compatibility -> Run this program as administrator.
You can also associate .ahk extension with the application if you want
You can also associate .ahk extension with the application if you want