Quantcast
Channel: AutoHotkey Community
Browsing all 579 articles
Browse latest View live

Scripts and Functions (v1) • Re: [Class] LV_Colors - 1.1.05.00 (2024-03-16)

I m so happy, that he merged my pull request.https://github.com/AutoHotkey/AutoHotkey/commit/dd9911bb5fe2b8189f9240265c00842df43858b3Because, I used my branch a long time for that bug.Statistics:...

View Article


Image may be NSFW.
Clik here to view.

Скрипты для Игр • Нужен скрипт

Здравствуйте форумчане! Нужна ваша помощь:Скрипт на 2-ой версии Автохоткея, который нажимает клавишу T и прописывает в чат /duel ignore. Далее нажимает на Enter.Спасибо заранее!Statistics: Posted by...

View Article


Scripts and Functions (v2) • Re: MsgBoxCopyText

An easy way to do the same thing:CODE: #Requires AutoHotkey v2MsgBoxCopyText(Enable := true) { HotIfWinActive("ahk_class #32770") Hotkey("^c", (*) => A_Clipboard := ControlGetText("Static1"),...

View Article

Ask for Help (v2) • Show script A gui via script B?

Given the below two scripts, what is the preferred way for Script B to "Show" a GUI that was created in Script A?CODE: #SingleInstance#Requires AutoHotkey v2+; SCRIPT A; show gui from other script?myg...

View Article

Ask for Help (v2) • Re: Show script A gui via script B?

Hmmm... In my project, it does seem to work when I add these soundBeeps...CODE: If WinExist("WayText 2.0") {Run A_ScriptDir "\WayText2.exe"While not processExist("WayText2.exe")Sleep 50SoundBeep 1800,...

View Article


Ask for Help (v2) • Re: How to provide a scroll bar to a CheckBox Group

A listview with the option Checked will be useful in this case.Or for the whole GUI scroll.Statistics: Posted by Smile_ — Today, 12:54

View Article

Ask for Help (v1) • Re: script to close the program and launch it again,...

your not closing the program your trying to close the window thats a different thingStatistics: Posted by peter_ahk — Today, 13:32

View Article

Ask for Help (v2) • Re: Help for "detect and click numbers"

@DescoladaCODE: import pytesseractfrom PIL import ImageGrabimport reimport timeimport pyautoguidef detect_numbers(): while True: screenshot = ImageGrab.grab(bbox=None) # Tüm ekranı yakala ocr_result =...

View Article


Image may be NSFW.
Clik here to view.

Bug Reports • [2.0.11] Error 87 by ControlGetFocus("A") when...

CODE: F1::Tooltip ControlGetFocus("A")Somehow an OSError 87 is thrown when passing a cmd.exe window to ControlGetFocus().It yields the same result by calling ControlGetFocus("ahk_exe cmd.exe").BTW, it...

View Article


Ask for Help (v2) • Re: Adjusting mouse sensitivity with hotkeys

How do I use LButton as a hotkey in this case, without losing LButton's default function?Put ~ in front of the hotkey:CODE: ~LButton::MouseSpeedToggleHold(3) ; change the speed...

View Article

Ask for Help (v2) • Shortcut tools optimisation

Greetingsi recently renewed with AHK and developped a shortcut to access folders i often use in my job.i made the tool so anyone with a small amount of observation can adapt it to his reality.it's...

View Article

Ask for Help (v1) • Parsing JSON string with Jxon library

Hi Folks,I'm using the Jxon.ahk (Lib function). I understand the AHK assignment statement syntax after calling oJxon:=Jxon_Load(jsonvar). For example, with this Json data subset...CODE: { "log": {...

View Article

Image may be NSFW.
Clik here to view.

Bug Reports • Re: [2.0.11] Error 87 by ControlGetFocus("A") when...

On my Win11 version (Version 10.0.22621.3296), WindowSpy shows ahk_exe WindowsTerminal.exe for the cmd.exe window. Did you check?With ControlGetFocus("A") I get no error message - it works like...

View Article


Scripts and Functions (v1) • Re: [LIB] TrayIcon - Sean's TrayIcon for Unicode...

Thanks! Next,TrayIcon_Button("AOL.exe", "R")I used that function to right-click on my desired tray-icon.So wherever the mouse is, it makes the context window appear at. (Either above or below cursor...

View Article

Ask for Help (v2) • Re: How to call a vlookup from AutoHotkey?

FWIW, I created a spreadsheet that matches the guidelines in @flyingDman's V2 example: name - vlookuptest.xlsx, 2 columns, 23 rows, cells in column A were junk text except for one entry "matrix" and...

View Article


Ask for Help (v1) • Re: Script don`t work in active window

Got you.CODE: #Persistent#SingleInstance, ForcescreenWidth := A_ScreenWidthscreenHeight := A_ScreenHeightcenterX := screenWidth // 2centerY := screenHeight // 2boxSize := screenWidth // 16topLeftX :=...

View Article

Ask for Help (v2) • Re: syntax for map

If you define the toString() method for Map, it can be displayed in MsgBox:CODE: #Requires AutoHotkey v2.0Map.Prototype.DefineProp('toString', { Call: (m, indent := ' ') => ( res := ['{'], e :=...

View Article


Bug Reports • Weird critical error

Running the following code in v2.0.11 in debugging mode (I'm using VSCode) and typing afaik a few times causes Critical error: Function recursion limit exceededand crashes the script. It happens in...

View Article

Scripts and Functions (v1) • forecast and weather GUI

had this code and wanted to share it, really had fun making it.CODE: FormatTime, Month, , Mtodaystr = %A_DDD% %A_DD%/%Month%:tomorrowstr := TomorrowName() . " " . TomorrowDate() . ":"Data :=...

View Article

Ich brauche Hilfe • Automatische Ausführung von Hotstrings basierend auf...

Hallo zusammen,ich habe eine Liste von Hotstrings in einer Datei. Je nach dem Inhalt dieser Datei soll der entsprechende Hotstring ausgeführt werden. Ist so etwas möglich? Danke!CODE: ;Inhalt von...

View Article
Browsing all 579 articles
Browse latest View live