Search found 41 matches

by hobboy
22 Apr 2018, 07:02
Forum: Announcements
Topic: Test build - Obj.Count(), OnError(), long paths, experimental switch-case
Replies: 17
Views: 1728

Re: Test build - Obj.Count(), OnError(), long paths, experimental switch-case

Wow all of these changes sound fantastic, they address lots of common issues for me. Thanks!
by hobboy
24 Mar 2018, 10:44
Forum: Ask For Help
Topic: DllCall causes AHK to crash with Access Violation Topic is solved
Replies: 8
Views: 319

Re: DllCall causes AHK to crash with Access Violation Topic is solved

Thanks Helgef and just me, that makes more sense to me :) Can you point me to any documentation or code/info about the below quote, because I wasn't able to find this info and would like to learn more: you do mystring := "AAAA" , ahk passes a pointer to an astr of length 4 (+ null terminat...
by hobboy
24 Mar 2018, 02:50
Forum: Ask For Help
Topic: DllCall causes AHK to crash with Access Violation Topic is solved
Replies: 8
Views: 319

DllCall causes AHK to crash with Access Violation Topic is solved

AHK U32bit I have the code that calls a dll function. The function returns a 4 byte AStr into the variable I pass: VarSetCapacity(mystring, 4) DllCall("some\dllfunction","AStr", mystring, "Cdecl") Running this code causes AHK to crash on this line with an error "Un...
by hobboy
03 Nov 2017, 23:16
Forum: About This Community
Topic: Documentation website upgrade
Replies: 15
Views: 1291

Re: Documentation website upgrade

Here's what it looks like for me. I'm win7 x64 using chrome. I'm in Australia, maybe it hasn't propagated to everyone yet

Capture.PNG
(209.93 KiB) Not downloaded yet
by hobboy
03 Nov 2017, 20:58
Forum: About This Community
Topic: Documentation website upgrade
Replies: 15
Views: 1291

Documentation website upgrade

Firstly sorry if this isn't the appropriate subforum, I also couldn't find an existing topic. The announcement area might be more appropriate, but that's not for me make. It looks like the documentation website has been given a face-lift, I like it! I haven't explored too much but here are some comm...
by hobboy
03 Nov 2017, 20:35
Forum: Wish List
Topic: ahk still continued?
Replies: 14
Views: 1289

Re: ahk still continued?

Has patreon for AHK been considered? The AHK foundation has a donation button, but it would be cool if there was a direct route to funding development. And/or a patreon for the AHK foundation, but that may not be suitable. My understanding is the foundation cannot give funds to developers though. An...
by hobboy
24 Sep 2017, 20:33
Forum: Wish List
Topic: Add directive #ExitAppOnUnhandledException
Replies: 0
Views: 167

Add directive #ExitAppOnUnhandledException

Following on from my recent post , it would be great if a directive like #ExitAppOnUnhandledException was added to AHK. The benefit of such a directive is to simplify closing the script on an unhandled exception when the script would traditionally stay open due to persistence. While there is code to...
by hobboy
10 Sep 2017, 21:51
Forum: Ask For Help
Topic: How to ExitApp on Exception?
Replies: 1
Views: 124

Re: How to ExitApp on Exception?

Maybe I should simply wrap my program in a try/catch/finally statement since I also do logging https://stackoverflow.com/questions/2737328/why-should-i-not-wrap-every-block-in-try-catch edit: on further thought this might not catch other threads from hotkeys. I've looked at Only catch errors causing...
by hobboy
10 Sep 2017, 21:36
Forum: Ask For Help
Topic: How to ExitApp on Exception?
Replies: 1
Views: 124

How to ExitApp on Exception?

When using hotkeys or other functionality that enables #Persistent, unhandled Exceptions cause the current thread to exit rather than ExitApp. It is incredibly rare that I would be able to recover the program after an unhandled Exception, so instead of exiting the thread I would like to ExitApp. Oth...
by hobboy
08 Sep 2017, 05:30
Forum: AutoHotkey_H
Topic: Compressing autohotkey.exe before compiling script causes memory error
Replies: 1
Views: 423

Compressing autohotkey.exe before compiling script causes memory error

When compiling AHK scripts I've found that I receive a memory error if I compress AutoHotkey.exe before I compile (e.g. "The application was unable to start correctly (0xc0000005)"). This is the process: 1) build/compile AHK_H 2) compress AutoHotkey.exe with upx.exe (part of the build step...
by hobboy
19 Aug 2017, 21:26
Forum: Ask For Help
Topic: ADO SQL - time incorrectly adds date in AHK (COM bug?) Topic is solved
Replies: 2
Views: 221

Re: ADO SQL - time incorrectly adds date in AHK (COM bug?) Topic is solved

Thanks, that sorted it out! I'll be careful about my dates and times in the future.

I'll look into ADOSQL as well.
by hobboy
15 Aug 2017, 04:48
Forum: Ask For Help
Topic: ADO SQL - time incorrectly adds date in AHK (COM bug?) Topic is solved
Replies: 2
Views: 221

ADO SQL - time incorrectly adds date in AHK (COM bug?) Topic is solved

I'm doing SQL with ADO using COM. When I retrieve a 'time' from a recordset the value I read is incorrect. For example, my query in AHK will return the time '15/08/2017 3:10:00 PM' instead of '3:10:00 PM'. Note that the added date is simply the today's date, not related to the any date field associa...
by hobboy
02 Jul 2017, 01:33
Forum: AutoHotkey_H
Topic: [Ahk2Exe] Bug - invalid upx flags
Replies: 3
Views: 554

[Ahk2Exe] Bug - invalid upx flags

The -x -r flags in upx don't seem to exist and cause the compression step to fail in Ahk2Exe (perhaps these were for mpress). From the mpress documentation -r is 'do not compress resources' and -x is 'do not manage exceptions (64 bit PE32+)'. The equivalent seems of -r seems to be -compress-resource...
by hobboy
12 Nov 2016, 21:32
Forum: Ask For Help
Topic: Math functions not returning empty string on non-numeric input
Replies: 1
Views: 240

Math functions not returning empty string on non-numeric input

The maths documentation states that these functions generally return empty strings if the input is non-numeric. However I've found this doesn't seem to be the case: #NoEnv #Warn #SingleInstance Force str := "asdf" FileAppend % "str=" str "`n",* FileAppend % "Abs=&q...
by hobboy
16 Oct 2016, 06:48
Forum: Ask For Help
Topic: Carriage return in exception message
Replies: 3
Views: 434

Re: Carriage return in exception message

Thanks, I'll probably extract the error code like masonjar13 does.
by hobboy
14 Oct 2016, 23:56
Forum: Ask For Help
Topic: Empty string variable - AHK accesses environment variable for function calls.
Replies: 5
Views: 989

Re: Trim tries to access environment variable when input is empty string

Thanks for the response Masonjar13. I'd just like to clarify a little more how empty strings in variables work. #Warn username := "a" FileAppend % username "`n",* username := "" FileAppend % username "`n",* The first FileAppend does not give a warning, however...
by hobboy
14 Oct 2016, 21:01
Forum: Ask For Help
Topic: Empty string variable - AHK accesses environment variable for function calls.
Replies: 5
Views: 989

Empty string variable - AHK accesses environment variable for function calls.

#Warn username := "" new_var := Trim(username) FileAppend % new_var "`n",* With the above code I ran into the message "Warning: An environment variable is being accessed; see #NoEnv. Specifically: username" (line 3) Is this the correct behaviour for passing an empty st...
by hobboy
14 Oct 2016, 11:03
Forum: Ask For Help
Topic: Carriage return in exception message
Replies: 3
Views: 434

Carriage return in exception message

try { some_obj := ComObjCreate("ScriptControl1234") } catch err { ; 0x800401F3 - Invalid class string if (err.Message = "0x800401F3 - Invalid class string") MsgBox % "No carriage return" if (err.Message = "0x800401F3 - Invalid class string`r") MsgBox % "...
by hobboy
07 Aug 2016, 05:48
Forum: Scripts and Functions
Topic: [Class] LV_Colors - 1.1.04.01 (2016-05-03)
Replies: 124
Views: 20872

Re: [Class] LV_Colors - 1.1.04.01 (2016-05-03)

I've run into a weird problem. Whenever I activate a window before creating a gui with a listview, the gui doesn't seem to draw the highlighted rows (until selected). Using GuiControl, +Redraw, %_lv_hwnd% after showing the gui fixes the problem, but I'd like to know if I'm missing something here or ...
by hobboy
16 Jul 2016, 01:58
Forum: AutoHotkey v2 Development
Topic: Commands vs Functions
Replies: 85
Views: 13856

Re: Commands vs Functions

I'm in favour of just a function syntax, however I've done programming in other languages before autohotkey so function syntax familiar to me. I can't make a super thorough argument as to why I prefer this except that having one syntax is easier to deal with. I sometimes struggle with certain comman...

Go to advanced search