AutoHotKey

How to hide a taskbar when AutoHideTaskbar option selected and a script (ahk script) trying to hide taskbar too?

早过忘川 提交于 2019-12-12 05:43:07
问题 My application is designed to launch in full screen, at any cost taskbar should not be visible to the user. For taskbar hiding below ahk scripts will be running in the background to perform the needed operations. Regarding AHK scripting please select the below link for its description. http://ahkscript.org/ The script doesn`t work if "Auto Hide taskbar" functionality of windows 7 is selected. Hence I have taken the below C# code to solve the issue from the application side. But in certain

AutoHotkey type entries from ListBox

孤街醉人 提交于 2019-12-12 05:29:58
问题 I am new to AutoHotkey and have no programming experience, so sorry to ask what to many of you may be a very mundane question. One of my main uses for AutoHotkey will be to complete data in records I keep from an AutoHotkey ListBox. Using replies to other forum questions I have a working script as follows: :*:\lb:: Gui, Add, ListBox, h100 vLB, apple||bannana|cantaloup|kiwi|orange|pomegranate|strawberry Gui, Add, Button, Default, Input Gui, Show return ButtonInput: Gui, Submit SendInput, %LB%

How to enable AHK_L features in AutoHotKey?

眉间皱痕 提交于 2019-12-12 04:44:53
问题 I am running AHK_L which I downloaded here: http://l.autohotkey.net/AutoHotkey_L_Install.exe By all accounts, running the following script should break standard AHK, but popup three Msgboxes in AHK_L. arr := Array("b", "a", "c") Loop, % arr.len() Msgbox, % arr[A_Index] I get nothing; no error, and no Msgboxes. Why is this happening to me? AHK_L version 1.1.09.04. More specifically, why does this forum post: http://www.autohotkey.com/board/topic/45876-ahk-l-arrays/ ... contain mostly commands

How to wait until a cmd command ends until performing the next task?

三世轮回 提交于 2019-12-12 03:58:01
问题 I have a script that uses Ctrl + j to run mongod (the mongo server) mongo (the mongo database) npm start (starts node's web server) Opens localhost:3000 in Chrome. Each task must be ready before the next one can start. For instance, mongod is the mongo server, so if mongo starts before the server is ready, an error will occur. Here's my script: // Start or stop mongod, mongo, node ^j:: IfWinNotExist, npm // start everything up. This must be done in order, but the timing varies. { // Start the

Autohotkey - How to link a GUI to a window to act the same as its parent

痴心易碎 提交于 2019-12-12 03:45:22
问题 I would like to link a GUI to a certain window, so it could act like it's a part of it. This is my GUI and I would like it to follow the Calculator (for testing). If the calculator is minimized, the gui would be minimized as well. Thanks in advance! #SingleInstance Force #Persistent BC = 0 Gui, Color, EEAA99 Gui, Margin , 0, 0 GUI, +AlwaysOnTop -Border -SysMenu -Caption +ToolWindow +Owner Gui, Font, S48 CDefault Bold CBlue, Verdana Gui, Add, Text, BackgroundTrans , Units completed: Gui, Font,

Output Sound To Audio Device

☆樱花仙子☆ 提交于 2019-12-12 03:36:11
问题 I'm trying to create a script that will trigger a sound effect when a hotkey is pressed, this might not seem too difficult, but I also want to be able to output it to a specific audio device, a virtual audio cable in my case. I've looked around on the internet a bit and I saw many possible solutions, but none have worked out for me (yet). It appears that the normal SoundPlay function in AHK can not output to a specific audio device, but I'm also looking into other options, like playing the

Autohotkey, issue after mapping capslock::ctrl

时光总嘲笑我的痴心妄想 提交于 2019-12-12 03:22:36
问题 How would you remap Ctrl + P to send Ctrl + ↑ (Up) consistently? Here is what I tried: capslock::ctrl ^p::send {up} While holding Ctrl this sends ↑ the first time, but then P unless I release Ctrl and then press it again. I found that it also happens with something like this: OriginKey::DestinationKey *DestinationKey & normalKey::maptoAnother Without releasing the artificial modifier it keeps inserting normalKey NOT maptoAnother . 回答1: Here is what I ended up using: capslock::ctrl ^p::send ^

traytip when window becomes active?

前提是你 提交于 2019-12-12 03:09:20
问题 I want to simply display a tooltip when a window becomes active. Why doesn't this work? It launches the tooltip as soon as the script is loaded. #IfWinActive, Untitled - Notepad { TrayTip, Notepad Has Focus, test Tab:: MsgBox Window Found return } Tab detection works as expected, it shows the Message Box only if the window is active. 回答1: As per the #If... docs, #IfWinActive creates context-sensitive hotkeys and hotstrings . To be a bit more precise, this is what happens when you use #IfWin..

Find Cordinates of pinned taskbar Shorcuts?

本小妞迷上赌 提交于 2019-12-12 02:54:27
问题 I am writing a script in autohotkey. The purpose of the script is to change the action performed by the program that someone clicks on the taskbar. For Example if someone say triple clicks IE on the taskbar it opens in in private mode. I have some code of this below, my problem is I am trying to find a way to automatically determine the location of the taskbar icons on the taskbar so that the program can set it's bounds for each click. I have tried looking in the registry and I have also

Snapping Windows 4 to a screen with the mouse, one at a time

烈酒焚心 提交于 2019-12-12 02:53:46
问题 I want to snap windows to a corner (quarter) of a screen by right clicking before letting go of the window being moved by the mouse. I'm currently struggling with getting the active window to move. For the LEFT screen, top left position I can get Notepad to move, but it snaps back to its previous position when the mouse button is released; and I have to call it out by name--I want it to work with any active window. Thoughts? ~Lbutton & ~Rbutton:: CoordMode,Mouse,Screen ;mouse position