Search found 26888 matches
- Today, 21:44
- Forum: Ask for Help (v2)
- Topic: Gui Progress Bar in Taskbar Topic is solved
- Replies: 2
- Views: 23
Re: Gui Progress Bar in Taskbar Topic is solved
I have no idea whether this is correct, but you can always give it a go. #Requires AutoHotkey v2.0 g := Gui(, 'Progress') g.AddText 'w230', 'Test' g.Show SetTaskbarProgress('N', 35, g.Hwnd) ; SetTaskbarProgress('N', 65, g.Hwnd) SetTaskbarProgress(State := '', Value := '', Hwnd := '') { Static p := C...
- Today, 21:11
- Forum: Ask for Help (v1)
- Topic: How to make this script automatically activate in every 20 second?
- Replies: 5
- Views: 91
Re: How to make this script automatically activate in every 20 second?
The posted script contains a timer. If needed, the subroutine can be called when the script runs.
- Today, 17:50
- Forum: Ask for Help (v2)
- Topic: how to check if toast notification exists
- Replies: 3
- Views: 43
Re: how to check if toast notification exists
#Requires AutoHotkey v2.0 If !Instr(A_AhkPath, 'UIA') && !((cLine := DllCall('GetCommandLine', 'str')) ~= ' /restart(?!\S)') If FileExist(ahk := A_ProgramFiles '\AutoHotkey\v2\AutoHotkey64_UIA.exe') { Try Run ahk ' /restart ' RegExReplace(cLine, '.+\.exe.*? ') ExitApp } Else MsgBox 'File not found....
- Today, 16:22
- Forum: Ask for Help (v2)
- Topic: Help updaing simple script to AHK 2.0
- Replies: 3
- Views: 69
- Today, 16:17
- Forum: Ask for Help (v2)
- Topic: how to check if toast notification exists
- Replies: 3
- Views: 43
Re: how to check if toast notification exists
I did not test this, but WinExist does not wait for a window to appear. Instead, this is an instantaneous check. To wait for a window, use :arrow: WinWait . If SetTitleMatchMode is not used, the default match mode is 2. Assessing WinExist does not require any If statements. Instead, the value return...
- Today, 16:00
- Forum: Ask for Help (v1)
- Topic: Spam 'f' key for a specific window
- Replies: 1
- Views: 21
Re: Spam 'f' key for a specific window
Welcome to this AutoHotkey forum! #Requires AutoHotkey v1.1.33.11 winTitle := "ahk_exe Notepad.exe" ctl := "RichEditD2DPT1" ; Win 11 #If WinExist(winTitle) F1:: If !on := !on { SetTimer Spam, Off SoundBeep 1000 Return } SetTimer Spam, 3000 Spam: If on ControlSend % ctl, f, % winTitle Return #If If y...
- Today, 06:17
- Forum: Ask for Help (v2)
- Topic: PixelSearch -> Found -> Send Key
- Replies: 2
- Views: 47
Re: PixelSearch -> Found -> Send Key
Welcome to this AutoHotkey forum! What does "hanging" mean? Have you checked KeyHistory ? What does it show? What is your specific example? With your Return , is your intent that the entire function will be completed at that time? Are you testing this in a text editor of some kind? If so, which? Wha...
- Today, 05:35
- Forum: Gaming Help (v1)
- Topic: My AHK script is not working as intended: pause/unpause & autoclicker
- Replies: 15
- Views: 235
Re: My AHK script is not working as intended: pause/unpause & autoclicker
Code: Select all
#Requires AutoHotkey v1.1.33.11
SLOW := 0 ; Mouse speed (0=fastest, 100=slowest)
AltLmb := True
; AltLmb := False
#If AltLmb
~s & LButton::
While GetKeyState("LButton", "P")
MouseMove 100, 0, SLOW, R
Return
#If
- Yesterday, 20:40
- Forum: Ask for Help (v1)
- Topic: I need Help: Change font color
- Replies: 11
- Views: 119
Re: I need Help: Change font color
I am unable to understand your script, your goal, and whether your goal has been met. I don't think I can add anything beyond the two solutions that I have provided. Others may know more. Good luck! The following script combines the two actions. #Requires AutoHotkey v1.1.33.11 #MaxThreadsPerHotkey 2...
- Yesterday, 17:13
- Forum: Ask for Help (v1)
- Topic: I need Help: Change font color
- Replies: 11
- Views: 119
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...
- Yesterday, 16:37
- Forum: Ask for Help (v1)
- Topic: I need Help: Change font color
- Replies: 11
- Views: 119
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...
- Yesterday, 14:55
- Forum: Ask for Help (v1)
- Topic: I need Help: Change font color
- Replies: 11
- Views: 119
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.
- Yesterday, 13:57
- Forum: Ask for Help (v1)
- Topic: I need Help: Change font color
- Replies: 11
- Views: 119
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...
- Yesterday, 13:45
- Forum: Ask for Help (v1)
- Topic: Help to Resolve AutoHotkey Script Toggle Issue
- Replies: 1
- Views: 34
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.
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.
- Yesterday, 07:55
- Forum: Ask for Help (v2)
- Topic: Getting text from textBox Topic is solved
- Replies: 2
- Views: 44
Re: Getting text from textBox Topic is solved
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...
- Yesterday, 07:43
- Forum: Gaming Help (v1)
- Topic: Gui buttons (can't double click)
- Replies: 1
- Views: 42
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)...
- Yesterday, 06:54
- Forum: Gaming
- Topic: Help is needed. I need Lctrl+space to fire once when I press "C"
- Replies: 1
- Views: 23
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 '^ '
- Yesterday, 06:26
- Forum: Ask for Help (v1)
- Topic: How to make this script automatically activate in every 20 second?
- Replies: 5
- Views: 91
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...
- Yesterday, 06:07
- Forum: Ask for Help (v2)
- Topic: Open a pdf file in Chrome New tab
- Replies: 8
- Views: 124
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...
- Yesterday, 05:55
- Forum: Gaming Help (v1)
- Topic: My AHK script is not working as intended: pause/unpause & autoclicker
- Replies: 15
- Views: 235
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...