Search found 771 matches
- 23 Mar 2017, 07:48
- Forum: AutoHotkey Development
- Topic: 6th Anniversary
- Replies: 14
- Views: 8245
Re: 6th Anniversary
Thanks Lexikos, looking forward to V2's stable release.
- 23 Mar 2017, 07:45
- Forum: Editors
- Topic: [Android] 920 Text Editor (w/ AHK support)
- Replies: 1
- Views: 5367
[Android] 920 Text Editor (w/ AHK support)
Discovered this open source Android app the other day and saw that it provides syntax highlighting for AutoHotkey. No chance to test it yet but I thought I'd share it. Mobile is not the most ideal environment for some code editing but this might come in handy if you want jot down some code whether f...
- 31 Dec 2016, 07:26
- Forum: Off-topic Discussion
- Topic: « What's on your mind? » Topic is solved
- Replies: 4900
- Views: 1415845
Re: « What's on your mind? » Topic is solved
2017 in 4 hours. Happy New Year everyone.
- 15 Oct 2016, 13:27
- Forum: AutoHotkey Development
- Topic: MsgBox, InputBox, TrayTip
- Replies: 13
- Views: 11247
Re: MsgBox, InputBox, TrayTip
Looks good to me. I prefer the contractions for the options.
- 23 Jun 2016, 09:24
- Forum: AutoHotkey Development
- Topic: Commands vs Functions
- Replies: 85
- Views: 34380
Re: Commands vs Functions
Terminology: Commands are functions anyways, I don't see any problem with using one term, especially for v2. As for the differences between the two forms(Command syntax & Expression syntax), Expression syntax can be called something like "traditional form" and Command syntax can be called something...
- 23 Jun 2016, 07:50
- Forum: AutoHotkey Development
- Topic: Documentation updated
- Replies: 12
- Views: 8684
Re: Documentation updated
Thank you! Appreciate your efforts
- 21 Jun 2016, 10:31
- Forum: Ask for Help (v1)
- Topic: [Solved] Override __Call() when there is no key()? Topic is solved
- Replies: 3
- Views: 1902
Re: Override __Call() when there is no key()? Topic is solved
instance := new Functor() %instance%() return class Functor { __Call(method, args*) { if (IsObject(method)) ; if class object is used as method(usually achieved when nesting) return this.Call(method, args*) if (method == "") ; %instance%() syntax return this.Call(args*) } Call(args*) { MsgBox Hello...
- 31 May 2016, 09:49
- Forum: Ask for Help (v1)
- Topic: AHK as COM server
- Replies: 1
- Views: 1381
Re: AHK as COM server
This should be a good start: https://autohotkey.com/boards/viewtopic.php?t=6148
- 24 May 2016, 14:44
- Forum: Ask for Help (v1)
- Topic: DllCall GetProcessAffinityMas
- Replies: 9
- Views: 3759
Re: DllCall GetProcessAffinityMas
i should in generelt use Closehanlde with ptr and not int. ? Use Ptr for handles such as hWnd , hProcess , hFile , hPipe etc. I've just seen alot of them with just int. or maybe it not a bigg difference ? Those are mostly legacy code but should work fine for 32-bit AHK. However, I suggest you use P...
- 24 May 2016, 14:26
- Forum: Ask for Help (v1)
- Topic: DllCall GetProcessAffinityMas
- Replies: 9
- Views: 3759
Re: DllCall GetProcessAffinityMas
UPtrP U for beeing unsigned. Ptr for beeing and pointer size integer but not an actual pointer and P because it a pointer aka the adresse and not the value I'm receiving. On the right track ? BOOL WINAPI GetProcessAffinityMask( _In_ HANDLE hProcess, _Out_ PDWORD_PTR lpProcessAffinityMask, _Out_ PDW...
- 24 May 2016, 14:13
- Forum: Ask for Help (v1)
- Topic: DllCall GetProcessAffinityMas
- Replies: 9
- Views: 3759
Re: DllCall GetProcessAffinityMas
Why closehanlde with Ptr and not Int ? PTR A pointer-sized integer, equivalent to Int or Int64 depending on whether the exe running the script is 32-bit or 64-bit. Ptr should be used for pointers to arrays or structures (such as RECT* or LPPOINT) and almost all handles (such as HWND, HBRUSH or HBIT...
- 24 May 2016, 14:03
- Forum: Ask for Help (v1)
- Topic: DllCall GetProcessAffinityMas
- Replies: 9
- Views: 3759
Re: DllCall GetProcessAffinityMas
Code: Select all
AffinityGet(pid)
{
hProc := DllCall("OpenProcess", "UInt", 1536, "Int", 0, "UInt", pid)
DllCall("GetProcessAffinityMask", "Ptr", hProc, "UPtrP", paf, "UPtrP", saf)
DllCall("CloseHandle", "Ptr", hProc)
return paf
}
- 24 May 2016, 13:44
- Forum: General Discussion
- Topic: AHK is a *bad* language?
- Replies: 36
- Views: 21812
Re: AHK is a *bad* language?
thisCapn Odin wrote:I do however feel that if you stick to one way of writing your scripts, it works consistently.
I agreetidbit wrote:simple solutions: always use if's with ()'s. especially when helping new people, get them in the habit awell.
+1guest3456 wrote:AHK v2 is more consistent and should be made the standard asap
- 23 May 2016, 06:38
- Forum: Ask for Help (v1)
- Topic: Hooking/Replacing AHK IUnknown methods(object, script-wide) crash
- Replies: 3
- Views: 2178
Re: Hooking/Replacing AHK IUnknown methods(object, script-wide) crash
Thanks, that workedqwerty12 wrote:Removing the write protection on the area written to works for me on x64 and x86 AutoHotkey:
- 22 May 2016, 12:37
- Forum: Ask for Help (v1)
- Topic: Hooking/Replacing AHK IUnknown methods(object, script-wide) crash
- Replies: 3
- Views: 2178
Hooking/Replacing AHK IUnknown methods(object, script-wide) crash
From this post : Hook into the AutoHotkey implementation (for all Objects script-wide) by using NumGet to retrieve the QueryInterface implementation and NumPut to replace it. I'm trying the above for AddRef but somehow it causes the script to crash. Not really sure if I'm doing it right. Here is my ...
- 19 May 2016, 11:06
- Forum: Bug Reports
- Topic: Bug in Menu, ..., Insert, ... ? Topic is solved
- Replies: 5
- Views: 3740
Re: Bug in Menu, ..., Insert, ... ? Topic is solved
Should probably move this to "Bugs" for visibility? Lexikos might have overlooked the post.
- 19 May 2016, 11:01
- Forum: Scripts and Functions (v1)
- Topic: Win10Move() - deceptive WinMove - move window based on what is visible ;)
- Replies: 11
- Views: 5005
Win10Move() - deceptive WinMove - move window based on what is visible ;)
A possible solution to the WinMove - Windows 10 thread ;). Untested since I'm not currently on a Windows 10 machine, I might be doing this wrong :facepalm: ; EXTENDED_FRAME_BOUNDS width is 0 with +Resize Gui New, +Hwndhwnd ; +Resize Gui Show, w300 h300 MsgBox Win10Move("ahk_id " . hwnd, 0, 0) return...
- 17 May 2016, 10:59
- Forum: Bug Reports
- Topic: Bug in Menu, ..., Insert, ... ? Topic is solved
- Replies: 5
- Views: 3740
Re: Bug in Menu, ..., Insert, ... ? Topic is solved
Confirmed, getting the same error on AHK v1.1.23.06
- 16 May 2016, 09:37
- Forum: Ask for Help (v1)
- Topic: Fastest way to replace text?
- Replies: 10
- Views: 4109
Re: Fastest way to replace text?
If the text contains more than 256 characters the variable will be to long. https://autohotkey.com/docs/Variables.htm Variable names: Variable names are not case sensitive (for example, CurrentDate is the same as currentdate). Variable names may be up to 253 characters long and may consist of lette...
- 13 May 2016, 21:49
- Forum: Scripts and Functions (v1)
- Topic: KeyValStore.ahk - Convenient data persistence
- Replies: 4
- Views: 3290
Re: KeyValStore.ahk - Convenient data persistence
Clearing the XML file invalidates it. Calling load(XmlFile) on an XML file w/o a root element would trigger a parse error. I think leaving {}(in XML <object/>) as default for an empty store should be the way it is.jNizM wrote:After dat.Clear() there is still <object/> + \r\n in test.xml.