Search found 26874 matches

by mikeyww
Today, 07:55
Forum: Ask for Help (v2)
Topic: Getting text from textBox
Replies: 2
Views: 29

Re: Getting text from textBox

Welcome to this AutoHotkey forum! I would refer to the :arrow: Example , and note the use of A_Clipboard throughout the script. Renamed: Clipboard → A_Clipboard Source: Changes from v1.1 to v2.0 | AutoHotkey v2 #Requires AutoHotkey v2.0 #j Up:: { Static regex := '\(.*?\)\h*' KeyWait 'LWin' A_Clipboa...
by mikeyww
Today, 07:43
Forum: Gaming Help (v1)
Topic: Gui buttons (can't double click)
Replies: 1
Views: 30

Re: Gui buttons (can't double click)

Welcome to this AutoHotkey forum! Ideas are below. #Requires AutoHotkey v1.1.33.11 Global ctl Gui Font, s10 Gui Add, Button, w230, Test1 Gui Add, Button, wp , Test2 Gui Show,, Buttons OnMessage(0x201, "WM_LBUTTONDOWN") OnMessage(0x202, "WM_LBUTTONUP") Return WM_LBUTTONDOWN(wParam, lParam, msg, hwnd)...
by mikeyww
Today, 06:54
Forum: Gaming
Topic: Help is needed. I need Lctrl+space to fire once when I press "C"
Replies: 1
Views: 14

Re: Help is needed. I need Lctrl+space to fire once when I press "C"

Welcome to this AutoHotkey forum!

Code: Select all

#Requires AutoHotkey v2.0
SetKeyDelay 25, 25
c::SendEvent '^ '
by mikeyww
Today, 06:26
Forum: Ask for Help (v1)
Topic: How to make this script automatically activate in every 20 second?
Replies: 3
Views: 62

Re: How to make this script automatically activate in every 20 second?

An example is below. You can change the code as noted in the script. #Requires AutoHotkey v1.1.33.11 #MaxThreadsPerHotkey 2 runFor := 5 ; Seconds every := 20 ; Seconds SoundBeep 1500 Space:: If !on := !on { Reload Return } SetTimer Go, % 1000 * every Go: end := A_TickCount + 1000 * runFor While (A_T...
by mikeyww
Today, 06:07
Forum: Ask for Help (v2)
Topic: Open a pdf file in Chrome New tab
Replies: 4
Views: 86

Re: Open a pdf file in Chrome New tab

; This script opens selected files in the Chrome Web browser #Requires AutoHotkey v2.0 #HotIf WinActive('ahk_class CabinetWClass') && WinExist('ahk_exe chrome.exe') >!l:: { SoundBeep 1500 For item in Explorer_GetSelection() { Run 'chrome.exe ' item Sleep 500 } } #HotIf Explorer_GetSelection() { ; A...
by mikeyww
Today, 05:55
Forum: Gaming Help (v1)
Topic: My AHK script is not working as intended: pause/unpause & autoclicker
Replies: 13
Views: 205

Re: My AHK script is not working as intended: pause/unpause & autoclicker

What the script does: Is there a way to add a timer/cooldown in the script where I have to wait before I can activate the commands again? The #If directive indicates that a hotkey is active when not being cooled. It applies to hotkeys and hotstrings below the directive-- until the next #If . See doc...
by mikeyww
Yesterday, 22:17
Forum: Ask for Help (v2)
Topic: Help converting v1 script regarding Excel to v2
Replies: 2
Views: 51

Re: Help converting v1 script regarding Excel to v2

Welcome to this AutoHotkey forum!

Code: Select all

#Requires AutoHotkey v2.0
^e::Run 'EXCEL'
#x::Send FormatTime(, 'yyyMMdd')
by mikeyww
Yesterday, 22:13
Forum: Ask for Help (v1)
Topic: CTRL-Numpad+ shortcut replacement for a 87 key TKL keyboard?
Replies: 1
Views: 29

Re: CTRL-Numpad+ shortcut replacement for a 87 key TKL keyboard?

Welcome to this AutoHotkey forum! #Requires AutoHotkey v1.1.33.11 #If WinActive("ahk_class CabinetWClass") ^=:: Send {Blind}{NumpadAdd} SoundBeep 1500 Return #If If you are new to AHK, I recommend using its current version, which is v2, instead of this older deprecated version that is no longer deve...
by mikeyww
Yesterday, 10:11
Forum: Gaming
Topic: Script help: combine left click macro with another script which presses the "1" hotkey
Replies: 3
Views: 88

Re: Script help: combine left click macro with another script which presses the "1" hotkey

I'm not sure why you are calling the 1 and 2 hotkeys. They are just regular keys that you are sending (not triggering), right? If you do not want to use a timer for repeated action, then why are the timers present throughout your script? #Requires AutoHotkey v2.0 SetKeyDelay 25, 25 ~LButton:: { SetT...
by mikeyww
Yesterday, 07:12
Forum: Ask for Help (v2)
Topic: Clipboard unvisible items
Replies: 6
Views: 121

Re: Clipboard unvisible items

Thank you, just me ! I stopped using A_Clipboard in v1 due to some issues like this. This might not be a bug but can create confusion or unexpected results. Problems in v1 are no longer being corrected through updates to AutoHotkey. Nonetheless, please note the following. #Requires AutoHotkey v1.1.3...
by mikeyww
Yesterday, 07:01
Forum: Ask for Help (v1)
Topic: How to make this script automatically activate in every 20 second?
Replies: 3
Views: 62

Re: How to make this script automatically activate in every 20 second?

#Requires AutoHotkey v1.1.33.11 runFor := 5 ; Seconds every := 20 ; Seconds SoundBeep 1500 Space Up::Reload Space:: SetTimer Go, % 1000 * every Gosub Go KeyWait Space Return Go: end := A_TickCount + 1000 * runFor While (A_TickCount < end) { Send e Sleep 50 } Return Whenever the While loop iterates,...
by mikeyww
Yesterday, 05:17
Forum: Ask for Help (v2)
Topic: Using the clipboard
Replies: 7
Views: 109

Re: Using the clipboard

AHK has no commands per se . Yes, these are two separate statements separated by a comma. Combining statements onto a line is mostly a convenience. You are welcome to separate the statements. Comma (multi-statement). Commas may be used to write multiple sub-expressions on a single line. This is mos...
by mikeyww
Yesterday, 05:13
Forum: Ask for Help (v2)
Topic: AHK script to repeatedly type in a certain window?
Replies: 3
Views: 77

Re: AHK script to repeatedly type in a certain window?

Although the issues stem from your changes to the script, you have not posted your revised script, so I cannot comment about your revisions.
by mikeyww
Yesterday, 04:48
Forum: Ask for Help (v2)
Topic: Clipboard unvisible items
Replies: 6
Views: 121

Re: Clipboard unvisible items

Hello, Your post is vague. You have not indicated what you have selected, what should be copied, what your script does, and what your script should do. No examples are provided. The clipboard requires significant time to populate, but a script has nothing inherent that will wait for that to happen b...
by mikeyww
16 Apr 2024, 21:11
Forum: Ask for Help (v1)
Topic: I accidently deleted a script file, how can I restore it?
Replies: 6
Views: 68

Re: I accidently deleted a script file, how can I restore it?

The issue seems to be that the file was overwritten, though there might still be some recoverable data. The dump approach might be more reliable, but various data recovery programs are available, too. I have successfully used ReclaiMe in a few other instances but never tried it in this circumstance.
by mikeyww
16 Apr 2024, 18:26
Forum: Ask for Help (v2)
Topic: How do you check for extra keys when LShift is set as the hotkey?
Replies: 5
Views: 88

Re: How do you check for extra keys when LShift is set as the hotkey?

Call MsgBox when it's not Timeout
If you do not need the "~LShift Up" hotkey, you can remove it completely.
by mikeyww
16 Apr 2024, 18:15
Forum: Ask for Help (v2)
Topic: i need a script for only the alphabet
Replies: 20
Views: 426

Re: i need a script for only the alphabet

I guess you could try making those keys "visible" along with Enter. In the bugs forum, lexikos has recently posted about the real nature of the issue having to do with how the InputHook handles VK and SC keys.
by mikeyww
16 Apr 2024, 18:07
Forum: Ask for Help (v1)
Topic: I accidently deleted a script file, how can I restore it?
Replies: 6
Views: 68

Re: I accidently deleted a script file, how can I restore it?

Just ideas: Recycle Bin? Press Ctrl + Z repeatedly to undo your actions in the text editor. If you deleted the content of your script file and then saved the file but Ctrl + Z does not work, then there might not be much to do unless you have a backup, a time-machine kind of program, etc. I'm sure th...
by mikeyww
16 Apr 2024, 17:34
Forum: Ask for Help (v1)
Topic: Using 'Input' for a kind of Hotstring / multi-Hotkey
Replies: 3
Views: 40

Re: Using 'Input' for a kind of Hotstring / multi-Hotkey

This continues to capture keys until the notification keys are released. This can be modified in various ways, to terminate input earlier, to make keys visible, etc. The script starts to collect keyboard input when the hotkey is triggered. Specific keys are defined as "notification keys". When these...
by mikeyww
16 Apr 2024, 17:23
Forum: Ask for Help (v1)
Topic: How to Set Up AutoHotkey to Convert Specific MIDI Messages into Keystrokes
Replies: 2
Views: 34

Re: How to Set Up AutoHotkey to Convert Specific MIDI Messages into Keystrokes

Welcome to this AutoHotkey forum! I'm not directly helpful, but I wanted to write to say that I'm fairly certain that this has already been done, so you might find a forum search fruitful in locating your solution to this issue. You are posting in the AHK v1 forum. If you are new to AHK, I recommend...

Go to advanced search