AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Post your record of longest code lines for single script

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> General Chat
View previous topic :: View next topic  
Author Message
heresy



Joined: 11 Mar 2008
Posts: 291

PostPosted: Wed Jun 11, 2008 10:29 pm    Post subject: Post your record of longest code lines for single script Reply with quote

* Include lines from #Included Scripts
* Include lines from used functions only (even written by others)

* Exclude lines from comments
* Exclude lines from all the gay decorations


let's see how many lines we can handle with AutoHotkey


PS. i'm talking about WORKING script Razz
_________________
Easy WinAPI - Dive into Windows API World
Benchmark your AutoHotkey skills at PlayAHK.com
Back to top
View user's profile Send private message
m^2



Joined: 28 Feb 2008
Posts: 56
Location: Krk, PL

PostPosted: Wed Jun 11, 2008 11:35 pm    Post subject: Reply with quote

Well, it's not AHK, but...
Code:
sendWM_COPYDATA('C'|('D'<<8),strcat(strcat(strcpy(t= malloc(strlen(argv[i+1])+strlen(argv[i+2])+2),argv[i+1]),"\r"),argv[i+2]),CharUpper(argv[i]+2));

If I count correctly, these are 23 functions.
On my wide monitor it doesn't look that bad actually...
_________________
Waiting for Windows 8...
Back to top
View user's profile Send private message
ahklerner



Joined: 26 Jun 2006
Posts: 1205
Location: USA

PostPosted: Thu Jun 12, 2008 12:19 am    Post subject: Reply with quote

here is one.
http://www.autohotkey.net/paste/446
_________________
Back to top
View user's profile Send private message
HugoV



Joined: 27 May 2007
Posts: 499

PostPosted: Fri Jun 13, 2008 10:55 am    Post subject: Reply with quote

Not mine, but if you remove all the empty lines & comments this one
is 4434 lines:

Window packing and growing (sawfish style) +easy window move
http://www.autohotkey.com/forum/viewtopic.php?t=17188
Back to top
View user's profile Send private message
imapow



Joined: 13 Mar 2008
Posts: 162
Location: Trøndelag, Norway

PostPosted: Fri Jun 13, 2008 11:23 am    Post subject: Reply with quote

ahklerner wrote:
Code:
NumPut(type%A_Index%,varg,16*(nParams-A_Index),"Ushort"), type%A_Index%&0x4000=0 ? NumPut(type%A_Index%=8 ? SysAllocString(arg%A_Index%) : arg%A_Index%,varg,16*(nParams-A_Index)+8,type%A_Index%=5||type%A_Index%=7 ? "double" : type%A_Index%=4 ? "float" : "int64") : type%A_Index%=0x400C||type%A_Index%=0x400E ? NumPut(arg%A_Index%,varg,(nParams-A_Index)*16+8) : VarSetCapacity(ref%A_Index%,8,0) . NumPut(&ref%A_Index%,varg,16*(nParams-A_Index)+8) . NumPut(type%A_Index%=0x4008 ? SysAllocString(arg%A_Index%) : arg%A_Index%,ref%A_Index%,0,type%A_Index%=0x4005||type%A_Index%=0x4007 ? "double" : type%A_Index%=0x4004 ? "float" : "int64")

dude?
_________________
-._.-¨¯¨-._.-IM@PΩW-._.-¨¯¨-._.-
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> General Chat All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group