Search found 26879 matches

by mikeyww
18 minutes ago
Forum: Ask for Help (v1)
Topic: I need Help: Change font color
Replies: 9
Views: 74

Re: I need Help: Change font color

My script shows you how you can make those changes to your script. The text font is changed by the two lines that I showed in the first hotkey. The toggle is demonstrated in the second hotkey. It toggles a variable and then uses a While loop to execute code while the variable has a specific value. Y...
by mikeyww
55 minutes ago
Forum: Ask for Help (v1)
Topic: I need Help: Change font color
Replies: 9
Views: 74

Re: I need Help: Change font color

You indicated that my script does not work. The question is whether it changes the GUI's text, and whether it toggles the sending of keys, such as to an edit control in a text editor. It seemed that changing of a GUI's text, and the toggling of sending keys, were the basic activities that you were p...
by mikeyww
Today, 14:55
Forum: Ask for Help (v1)
Topic: I need Help: Change font color
Replies: 9
Views: 74

Re: I need Help: Change font color

Perhaps you can first comment on whether the posted script works by itself with no changes and no additions. That tells us whether it achieves functionality that you want, and does so successfully.
by mikeyww
Today, 13:57
Forum: Ask for Help (v1)
Topic: I need Help: Change font color
Replies: 9
Views: 74

Re: I need Help: Change font color

Welcome to this AutoHotkey forum! #Requires AutoHotkey v1.1.33.11 #MaxThreadsPerHotkey 2 Gui +AlwaysOnTop Gui Font, s10 Gui Add, Text, w300 Center vtxt, Test Gui Show, NoActivate, Fonts F2:: Gui Font, s12 cRed Bold, Verdana GuiControl Font, txt Return F3:: on := !on While on { Send e Sleep 100 } Ret...
by mikeyww
Today, 13:45
Forum: Ask for Help (v1)
Topic: Help to Resolve AutoHotkey Script Toggle Issue
Replies: 1
Views: 23

Re: Help to Resolve AutoHotkey Script Toggle Issue

Hello,

I would fix the syntax errors first, and then reply, in a new post here, with a revised script that you have run and tested.
by mikeyww
Today, 07:55
Forum: Ask for Help (v2)
Topic: Getting text from textBox
Replies: 2
Views: 36

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: 33

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: 17

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: 67

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: 89

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: 213

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: 53

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: 89

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: 126

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: 67

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: 111

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: 78

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: 126

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: 71

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.

Go to advanced search