Search found 8713 matches

by gregster
Yesterday, 21:06
Forum: Ask for Help (v2)
Topic: How NOT to display AHK icon on the taskbar when script is running?
Replies: 4
Views: 62

Re: How NOT to display AHK icon on the taskbar when script is running?

The taskbar button can be hidden by using the ToolWindow option for GUIs: MyGui.Opt("+ToolWindow") ToolWindow: Provides a narrower title bar but the window will have no taskbar button. This always hides the maximize and minimize buttons, regardless of whether the WS_MAXIMIZEBOX and WS_MINIMIZEBOX st...
by gregster
Yesterday, 20:18
Forum: Ask for Help (v2)
Topic: Why am I getting this error executing DateDiff function?
Replies: 2
Views: 23

Re: Why am I getting this error executing DateDiff function?

btw, it is recommended to post code in a codebox instead of a picture. That way, people can easily test your code.
by gregster
Yesterday, 20:16
Forum: Ask for Help (v2)
Topic: Why am I getting this error executing DateDiff function?
Replies: 2
Views: 23

Re: Why am I getting this error executing DateDiff function?

Datediff needs date-time stamps in the YYYYMMDDHH24MISS format. Your picture of the error message shows what you got instead. Format Type: String If blank or omitted, it defaults to the time followed by the long date, both of which will be formatted according to the current user's locale. For examp...
by gregster
Yesterday, 16:35
Forum: Scripts and Functions (v2)
Topic: HotGestures - Customize and recognize mouse gestures
Replies: 10
Views: 1554

Re: HotGestures - Customize and recognize mouse gestures

@GollyJer, I didn't test it, but I would have tried AHK hotkey syntax: "^Rbutton"; it looks like this built-in function is also used in the source code.
by gregster
Yesterday, 11:24
Forum: Ask for Help (v1)
Topic: Throw a warning if running 2.0 ?
Replies: 1
Views: 42

Re: Throw a warning if running 2.0 ?

Afaik, this specific error message was caused by a bug in the v2 Launcher (including v2.0.11) - and should be fixed in the newest version (lexikos stated: " v2.0.12 fixes this, and/or at least handles PCRE execution errors better. ") Otherwise, the AHK v2 Launcher already takes care of choosing or s...
by gregster
Yesterday, 10:20
Forum: Ask for Help (v2)
Topic: After calling ExitApp, key within rebind script stops working.
Replies: 2
Views: 40

Re: After calling ExitApp, key within rebind script stops working.

It would be nice to understand how an AHK remap script can affect a key after ExitApp is called... It can't. It's simply not capable of doing that. Especially, it does nothing to change anything in your keyboard - so another keyboard would not change anything (if the keyboard is not actually broken...
by gregster
28 Mar 2024, 14:58
Forum: Ask for Help (v1)
Topic: ControlClicking on a window hidden by 'winHide'? Topic is solved
Replies: 3
Views: 55

Re: ControlClicking on a window hidden by 'winHide'? Topic is solved

This can be found in the ControlClick docs which seems to support that hidden windows are supported in principle: To operate upon a control's HWND (window handle), leave this parameter blank and specify ahk_id %ControlHwnd% for the WinTitle parameter (this also works on hidden controls even when Det...
by gregster
28 Mar 2024, 14:48
Forum: Ask for Help (v1)
Topic: ControlClicking on a window hidden by 'winHide'? Topic is solved
Replies: 3
Views: 55

Re: ControlClicking on a window hidden by 'winHide'? Topic is solved

Don't know the answer - but at least your ControlClick syntax is currently incorrect and your code above can't work as expected: Mode 1 (Position): Specify the X and Y coordinates relative to the target window's upper left corner. The X coordinate must precede the Y coordinate and there must be at l...
by gregster
28 Mar 2024, 14:27
Forum: Scripts and Functions (v1)
Topic: Prevent accidental clicks of thinkpad x230 touchpad
Replies: 3
Views: 42

Re: Prevent accidental clicks of thinkpad x230 touchpad

Yes, in a sense - AHK v1 has reached its (official) end of life a few days ago, lexikos won't develop it any further (anyone is free to fork it though, and we continue to provide subforums for it). But please note that v2 has many syntax changes and is not very compatible to most v1 code. But you ca...
by gregster
28 Mar 2024, 13:25
Forum: Ask for Help (v1)
Topic: How to ignore/disable keys for X amount of time - AHK
Replies: 2
Views: 35

Re: How to ignore/disable keys for X amount of time - AHK

@imstupidpleshelp, we again added code tags to your post. Please use them yourself when posting code. Thank you!


ctags.png
ctags.png (14.18 KiB) Viewed 18 times
by gregster
28 Mar 2024, 13:18
Forum: Scripts and Functions (v1)
Topic: Prevent accidental clicks of thinkpad x230 touchpad
Replies: 3
Views: 42

Re: Prevent accidental clicks of thinkpad x230 touchpad

Hi @TOTAL, I moved your topic from Scripts and Functions (v2) to the corresponding AHK v1 subforum. Perhaps you have missed that AHK v2 is the new main release, and that we have now separate forums for AHK v1 and AHK v2 topics.
(I also fixed a broken code tag - a ] was missing.)
by gregster
28 Mar 2024, 01:38
Forum: Ask for Help (v2)
Topic: Newbie with syntax problem
Replies: 5
Views: 64

Re: Newbie with syntax problem

If correctly installed, it should be no problem to have v1 and v2 installed side by side so that you can use both kinds of scripts (no need to remove v1). That's what the Launcher is meant for... and the #Requires directive (also available in recent v1 versions).
by gregster
28 Mar 2024, 01:11
Forum: Ask for Help (v2)
Topic: Newbie with syntax problem
Replies: 5
Views: 64

Re: Newbie with syntax problem

the messagebox shows "Hello World! <> 2. MyVar" Looks like you are running AHK v2 code with AHK v1 (the Launcher might have identified the used syntax incorrectly, or v2 is not installed (correctly)). If you have v2 actually installed as well, add #Requires AutoHotkey v2.0 at the top of your script.
by gregster
27 Mar 2024, 21:19
Forum: Ask for Help (v2)
Topic: Hot keys without sending original combination
Replies: 2
Views: 68

Re: Hot keys without sending original combination

What means "sends the unwanted ctrl"? This website detects the key events which it can see, but it doesn't even distinguish between down and up events. How do you know if it's a sent Ctrl or simply an event of your own physical keypress? Especially since Ctrl doesn't get suppressed like regular keys...
by gregster
27 Mar 2024, 19:54
Forum: Ask for Help (v2)
Topic: Notepad: Right Ctrl+Shift Topic is solved
Replies: 5
Views: 96

Re: Notepad: Right Ctrl+Shift Topic is solved

It's just that RShift::LShift is not a hotkey, but a remapping... so it should already allow additional modifier keys to be held down, and * would be redundant in this case, afaics.
by gregster
27 Mar 2024, 14:54
Forum: Ask for Help (v1)
Topic: Mark emails as read in Outlook
Replies: 10
Views: 146

Re: Mark emails as read in Outlook

Thank you but this was intended to be for AHK v2, can you provide some v2 code to test? When you post obvious v1 code in your original post, but actually want v2 code, it would make sense to mention this from the start. Otherwise, your topic will be (and has been) moved to the v1 help subforum, ass...
by gregster
27 Mar 2024, 00:01
Forum: Ask for Help (v1)
Topic: How to create a function to automate data entry using passed in variables
Replies: 2
Views: 43

Re: How to create a function to automate data entry using passed in variables

@DIYCB, going forward, please use code tags when posting code. Thank you!


ctags.png
ctags.png (14.18 KiB) Viewed 39 times
by gregster
26 Mar 2024, 18:06
Forum: Ask for Help (v1)
Topic: Can AHK detect the target of a windows shortcut?
Replies: 3
Views: 47

Re: Can AHK detect the target of a windows shortcut?

Iirc, a lnk-file contains binary data.
by gregster
26 Mar 2024, 14:03
Forum: Gaming Help (v1)
Topic: Using AHK with the Nestopia gaming emulator
Replies: 3
Views: 40

Re: Using AHK with the Nestopia gaming emulator

Try to run the script as admin. Generally, sending keys to games can be tricky and often involves trial-and-error. Some other things to try, if the above doesn't work: Why do Hotstrings, Send, and Click have no effect in certain games? How to Make AHK Work in Most Games - The Basics But there are no...
by gregster
25 Mar 2024, 22:00
Forum: Ask for Help (v1)
Topic: Running compiled script on another computer without warnings
Replies: 6
Views: 585

Re: Running compiled script on another computer without warnings

Not necessarily. I guess if a certain version of the interpreter gets flagged erroneously for its abilities or heuristic similarity to a malware, it's probably not so important if you include it as a separate file or as part of an compiled exe (you might know that AHK exe-files are more or less just...

Go to advanced search