Search found 25 matches
- 26 Sep 2020, 15:14
- Forum: Ask For Help
- Topic: SoundBeep volume
- Replies: 4
- Views: 1644
Re: SoundBeep volume
Here is the simple: (with a chance of not returning your volume level) SoundBeep(700, 50) sleep 150 exitapp ;------------------------------------------------------------------------------- soundbeep(frequency:=523, volume:=50) { soundget current_volume soundset % volume soundbeep % frequency sleep 1...
- 06 Apr 2020, 20:27
- Forum: Ask For Help
- Topic: press numbers 2 3 4 and 5
- Replies: 1
- Views: 337
Re: press numbers 2 3 4 and 5
how's this? #NoEnv #SingleInstance Force SendMode Input SetWorkingDir %A_ScriptDir% return ;{███████████████████████████████████████████████ Space:: if not (space_sequence_active) ; (first press will go here) settimer, space_sequence, -1 else { ; (if the sequence is already active, it should go here...
- 04 Apr 2020, 10:29
- Forum: Ask For Help
- Topic: How to disable an fn hotkey on laptop? Topic is solved
- Replies: 2
- Views: 340
Re: How to disable an fn hotkey on laptop? Topic is solved
F4::vk07 - didn't work. — I went into BIOS and disabled the fn lock. Now I use Action Center to adjust the screen brightness instead. if (A_Hour > 6) AND (A_Hour < 16) { ; (if morning or afternoon) ; set brightness to 100% send #a sleep 1500 mousegetpos, x, y MouseClick L, 426, 663 ; (replace this c...
- 03 Apr 2020, 18:25
- Forum: Ask For Help
- Topic: How to disable an fn hotkey on laptop? Topic is solved
- Replies: 2
- Views: 340
How to disable an fn hotkey on laptop? Topic is solved
The laptop I'm using has some sort of fn F4 key which, when pressed, shuts down the laptop. Now this is a problem when I accidentally press it while I'm trying to adjust the screen brightness, which is right beside it. If there is an easy solution, I'd like to implement.
- 18 Sep 2019, 17:19
- Forum: Ask For Help
- Topic: Whats a better way to get which column was double-clicked in a gui listview? Topic is solved
- Replies: 6
- Views: 1084
Re: Whats a better way to get which column was double-clicked in a gui listview? Topic is solved
Thank you for the code.
- 18 Sep 2019, 13:59
- Forum: Ask For Help
- Topic: Whats a better way to get which column was double-clicked in a gui listview? Topic is solved
- Replies: 6
- Views: 1084
Whats a better way to get which column was double-clicked in a gui listview? Topic is solved
Something better than this?
- 17 Sep 2019, 21:19
- Forum: Scripts and Functions
- Topic: Get Listview Column
- Replies: 0
- Views: 715
Get Listview Column
edit: I don't use this function anymore; (kept for reference). Here's a better alternative ? _________________________ A way to get which column was doubled-clicked in a listview. Seems to work. Hope it works for you. Just run the code and double click in the listview. F5 to reload. I couldn't figu...
Re: do When
Code: Select all
When WinActive(game.window) {
Run(game.script)
When !WinActive(game.window)
WinClose(game.script)
}
Code: Select all
When WinExist(chrome.window) {
Msgbox you've opened chrome
When !WinExist(chrome.window)
Msgbox you've closed chrome
}
- 24 Aug 2019, 12:36
- Forum: Ask For Help
- Topic: How to auto-elevate script without UAC prompts? Topic is solved
- Replies: 1
- Views: 633
Re: How to auto-elevate script without UAC prompts? Topic is solved
edit: I recommend auto-elevating programs on an individual basis, rather than auto-elevating your main script. Create a Basic Task in Task Scheduler: set the trigger to 'one-time', (since we won't be calling it via task scheduler) set the 'start in' field, (which is simply the dir) open properties,...
- 23 Aug 2019, 21:14
- Forum: Wish List
- Topic: #group hotkeys
- Replies: 3
- Views: 1810
Re: #group hotkeys
Thanks, I like it.
- 23 Aug 2019, 17:51
- Forum: Ask For Help
- Topic: How to auto-elevate script without UAC prompts? Topic is solved
- Replies: 1
- Views: 633
How to auto-elevate script without UAC prompts? Topic is solved
All I want is to get started with the RunAsTask() command, but I don't know how.
reference: https://www.autohotkey.com/boards/viewtopic.php?t=4334
reference: https://www.autohotkey.com/boards/viewtopic.php?t=4334
- 22 Aug 2019, 14:55
- Forum: Ask For Help
- Topic: boolean in hotkey command
- Replies: 2
- Views: 621
Re: boolean in hotkey command
I see, thanks for showing me.
- 21 Aug 2019, 16:10
- Forum: Wish List
- Topic: #group hotkeys
- Replies: 3
- Views: 1810
#group hotkeys
regarding the Hotkey command: Want: #group hotkeys, broodwar ; skip to #group; the contents of this section are not important to the topic #if winactive("ahk_class SWarClass") ~numpadenter:: ~enter:: Suspend ~esc:: Suspend OFF ~s:: larvae() !F4:: broodwar_hotkeys_off() #if winactive("ahk_class SWarC...
- 21 Aug 2019, 15:13
- Forum: Ask For Help
- Topic: boolean in hotkey command
- Replies: 2
- Views: 621
boolean in hotkey command
the below code doesn't work.
fixed it by changing 'and' to '&&', but can't we use 'and'?
Code: Select all
var := true
Hotkey if, winexist("ahk_exe Explorer.EXE") and (var)
Hotkey F2, on
return
#if winexist("ahk_exe Explorer.EXE") and (var)
F2:: msgbox yes
#if
*Esc:: ExitApp
fixed it by changing 'and' to '&&', but can't we use 'and'?
- 30 Jul 2019, 13:17
- Forum: Tips and Tricks
- Topic: installing AHKv2 and setting up a .ahk2 extension
- Replies: 12
- Views: 6568
Re: installing AHKv2 and setting up a .ahk2 extension
grazieThe default extension of ahkv2 files will be .ahk
well that's good enough for me. thanks everyone
- 30 Jul 2019, 10:11
- Forum: Tips and Tricks
- Topic: installing AHKv2 and setting up a .ahk2 extension
- Replies: 12
- Views: 6568
Re: installing and setting up AHK v2
the height of the issue would probably be in setting up the .ahk2 context menu.
here is a clip of such:. https://youtu.be/x_KMq8_KS7E
which is better:. that people must take these steps, or that it is automated (such as during installation)
(mod may move this thread)
here is a clip of such:. https://youtu.be/x_KMq8_KS7E
which is better:. that people must take these steps, or that it is automated (such as during installation)
(mod may move this thread)
- 29 Jul 2019, 13:00
- Forum: Tips and Tricks
- Topic: installing AHKv2 and setting up a .ahk2 extension
- Replies: 12
- Views: 6568
installing AHKv2 and setting up a .ahk2 extension
i found that the process was a bit difficult... inefficient...
I made a video showing the process in the hope that the process might be improved.
https://youtu.be/hCMfuVirzBs
(i'm using windows 7)
I made a video showing the process in the hope that the process might be improved.
https://youtu.be/hCMfuVirzBs
(i'm using windows 7)
do When
do when the When command when the_game_is_closed(), 24000 exitapp Faster, easier, more elegant than setting timers. when a_raider_is_detected() { fire_a_warning_shot() notify_the_user() cooldown when not a_raider_is_detected() } (the above code is equivalent to the code below) settimer, timer1, 100...
- 20 Mar 2019, 19:19
- Forum: Ask For Help
- Topic: [solved] Context menu under Windows 10 has no AHK entries
- Replies: 9
- Views: 4229
Re: [solved] Context menu under Windows 10 has no AHK entries
What solved it for me, was changing the default program for .ahk from AutoHotkeyU64 to AutoHotkey.
- 16 Feb 2019, 23:50
- Forum: Gaming
- Topic: How to read in-game variables?
- Replies: 4
- Views: 1100
Re: How to read in-game variables?
It's really complicated, I might get around to it I guess...