AutoHotkey Community

It is currently May 23rd, 2012, 11:12 pm

All times are UTC [ DST ]


Search found 31 matches
Search these results:

Author Message

 Forum: Scripts   Topic: lib_json [AHK_L] Json<--->Object

Posted: November 23rd, 2011, 2:02 pm 

Replies: 49
Views: 6093


As it's been pointed out, my implementation has some bug.
I can't really find the time to fix its problems, so I prefer going with a more standard implementation, even though it's slower. :S
Not that I'm happy with this.

 Forum: Scripts   Topic: lib_json [AHK_L] Json<--->Object

Posted: November 22nd, 2011, 9:30 pm 

Replies: 49
Views: 6093


Have you compared the performance? It should be able to process a few thousand lines with no noticeable delay IMO. Tested with { "version": "1.0", "encoding": "UTF-8", "feed": { "xmlns": "http://www.w3.org/2005/Atom", &...

 Forum: Scripts   Topic: lib_json [AHK_L] Json<--->Object

Posted: November 22nd, 2011, 6:55 pm 

Replies: 49
Views: 6093


In these months I've learnt how rewriting code from scratch can be hard :) Now I'm using WSH to call Javascript and this library for parsing https://github.com/douglascrockford/JSON-js wsh := ComObjCreate("MSScriptControl.ScriptControl") if (!wsh){ Msgbox, % "err1...

 Forum: Scripts   Topic: lib_json [AHK_L] Json<--->Object

Posted: May 13th, 2011, 4:24 pm 

Replies: 49
Views: 6093


The fix won't be that fast :oops:

 Forum: Scripts   Topic: lib_json [AHK_L] Json<--->Object

Posted: April 12th, 2011, 8:11 am 

Replies: 49
Views: 6093


If the file contains nothing secret, please post it on the pastebin
http://www.autohotkey.net/paste/
or send it to my email address (email button here) so I can see the case.
There can be some performance loss in the load process.

 Forum: Suggestions   Topic: a .= (condition ? a [: b])

Posted: March 9th, 2011, 9:15 am 

Replies: 11
Views: 817


That could also be a ||= b, as in other languages

 Forum: Offtopic   Topic: creating DLLs

Posted: March 7th, 2011, 9:45 am 

Replies: 12
Views: 561


Poker player career? I don't see a stable future in it. :?
Am I wrong?

 Forum: Offtopic   Topic: creating DLLs

 Post subject: Re: creating DLLs
Posted: March 3rd, 2011, 6:01 pm 

Replies: 12
Views: 561


guest3456 wrote:
i guess i'm just scratching the itch of curiousity

Curiosity drives good programmers. 8)

 Forum: Offtopic   Topic: creating DLLs

Posted: March 3rd, 2011, 2:48 pm 

Replies: 12
Views: 561


DLL TEMPLATE in C for GCC file: dll.c #include <windows.h> #define EXPORT __declspec(dllexport) EXPORT int f(){ return 0; } file: dll.def LIBRARY dll.dll EXPORTS f execute this in command prompt (cmd.exe) substitute path\to\ with wherever you installed GCC in. path\to\mingw...

 Forum: Suggestions   Topic: a .= (condition ? a [: b])

Posted: March 2nd, 2011, 10:19 am 

Replies: 11
Views: 817


I'm using this at the moment my_if(k,v) { return (k ? v : "") } modifiers := "" . my_if(vCtrl, "Ctrl") . my_if(vAlt, "Alt") . my_if(vShift, "Shift") . my_if(vWin, "Win") hotkey := my...

 Forum: Suggestions   Topic: a .= (condition ? a [: b])

 Post subject: a .= (condition ? a [: b])
Posted: March 1st, 2011, 5:54 pm 

Replies: 11
Views: 817


What about making third part of the ternary operator optional with a null default ("") ?

v .= (condition ? "a" )
Add "a" only if condition, do nothing otherwise.

 Forum: Scripts   Topic: lib_json [AHK_L] Json<--->Object

Posted: February 25th, 2011, 11:59 am 

Replies: 49
Views: 6093


8) I'll sort that out, as I find the time.

 Forum: Scripts   Topic: lib_json [AHK_L] Json<--->Object

Posted: February 24th, 2011, 9:21 am 

Replies: 49
Views: 6093


:? What is that, just a repository, a challenge, a prize?

 Forum: Scripts   Topic: lib_json [AHK_L] Json<--->Object

Posted: February 14th, 2011, 9:44 am 

Replies: 49
Views: 6093


Fixes added, still retaining the old c/autoit comment/escapechar style for a while, until I feel the lib is stable enough for me to change it back.
Added credits in the post and on the site.

 Forum: Scripts   Topic: lib_json [AHK_L] Json<--->Object

Posted: February 12th, 2011, 4:57 pm 

Replies: 49
Views: 6093


Yes, it is. spacing , spacer and indent are declared as parameters in JSON_save(), but they are never used. So, I figured out you originally intended them to be passed to JSON_to(). Aaaahahhaha xD damn you are right, that's when you spend too much time on the same code and at a certain point you ev...
Sort by:  
Page 1 of 3 [ Search found 31 matches ]


All times are UTC [ DST ]


Powered by phpBB® Forum Software © phpBB Group