New answers tagged

1

#IfWinActive ahk_class MSPaintApp +WheelUp:: ; Shift + Wheel Up for horizontal scrolling left MouseGetPos,,,id, fcontrol,1 ; Loop 1 ; <-- Increase for faster scrolling SendMessage, 0x114, 0, 0, %fcontrol%, ahk_id %id% ; 0x114 is WM_HSCROLL and the 0 after it is SB_LINERIGHT. return +WheelDown:: ; Shift + Wheel Down for horizontal ...


0

Please forgive me if I go over anything you are already aware of in this answer. How can I also have it look for .ahk extensions? Offhand, I am not aware of a way to affect the file picker dialog in Notepad++ to add default executable extensions. I regularly use Notepad++ for editing my AutoHotkey scripts. I like to use the Notepad++ Run feature to test ...


0

This worked for me. For EXE created, I right-clicked and Run As Admin #SingleInstance force ;; https://autohotkey.com/board/topic/62277-is-there-a-simpler-way/ ;; PLUS Open TCP/IPv4 properties with Autohotkey Run ::{7007acc7-3202-11d1-aad2-00805fc1270e},, ;; max sleep, 1000 ; 1.0 sec ;; mimics a right click on NIC icon - which at the end, 8 lines down, ...


0

PotPlayer provides a feature to rename files in the playlist. Open the playlist (default hotkey: F6), right click the target file, choose "add & edit" -> "rename file... CTRL+M", or select the file in the list and press CTRL+M. There will be a pop-up window to rename the file, a new folder location could be set in the very same ...


2

This can be done using AutoHotInterception, as it allows the use of AutoHotkey Scripts, while distinguishing between multiple keyboards, as the Orbweaver acts like a Keyboard on its own. Installation The AutoHotInterception GitHub Page is located at https://github.com/evilC/AutoHotInterception Download and install AutoHotkey Download the Interception Driver ...


0

You could possibly look at a hardware solution such as a "mouse jiggler"... I think they're usually recognized by the computer as a generic USB keyboard or mouse, which are programmed to send something every so often.


0

Can I prevent this? Based on the environment you describe you won't be able to bypass this intentional security measure. A thin client is a dumb box. It's a networked attached USB that sends data to a session manager. The most common implementation of a thin client environment deals with a session manager like VMWare View. The reason you are unable to ...


0

Some things you could look at: Making it a function called by each hotkey (vs. a single set of code that executes in the main script) Calling via SetTimer--this can put things on separate threads Looking at the Critical command--this may help you understand what can be interrupted or not (and how subsequent hotkey interruptions might work on your code setup)...


3

On Windows there is no shortcut to move tabs left or right, so you can use an extension like rearrange-tabs to set the shortcut for moving current tab to the right (Alt-Shift-Right) and then use Autohotkey script to combine into one action: #If winActive("ahk_exe chrome.exe") ^+lbutton:: send ^{lbutton} send !+{right} return It basically ...


0

There is an extension for that. It is called TabPlus It lets you specify where you want your new tabs to open. The behavior will be persistent though. I don't think you can quickly switch between two methods using a hotkey. There is also Tab Position Customizer 2 extension which does the same:


1

A hotkey registration works very simple in windows. An app can make a hotkey claim if the hotkey is not yet claimed. They register and then it is send to their app until the app itself closes. As long as the hotkey is claimed, no other app can claim that hotkey. So if Dexpot starts before the other app starts, Dexpot gets the hotkey. You have to figure out ...


1

I see you trying to use the old syntax of WinExist function, but not in the correct way. Depending on what is documented here, the correct syntax is like this IfWinExist, Time Information or like this IfWinEXist, % "Time Information" same with IfWinNotExist. Another thing, you posted that AHK Spy gives you Date and Time Information as the title of that ...


0

Maybe I'm wrong but I read autohotkey sometimes uses de Delphi syntax for colors. Delphi: 0x00BBGGRR. Thus, blue hex 0000FF would be 0x00FF0000 A sure fireway is just use the aerolite theme


0

Activate: 1. In Windows, you can pin it to taskbar or startmenu 2. right click pinned icon and click properties 3. give that a shortcut key which can be used to call/activate Deactivate: You can suspend ahk script via #Pause::Suspend Not a good solution but works


1

Space & a:: Send,{Alt Down}{Tab} ; Sleep, 200 Return #If GetKeyState("Space", "P") a::Left d::Right ; The tilde prefix (~) prevents AHK from blocking the key-down/up events: ~Space up:: Send,{Alt Up} #If https://www.autohotkey.com/docs/Hotkeys.htm#Tilde


1

try ComObjCreate("Excel.Application") See Dealing with COM errors. Probably you have to run the script as administrator


1

If a program is running with admin privileges, AHK won't intercept the key presses, and that could be the reason behind your problem. If that is the case, try to run the AHK script as administrator by adding this to the auto-execute section (top of the script): ; If the script is not elevated, relaunch as administrator and kill current instance: ...


0

Did you assign to a variable etc? Without more information, I can only say the following works on my system. msexcel := ComObjCreate("Excel.Application") wbk := msexcel.Workbooks.Add() msexcel.Visible := true >Exit code: 0 Time: 1.282 Note Excel may open minimized. You may need to look carefully to find the window. It may be that Excel is not ...


0

use if to judge the type of activesheet, worksheet is -4167, chart is 3. #if WinActive("ahk_exe excel.exe") +wheelup:: ;scroll left xl := Excel_Get() if xl.ActiveSheet.Type = -4167 xl.ActiveWindow.SmallScroll(0,0,0,3) return +wheeldown:: ;scroll right xl := Excel_Get() ...


Top 50 recent answers are included