Search found 9371 matches
- 31 Mar 2024, 21:55
- Forum: General Discussion
- Topic: How many have Spinning HDs vs SSDs?
- Replies: 12
- Views: 189
Re: How many have Spinning HDs vs SSDs?
If the OS is installed on a HDD and it spins down, it will inevitably cause delays. No one wants that to happen while the computer is in use. And even if the computer is idle, I suppose that you shouldn't buffer your log data indefinitely. If the computer is so idle that the OS drive can be put to s...
- 31 Mar 2024, 21:18
- Forum: SciTE4AutoHotkey
- Topic: How to run a lua script in scite?
- Replies: 1
- Views: 118
Re: How to run a lua script in scite?
These are defined by various command. xxx .$(file.patterns.lua) properties. https://www.scintilla.org/SciTEDoc.html#property-command.compile I have this set in SciTEUser.properties so Run executes the current file with SciTE's Lua interpreter: command.go.$(file.patterns.lua)=dofile $(FilePath) comma...
- 31 Mar 2024, 21:08
- Forum: SciTE4AutoHotkey
- Topic: Can Scite's tab page not display file extensions?
- Replies: 1
- Views: 560
Re: Can Scite's tab page not display file extensions?
No, there is no property for this. It might be possible to rename the tab via tab control messages, but it would be overridden every time something happens that might affect a tab name. (SciTE recalculates all of the tab names whenever it updates the Tabs/Buffers menu, which happens due to various e...
- 31 Mar 2024, 20:17
- Forum: Ask for Help (v2)
- Topic: Which is better in Hotstring, scancode and direct typing? Topic is solved
- Replies: 3
- Views: 66
Re: Which is better in Hotstring, scancode and direct typing? Topic is solved
{U+nnnn} SendInput() or WM_CHAR is used to send the character and the current Send mode has no effect. Characters sent this way usually do not trigger shortcut keys or hotkeys. Source: Send - Syntax & Usage | AutoHotkey v2 Characters vs. keys: By default, characters are sent by first translating th...
- 31 Mar 2024, 20:10
- Forum: Ask for Help (v2)
- Topic: Is there a way to copy-on-select without sending ^c ?
- Replies: 5
- Views: 118
Re: Is there a way to copy-on-select without sending ^c ?
Console windows have a menu which can be invoked via MenuSelect. There's an example in the documentation for pasting, which should be simple to modify for copying. This is only for ahk_class ConsoleWindowClass , not custom console windows or Windows Terminal. mikeyww "without sending ^c"; "Both of t...
- 31 Mar 2024, 20:05
- Forum: Ask for Help (v2)
- Topic: how could I get a script to automatically reload upon waking up my computer?
- Replies: 1
- Views: 55
Re: how could I get a script to automatically reload upon waking up my computer?
I use OnMessage(WM_POWERBROADCAST := 0x218, OnPowerBroadcast) OnPowerBroadcast(wParam, *) { if (wParam = 7) { ; PBT_APMRESUMESUSPEND: resume triggered by user input ;... } } but be aware that your network adapter might not be ready at that time. You would probably also need to wait for Google Drive ...
- 31 Mar 2024, 19:57
- Forum: AutoHotkey Development
- Topic: Typed properties - experimental build available
- Replies: 68
- Views: 10842
Re: Typed properties - experimental build available
thqby If the pointer type is used as a property of a struct, a PointerTo-based property will return an object which represents the pointer value . The actual pointer value is copied into the object's internal data pointer field. Modifying the original struct will have no effect on a previously-retr...
- 31 Mar 2024, 03:55
- Forum: Ask for Help (v2)
- Topic: How to obtain the memory address of a variable in AutoHotkey v2?
- Replies: 28
- Views: 970
Re: How to obtain the memory address of a variable in AutoHotkey v2?
The documentation now explicitly states that bitwise operators perform 64-bit integer operations. [The variant] I gave also gives you a better idea of how negative numbers are organized in memory. I'm not sure I even understand what you mean by "organized in memory". If you mean how the negative num...
- 30 Mar 2024, 19:44
- Forum: Ask for Help (v2)
- Topic: Passing GUI events to another GUI / letting GUI events fall through
- Replies: 14
- Views: 360
Re: Passing GUI events to another GUI / letting GUI events fall through
I should have been explicit in saying "avoiding function references or boundfunc objects that point to methods in the Gui subclass in event handlers is essential to avoid circular references". Presumably that's an accurate statement, given all we've discussed above? No, it's actually missing the po...
- 28 Mar 2024, 22:17
- Forum: Ask for Help (v2)
- Topic: How to obtain the memory address of a variable in AutoHotkey v2?
- Replies: 28
- Views: 970
Re: How to obtain the memory address of a variable in AutoHotkey v2?
If you think the masking is important, then just say so, otherwise I've clearly given the exact method I normally use. To be clear, I never criticized your method of using NumPut and NumGet to extract a number of one type from a value of another type. I criticized: How you introduced it as "the cur...
- 28 Mar 2024, 19:54
- Forum: Ask for Help (v2)
- Topic: Can the language be change Topic is solved
- Replies: 10
- Views: 200
Re: Can the language be change Topic is solved
I also wanted to be helpful in situations where users may want to replace it with a custom menu, as @boiler mentioned... It might be helpful to someone, but I think it just distracts from the actual answer to the original question (which you did include in your example, so don't take my criticism h...
- 28 Mar 2024, 19:51
- Forum: Ask for Help (v2)
- Topic: Why the interpreter complains about multiple statements inside an arrow function?
- Replies: 3
- Views: 107
Re: Why the interpreter complains about multiple statements inside an arrow function?
Arrow functions require an expression. You cannot use a statement inside an expression. Of course, color := PixelGetColor(270, 360) and ShowMessageBox('Uploading "' filename '"...') are also valid expressions, so you can just follow vmech's advice. If you need a control flow statement, you can't use...
- 28 Mar 2024, 19:39
- Forum: Ask for Help (v2)
- Topic: Autohotkey 2.0.12 and Smartscreen
- Replies: 3
- Views: 104
Re: Autohotkey 2.0.12 and Smartscreen
This is not a virus detection and should not be reported to Microsoft as a false positive. This is just the normal over-cautious behaviour of SmartScreen, warning about an unsigned file that was sourced from the Internet and has not yet built up reputation (because it is new ). The same thing someti...
- 28 Mar 2024, 18:59
- Forum: Ask for Help (v2)
- Topic: Can the language be change Topic is solved
- Replies: 10
- Views: 200
Re: Can the language be change Topic is solved
There is no need to hook the tray icon message. You can just rename the tray menu items with A_TrayMenu.Rename() when the script starts.
- 28 Mar 2024, 18:54
- Forum: Ask for Help (v2)
- Topic: Setting Icons added as resource to .exe
- Replies: 2
- Views: 44
Re: Setting Icons added as resource to .exe
"ICON1" is not a filename. The usage is TraySetIcon [FileName, IconNumber, Freeze] . AutoHotkey does not support specifying an icon resource by name. You can assign a numeric ID instead; a positive number for AddResource but prefix it with - in IconNumber. If negative, the absolute value is assumed ...
- 28 Mar 2024, 17:54
- Forum: Bug Reports
- Topic: InputHook "suppress" doesn't suppress backspace
- Replies: 2
- Views: 138
- 28 Mar 2024, 04:19
- Forum: AutoHotkey Development
- Topic: Typed properties - experimental build available
- Replies: 68
- Views: 10842
Re: Typed properties - experimental build available
If __value returns 0 for a null pointer, there will be ambiguity when the type is int*. A property of type int* would not return the int value; it would return an int*. How would you get the pointer value if it was automatically dereferenced? Don't be confused by the fact that a RECT.Pointer proper...
- 28 Mar 2024, 03:00
- Forum: Ask for Help (v2)
- Topic: static initialization, function auto-execution? Topic is solved
- Replies: 3
- Views: 127
Re: static initialization, function auto-execution? Topic is solved
mikeyww that is only about initialization of classes and property initializers in a class. It does not relate to static variables in a function, although the differences from v1 (and relation to initialization of global variables mentioned in the quote) are similar. The use of static to auto-execut...
- 27 Mar 2024, 04:28
- Forum: AutoHotkey Development
- Topic: Typed properties - experimental build available
- Replies: 68
- Views: 10842
Re: Typed properties - experimental build available
thqby literally just removing the getter would defeat half the point. A field or return value of type RECT.Pointer is supposed to return a pointer-to-RECT, which behaves as a RECT. The object which has the __value property is an implementation detail hidden from the script by __value; it does not b...
- 27 Mar 2024, 03:54
- Forum: Ask for Help (v2)
- Topic: Sleep(-1) in WinEventProc causes unwanted delays
- Replies: 4
- Views: 174
Re: Sleep(-1) in WinEventProc causes unwanted delays
F3 sends the string fewer times because otherwise the script would run too long (because of the halting). Conversely, if there's no halting, F3 will complete faster. Why send so many keystrokes in F2? Better to write it so that the expected results are the same for both. Then you can say that F3 sh...