Search found 41 matches
- 22 Apr 2018, 07:02
- Forum: Announcements
- Topic: Test build - Obj.Count(), OnError(), long paths, experimental switch-case
- Replies: 18
- Views: 19854
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!
- 24 Mar 2018, 10:44
- Forum: Ask for Help (v1)
- Topic: DllCall causes AHK to crash with Access Violation Topic is solved
- Replies: 8
- Views: 2663
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 terminator) (Speci...
- 24 Mar 2018, 02:50
- Forum: Ask for Help (v1)
- Topic: DllCall causes AHK to crash with Access Violation Topic is solved
- Replies: 8
- Views: 2663
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 "Unhandled exception at 0x0041BE79 in ...
- 03 Nov 2017, 23:16
- Forum: About This Community
- Topic: Documentation website upgrade
- Replies: 15
- Views: 7194
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
- 03 Nov 2017, 20:58
- Forum: About This Community
- Topic: Documentation website upgrade
- Replies: 15
- Views: 7194
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...
- 03 Nov 2017, 20:35
- Forum: Wish List
- Topic: ahk still continued?
- Replies: 14
- Views: 5557
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...
- 24 Sep 2017, 20:33
- Forum: Wish List
- Topic: Add directive #ExitAppOnUnhandledException Topic is solved
- Replies: 1
- Views: 1421
Add directive #ExitAppOnUnhandledException Topic is solved
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...
- 10 Sep 2017, 21:51
- Forum: Ask for Help (v1)
- Topic: How to ExitApp on Exception?
- Replies: 1
- Views: 985
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...
- 10 Sep 2017, 21:36
- Forum: Ask for Help (v1)
- Topic: How to ExitApp on Exception?
- Replies: 1
- Views: 985
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...
- 08 Sep 2017, 05:30
- Forum: AutoHotkey_H
- Topic: Compressing autohotkey.exe before compiling script causes memory error
- Replies: 1
- Views: 2224
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 in Visual...
- 19 Aug 2017, 21:26
- Forum: Ask for Help (v1)
- Topic: ADO SQL - time incorrectly adds date in AHK (COM bug?) Topic is solved
- Replies: 2
- Views: 1303
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.
I'll look into ADOSQL as well.
- 15 Aug 2017, 04:48
- Forum: Ask for Help (v1)
- Topic: ADO SQL - time incorrectly adds date in AHK (COM bug?) Topic is solved
- Replies: 2
- Views: 1303
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...
- 02 Jul 2017, 01:33
- Forum: AutoHotkey_H
- Topic: [Ahk2Exe] Bug - invalid upx flags
- Replies: 3
- Views: 2237
[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...
- 12 Nov 2016, 21:32
- Forum: Ask for Help (v1)
- Topic: Math functions not returning empty string on non-numeric input
- Replies: 1
- Views: 906
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=" Abs(str) "`n",* FileAppend % "Ceil=...
- 16 Oct 2016, 06:48
- Forum: Ask for Help (v1)
- Topic: Carriage return in exception message
- Replies: 3
- Views: 1467
Re: Carriage return in exception message
Thanks, I'll probably extract the error code like masonjar13 does.
- 14 Oct 2016, 23:56
- Forum: Ask for Help (v1)
- Topic: Empty string variable - AHK accesses environment variable for function calls.
- Replies: 5
- Views: 3804
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 the 2nd does. So if I assign a variable...
- 14 Oct 2016, 21:01
- Forum: Ask for Help (v1)
- Topic: Empty string variable - AHK accesses environment variable for function calls.
- Replies: 5
- Views: 3804
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 string variable to a function? S...
- 14 Oct 2016, 11:03
- Forum: Ask for Help (v1)
- Topic: Carriage return in exception message
- Replies: 3
- Views: 1467
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 % "With carriage return." } I was trying to matc...
- 07 Aug 2016, 05:48
- Forum: Scripts and Functions (v1)
- Topic: [Class] LV_Colors - 1.1.05.00 (2024-03-16)
- Replies: 151
- Views: 70060
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 ...
- 16 Jul 2016, 01:58
- Forum: AutoHotkey Development
- Topic: Commands vs Functions
- Replies: 85
- Views: 33791
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...