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

Ask for Help (v1) • Minus date not working correctly

Hello,I have the below script that takes 31 days off the current date. This works fine the first time, but the second time takes 62, third time 93 etc. How do I stop this??CODE: ::.td3::DateMinus31 +=...

View Article


Ask for Help (v1) • Re: Minus date not working correctly

The += operator adds to the previous value, so it keeps adding -31 to its previous value. Precede that line with DateMinus31 := A_Now so that it starts with today’s date each time.Statistics: Posted...

View Article

Off-topic Discussion • Re: Beginner to VSCode/GitHub/GitDeskop.

I am also new to GitHub. Are you aware of the GitHub learning lab?Statistics: Posted by andymbody — 49 minutes ago

View Article

Ask for Help (v2) • Re: Best way to ensure single instance of GUI?

Hi.You could also disable the button to prevent it from being used multiple times.CODE: #SingleInstance#Requires AutoHotkey v2+g1 := Gui()g1.add('text',, 'click for on-demand gui')g1.add('button',...

View Article

Image may be NSFW.
Clik here to view.

Ask for Help (v1) • Re: Read from variable instead of text file

Perfect, thanks a lot!! Your help is much appreciated. I actually tried that syntax but I forgot to include the brackets so it didn't work. Oh well lesson learned. I'll keep this topic going if I come...

View Article


Ask for Help (v2) • Re: i need a script for only the alphabet

I guess you could try making those keys "visible" along with Enter. In the bugs forum, lexikos has recently posted about the real nature of the issue having to do with how the InputHook handles VK and...

View Article

Ask for Help (v1) • Re: I accidently deleted a script file, how can I restore...

Thank you for the answer! The file is gone, and I was hoping to extract the scripts from the one that loaded. I guess that it's impossible.Statistics: Posted by mmflume — Today, 18:16

View Article

Ask for Help (v2) • Re: How do you check for extra keys when LShift is set as...

Call MsgBox when it's not TimeoutIf you do not need the "~LShift Up" hotkey, you can remove it completely.Statistics: Posted by mikeyww — Today, 18:26

View Article


Ask for Help (v2) • Re: Why Msgbox dosn't use "TraySetIcon"?

@Seven0528, thanks for pointing out that bit in the documentation for LoadPicture(). Ran some leak tests and was noticing some performance issues after about 1600 MsgBox() calls, so we've tweaked the...

View Article


Image may be NSFW.
Clik here to view.

Ask for Help (v1) • Phantom line being written?

Somewhat related to the previous topic, this code reads a .txt file from the hard drive, reverses its contents, and then writes the amended data back to the hard drive again (it creates a new file, it...

View Article

Ask for Help (v2) • Re: How I can call my DLL? (C# net8)

Just a guess... but does the method need to be static? (I know nothing about DLL structure, but have coded C#)Statistics: Posted by andymbody — 48 minutes ago

View Article

Ask for Help (v1) • Re: Phantom line being written?

Where in the code is it doing this…?The very first time through the loop, you are assigning the first line read, followed by a linefeed character, followed by the current contents of rev, which is...

View Article

Image may be NSFW.
Clik here to view.

Ask for Help (v1) • Re: How to fix failing physical mouse button

Hallo,try:CODE: *XButton2::Click, X2 DownLoop {KeyWait, XButton2KeyWait, XButton2, DT.2} Until, ErrorLevelClick, X2 UpReturnThis works, thanks Statistics: Posted by LeafyWater — Today, 16:11

View Article


Ask for Help (v2) • Re: did moving my "documents" directory break...

 #Include directives can include other #Include directives. In the past, I often included all frequently used libraries in one ahk file and then included that ahk file, but that's not recommended,...

View Article

Ask for Help (v2) • Open a pdf file in Chrome New tab

HelloTrying to :-1. Select a file (with mouse)2. Press a key (RAlt + l)3. Open it in already open chrome and in a new tab.So I have : (from google searches etc)CODE: >!l:: ;; RAlt + L{ Var := %...

View Article


Ask for Help (v1) • Re: How to make this script automatically activate in...

CODE: #Requires AutoHotkey v1.1.33.11runFor := 5 ; Secondsevery := 20 ; SecondsSoundBeep 1500Space Up::ReloadSpace::SetTimer Go, % 1000 * everyGosub GoKeyWait SpaceReturnGo:end := A_TickCount + 1000 *...

View Article

Ask for Help (v2) • Re: Help converting v1 script regarding Excel to v2

Here you go:CODE: ^e::Run "Excel"#x:: {xx := FormatTime("yyyMMdd")Send xx}Statistics: Posted by Datapoint — Today, 16:43

View Article


Ask for Help (v2) • Re: Matching data on the clipboard with RegExMatch

Close enough... thanks. Clearly over thinking this one.Statistics: Posted by jarhead — Today, 16:52

View Article

Ask for Help (v2) • Re: Open a pdf file in Chrome New tab

I would lose the brackets...CODE: >!l:: ;; RAlt + L Var := % Explorer_GetSelection() Run "C:\Program Files\Google\Chrome\Application\chrome.exe /newtab" %Var%ReturnYou will also need the...

View Article

Ask for Help (v2) • Double-Clicking on Image Control Saves the Path to Clipboard

Hello everyone,I've noticed that double-clicking on the image saves the image path to the clipboard. Could someone please explain why this happens? CODE: #Requires Autohotkey v2.0#SingleInstance...

View Article
Browsing all 579 articles
Browse latest View live