Search found 771 matches

by Coco
23 Mar 2017, 07:48
Forum: AutoHotkey Development
Topic: 6th Anniversary
Replies: 14
Views: 8104

Re: 6th Anniversary

Thanks Lexikos, looking forward to V2's stable release.
by Coco
23 Mar 2017, 07:45
Forum: Editors
Topic: [Android] 920 Text Editor (w/ AHK support)
Replies: 1
Views: 5134

[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...
by Coco
31 Dec 2016, 07:26
Forum: Off-topic Discussion
Topic: « What's on your mind? » Topic is solved
Replies: 4893
Views: 1386108

Re: « What's on your mind? » Topic is solved

2017 in 4 hours. Happy New Year everyone. ;)
by Coco
15 Oct 2016, 13:27
Forum: AutoHotkey Development
Topic: MsgBox, InputBox, TrayTip
Replies: 13
Views: 10985

Re: MsgBox, InputBox, TrayTip

Looks good to me. I prefer the contractions for the options.
by Coco
23 Jun 2016, 09:24
Forum: AutoHotkey Development
Topic: Commands vs Functions
Replies: 85
Views: 33657

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...
by Coco
23 Jun 2016, 07:50
Forum: AutoHotkey Development
Topic: Documentation updated
Replies: 12
Views: 8564

Re: Documentation updated

Thank you! Appreciate your efforts :)
by Coco
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: 1881

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...
by Coco
31 May 2016, 09:49
Forum: Ask for Help (v1)
Topic: AHK as COM server
Replies: 1
Views: 1366

Re: AHK as COM server

by Coco
24 May 2016, 14:44
Forum: Ask for Help (v1)
Topic: DllCall GetProcessAffinityMas
Replies: 9
Views: 3709

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...
by Coco
24 May 2016, 14:26
Forum: Ask for Help (v1)
Topic: DllCall GetProcessAffinityMas
Replies: 9
Views: 3709

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...
by Coco
24 May 2016, 14:13
Forum: Ask for Help (v1)
Topic: DllCall GetProcessAffinityMas
Replies: 9
Views: 3709

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...
by Coco
24 May 2016, 14:03
Forum: Ask for Help (v1)
Topic: DllCall GetProcessAffinityMas
Replies: 9
Views: 3709

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
}
by Coco
24 May 2016, 13:44
Forum: General Discussion
Topic: AHK is a *bad* language?
Replies: 36
Views: 21397

Re: AHK is a *bad* language?

Capn Odin wrote:I do however feel that if you stick to one way of writing your scripts, it works consistently.
this
tidbit wrote:simple solutions: always use if's with ()'s. especially when helping new people, get them in the habit awell.
I agree
guest3456 wrote:AHK v2 is more consistent and should be made the standard asap
+1
by Coco
23 May 2016, 06:38
Forum: Ask for Help (v1)
Topic: Hooking/Replacing AHK IUnknown methods(object, script-wide) crash
Replies: 3
Views: 2164

Re: Hooking/Replacing AHK IUnknown methods(object, script-wide) crash

qwerty12 wrote:Removing the write protection on the area written to works for me on x64 and x86 AutoHotkey:
Thanks, that worked :)
by Coco
22 May 2016, 12:37
Forum: Ask for Help (v1)
Topic: Hooking/Replacing AHK IUnknown methods(object, script-wide) crash
Replies: 3
Views: 2164

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 ...
by Coco
19 May 2016, 11:06
Forum: Bug Reports
Topic: Bug in Menu, ..., Insert, ... ? Topic is solved
Replies: 5
Views: 3718

Re: Bug in Menu, ..., Insert, ... ? Topic is solved

Should probably move this to "Bugs" for visibility? Lexikos might have overlooked the post.
by Coco
19 May 2016, 11:01
Forum: Scripts and Functions (v1)
Topic: Win10Move() - deceptive WinMove - move window based on what is visible ;)
Replies: 11
Views: 4980

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...
by Coco
17 May 2016, 10:59
Forum: Bug Reports
Topic: Bug in Menu, ..., Insert, ... ? Topic is solved
Replies: 5
Views: 3718

Re: Bug in Menu, ..., Insert, ... ? Topic is solved

Confirmed, getting the same error on AHK v1.1.23.06
by Coco
16 May 2016, 09:37
Forum: Ask for Help (v1)
Topic: Fastest way to replace text?
Replies: 10
Views: 4028

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...
by Coco
13 May 2016, 21:49
Forum: Scripts and Functions (v1)
Topic: KeyValStore.ahk - Convenient data persistence
Replies: 4
Views: 3264

Re: KeyValStore.ahk - Convenient data persistence

jNizM wrote:After dat.Clear() there is still <object/> + \r\n in test.xml.
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.

Go to advanced search