AutoHotKey

autohotkey: sometimes button is not clicked

耗尽温柔 提交于 2019-12-11 15:32:40
问题 I wrote such autohotkey script to auto-logon my program: SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. Run info.exe WinWait, User identification, Sleep 300 ControlSend, Edit1, user, User identification ControlSend, Edit2, password, User identification ControlClick, Button1, User identification The problem is - sometimes Button1 is not clicked. When i'm execution script in most

move and resize a application autohotkey

岁酱吖の 提交于 2019-12-11 15:26:34
问题 How can i Move and Resize a Application with Autohotkey Languages. 1 - i want to run a application, and then 2 - resize it in a Width Height Value, 3 - on the Windows Desktop with a position in a x y coordinate. i Can run a Application and do a Autohotkey Keyboard Shortcut Macro to move the Window but How Can i Resize a Window With a Width Height Value. the Autohotkey code so far, looks like this. ; [^ = Ctrl] [+ = Shift] [! = Alt] [# = Win] f5:: RunWait "C:\test.txt" send !{space}m send

Retrieve an iTunes Track object from its high/low persistent ID

◇◆丶佛笑我妖孽 提交于 2019-12-11 15:13:38
问题 I'm trying to retrieve a track object from its persistent ID using AutoHotkey (v1.1) and iTunes Windows 11. The script works well until I try to use the ItemByPersistentID method. objITunesunesApp := ComObjCreate("iTunes.Application") objITunesLibrary := objITunesunesApp.Sources.Item(1) objITunesPlaylist := objITunesLibrary.Playlists.Item(1) objITunesTrack := objITunesPlaylist.Tracks.Item(1) ; Test if objects are OK MsgBox, % objITunesTrack.Name ; Display the song name - OK ; Get high and low

How to send an addition sequence after a series of input?

断了今生、忘了曾经 提交于 2019-12-11 10:05:29
问题 I want every time the series Ctrl G Up Enter and Ctrl G Down Enter are pressed, it will Send !wi afterward. Normal hotkeys work: ~^PgUp:: ~^PgDn::Send !wi But this doesn't work, although ~^g down enter isn't an invalid hotkey: ~^PgUp:: ~^PgDn:: ::~^g down enter:: ::~^g up enter::Send !wi Also, since I don't know many times Up and Down will be pressed before Enter , is there a way to make it skips the middle keys? 回答1: Try: ~^PgUp:: ~^PgDn::Send !wi ~^g:: Input, key, V L1, {Enter} if

ImageSearch from AutoHotKey never works in my PC

穿精又带淫゛_ 提交于 2019-12-11 09:53:30
问题 I'm trying with the code below but without success. Here is how the code shoud works: 1-Download the image 2-Show the image 3-Do the search with ImageSearch method. I tried following the procedure from this post but without success too: https://autohotkey.com/board/topic/78242-imagesearch-not-working/ My AHK version is: 1.1.30.01 64-bit We can get it from the command: MsgBox % A_AhkVersion " " (A_PtrSize=8 ? "64-bit" : "32-bit") URLDownloadToFile,https://www.autohotkey.com/assets/images/ahk

Json parsing, generating and beautifiying / formatting with AutoHotkey?

♀尐吖头ヾ 提交于 2019-12-11 09:47:05
问题 How to convert a json string into autohotkey objects/arrays... and the other way around? And how to get the json string nicely formatted with newline characters and space indentations? 回答1: Here is a Json class I wrote recently. It automatically handles indentation and newline chars. You can even specify which characters to use etc. And it also handles edge cases like double quotes within strings (they need to be escaped in json), that's something I was really missing from other json

Create Identifier for input box with AHK GUI

回眸只為那壹抹淺笑 提交于 2019-12-11 09:45:34
问题 I have created a GUI in AHK and it works well now. I am processing multiple records and would like to be able to track the place that I am on. My code loops through each record and does some actions before moving on to the next one. While this is happening the GUI window is shown. Also I am writing this in AHK then using the conversion tool and creating an .exe with it. I am developing this tool to be distributed as a stand alone EXE that one can install/save and then run when they want to.

Use windows key as part of keyboard shortcut in Visual Studio 2017

若如初见. 提交于 2019-12-11 06:58:13
问题 I have a global hotkey (in AutoHotkey) that uses ctrl+alt+win+1, but Visual Studio 2017 registers this as ctrl+alt+1, causing a conflict between these two programs. According to a previous question it is impossible to use # (windows) key as part of Visual Studio keyboard shortcut, but is there a way to have it not respond to commands that do use it? 回答1: It is difficult to say how to solved this, i can not see in your question what Ahk Script it is, but you can try, this on your Windows

Autohotkey : Clipboard Convert Tabs to Spaces

心已入冬 提交于 2019-12-11 06:57:08
问题 I have a snippet of code I copied into my clipboard. Pasting it out looks like this. Where[tab] is an actual tab indent [tab]<header id="masthead" class="site-header"> [tab][tab]<h1> [tab][tab][tab]<h2> [tab][tab][tab][tab]<h3> [tab][tab][tab][tab][tab]<h4>; I want to press an autohotkey to automatically normalize the code snippet. So if there's a [tab] on every line, remove it. Then convert each [tab] into 2 spaces [**] <header id="masthead" class="site-header"> **<h1> ****<h2> ******<h3> **

Make second monitor go fullscreen with AHK

做~自己de王妃 提交于 2019-12-11 06:54:44
问题 I have this Autohotkeys script and I need help on it. By pressing win+b the window will move the the other monitor, in this case monitor 2. I would like for whenever it goes to monitor 2 to also throw it in fullscreen using the keyboard shortcut f11, then when sent back over to monitor 1 take it out of fullscreen, then throw it over. Is this possible? This is what I have now. SysGet, Mon1, Monitor, 1 SysGet, Mon2, Monitor, 2 #b:: winget,windowtomove,id,A ;move active window gosub windowmove