Search found 34 matches

by downloaderfan
28 Jan 2023, 22:57
Forum: Ask for Help (v1)
Topic: React to Wake On LAN magic packet using AutoHotkey
Replies: 1
Views: 585

React to Wake On LAN magic packet using AutoHotkey

Hello, I have a setup where I'm able to wake my laptop from sleep using Wake ON LAN magic packet sent by Alexa. I was wondering, when the laptop is On, can I make AHK read the WOL magic packet and react to it? I would like to put PC to sleep using the same WOL command. I've found a utility that does...
by downloaderfan
05 Jan 2023, 10:13
Forum: SciTE4AutoHotkey
Topic: Possible to remap Ctrl + Y to Ctrl + Shift + Z? Topic is solved
Replies: 2
Views: 1143

Re: Possible to remap Ctrl + Y to Ctrl + Shift + Z? Topic is solved

Yes, you can use the s4ahk.user.shortcuts property. s4ahk.user.shortcuts=\ Ctrl+Shift+Z|IDM_REDO| This has the same syntax as user.shortcuts . S4A uses user.shortcuts itself (in SciTEGlobal.properties) to define some standard S4A-specific shortcuts. I already have ^+z::Send ^y for some other apps, ...
by downloaderfan
04 Jan 2023, 16:42
Forum: SciTE4AutoHotkey
Topic: Possible to remap Ctrl + Y to Ctrl + Shift + Z? Topic is solved
Replies: 2
Views: 1143

Possible to remap Ctrl + Y to Ctrl + Shift + Z? Topic is solved

Hello, In other programs, I usually do undo/redo using Ctrl + Z and Ctrl + Shift + Z. But in SciTE, Ctrl + Shift + Z inserts a character called SUB instead of undoing. I've been using Scite for a few years now on an adhoc basis as I code on AHK itself on an adhoc basis due to which I've been unable ...
by downloaderfan
27 Dec 2022, 02:17
Forum: SciTE4AutoHotkey
Topic: HatofGod theme change current line highlighting Topic is solved
Replies: 2
Views: 972

Re: HatofGod theme change current line highlighting Topic is solved

Try this: 1. Open Scite4AutoHotkey App... 2. Navigate to: "Options" --> "Open User properties" (SciTEUser.properties file) 3. Add the following: (The first line may fix the issue... if not, also include the second line) caret.line.layer=0 caret.line.back=#00005E 4. Save the file... the color change...
by downloaderfan
18 Dec 2022, 08:47
Forum: SciTE4AutoHotkey
Topic: HatofGod theme change current line highlighting Topic is solved
Replies: 2
Views: 972

HatofGod theme change current line highlighting Topic is solved

Hi, I recently bought a new laptop and setup Scite4Autohotkey on it. My previous laptop had Scite4Autohotkey v3.0.06.01 and my new laptop has 3.1.00. It seems the current line highlighting as changed, even though both have same HatofGod style (Update 2011-08-19). The current line is no longer highli...
by downloaderfan
03 Sep 2022, 12:39
Forum: Ask for Help (v1)
Topic: Bluetooth Enable/Disable Toggle
Replies: 8
Views: 5834

Re: Bluetooth Enable/Disable Toggle

Were you able to actually get this working? I tried turning Bluetooth On and Off using this.

Code: Select all

btconfig -c 0

btconfig -c 1

btconfig -d 0

btconfig -d 1
None of these worked in disabling bluetooth
by downloaderfan
02 Sep 2022, 08:25
Forum: Ask for Help (v1)
Topic: Detect when specific mouse is connected/disconnected? Topic is solved
Replies: 5
Views: 1239

Re: Detect when specific mouse is connected/disconnected? Topic is solved

Example 2: Detect / Monitor Plug and Play device connections and removes https://www.autohotkey.com/boards/viewtopic.php?f=83&t=105171 Try with Description, Manufacturer and/or DeviceID (https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-pnpentity) Thanks, this works. I had to downlo...
by downloaderfan
02 Sep 2022, 04:39
Forum: Ask for Help (v1)
Topic: Detect when specific mouse is connected/disconnected? Topic is solved
Replies: 5
Views: 1239

Re: Detect when specific mouse is connected/disconnected? Topic is solved

I've made some progress. This code gets triggered whenever a change in USB device is detected. OnMessage(0x219, "notify_change") notify_change(wParam, lParam, msg, hwnd) { MsgBox, 2, , %wParam% %lParam% %msg% %hwnd% , 1 } This one allows me to check for connected keyboards (Which is what I want) str...
by downloaderfan
01 Sep 2022, 13:51
Forum: Ask for Help (v1)
Topic: Detect when specific mouse is connected/disconnected? Topic is solved
Replies: 5
Views: 1239

Re: Detect when specific mouse is connected/disconnected? Topic is solved

Although I haven't tried it, you could search this forum for posts about multiple input devices. This may provide some leads for you. Unfortunately I couldn't find any that allowed for subscribing to a hook which notifies AHK of changes in USB devices. I did find some that allow to detect currently...
by downloaderfan
31 Aug 2022, 07:11
Forum: Ask for Help (v1)
Topic: Detect when specific mouse is connected/disconnected? Topic is solved
Replies: 5
Views: 1239

Detect when specific mouse is connected/disconnected? Topic is solved

Hello, I'm looking for a way to perform action when a specific USB device (USB Mouse) gets connected and disconnected. I want to disable bluetooth when this device is disconnected and enable it when it is connected. Is there any prewritten code for this? Couldn't find via google, the one I found wor...
by downloaderfan
31 Jul 2022, 00:22
Forum: Ask for Help (v1)
Topic: Not finding an easy way to toggle active microphone Topic is solved
Replies: 12
Views: 3591

Re: Not finding an easy way to toggle active microphone Topic is solved

It seems to me that VA.ahk, written 15 years ago, can do everything mentioned so far, and most of it very easily. I didn't go with SoundSet as it requires the device ID & I couldn't find an easy way to programmatically find device ID of all my existing mics. Thanks to @lexikos though to provide a p...
by downloaderfan
30 Jul 2022, 04:28
Forum: Ask for Help (v1)
Topic: Not finding an easy way to toggle active microphone Topic is solved
Replies: 12
Views: 3591

Re: Not finding an easy way to toggle active microphone Topic is solved

Hi All, Thanks for the replies. I did some comprehensive research on this topic & looked for all possible solutions to my use case, AHK or not. Please note that the focus is only on Mic Mute and not other features like ability to switch between speakers/microphones. Here are tools I tested & the out...
by downloaderfan
28 Jul 2022, 10:42
Forum: Ask for Help (v1)
Topic: Not finding an easy way to toggle active microphone Topic is solved
Replies: 12
Views: 3591

Not finding an easy way to toggle active microphone Topic is solved

Hi, This might sound like a generic question...but I'm looking to toggle mic mute using AutoHotkey. I google searched a lot, but it seems no solution exists which doesn't require device ID. This for e.g. https://www.autohotkey.com/boards/viewtopic.php?t=15509 (There is a separate script here to find...
by downloaderfan
23 Jan 2021, 11:56
Forum: Ask for Help (v1)
Topic: Triggering code only when artificial key detected
Replies: 1
Views: 230

Triggering code only when artificial key detected

Hi All, I'm retrying to reprogram the media buttons of my Bose QuietComfort 35 Bluetooth Wireless Headphone. AHK is able to detect media play pause (pressing multi function button once), media next(pressing it twice) & media previous(pressing it thrice) in it's key history page. But it shows up as a...
by downloaderfan
24 Mar 2018, 14:27
Forum: Ask for Help (v1)
Topic: Trying to get list of all open Windows on Windows 10 Topic is solved
Replies: 6
Views: 4730

Re: Trying to get list of all open Windows on Windows 10 Topic is solved

It's not my code. Actually it is my code. I modified the original AltTabWindows() function to remove the call to Decimal_to_Hex() and gave it modern syntax. Finally got it working to perfection. :D Phew! Thanks. array := AltTabWindows() AltTabWindows() { static WS_EX_TOPMOST := 0x8 ; sets the Alway...
by downloaderfan
24 Mar 2018, 09:05
Forum: Ask for Help (v1)
Topic: Trying to get list of all open Windows on Windows 10 Topic is solved
Replies: 6
Views: 4730

Trying to get list of all open Windows on Windows 10 Topic is solved

Hi, I'm trying to get titles of all open Windows to save to a txt file to avoid data loss during BSOD. I found a script that works perfectly on Windows 7, but not on 10. Apparently modern apps on Windows 10 have these hidden containers that show up when AHK looks for open Windows. Then I found a gui...
by downloaderfan
07 Feb 2018, 09:44
Forum: Ask for Help (v1)
Topic: Anyway to run AHK scripts as a Windows service?
Replies: 1
Views: 1880

Anyway to run AHK scripts as a Windows service?

I'm sort of in a conundrum here. I'm trying to setup an anti theft system on my device. Basically I've installed EventGhost (another automation app) on my Windows device so I could send commands from my phone over the internet. The EventGhost trigger then launches a custom made AHK script. This setu...
by downloaderfan
02 Feb 2018, 17:15
Forum: Bug Reports
Topic: Can't open clipboard for reading error when workstation is locked
Replies: 0
Views: 1009

Can't open clipboard for reading error when workstation is locked

Hi, I'm trying to run a script which involves getting current clipboard data & storing it in a variable. It seems whenever I try to run this script with the workstation locked, I get this error - https://i.imgur.com/PRQTvfW.png . This doesn't happen 100% of the time, it's very sporadic. Can anyone e...
by downloaderfan
01 Feb 2018, 11:02
Forum: Ask for Help (v1)
Topic: Merging output of multiple cmd commands into one text file Topic is solved
Replies: 4
Views: 1125

Re: Merging output of multiple cmd commands into one text file Topic is solved

Thanks garry & Xeo786 for your code, I'm using Xeo786's code since it's the easier solution here.
by downloaderfan
01 Feb 2018, 06:13
Forum: Ask for Help (v1)
Topic: Merging output of multiple cmd commands into one text file Topic is solved
Replies: 4
Views: 1125

Merging output of multiple cmd commands into one text file Topic is solved

Hi, I'm trying to make a script which runs multiple cmd commands & saves the output to a text file. So far I'm able to save contents of each command individually on different text files but I want to have all the outputs on one single text file, separated by a line gap. Is this doable? Here's the co...

Go to advanced search