Search found 270 matches

by RUNIE
31 Jan 2018, 11:19
Forum: Ask For Help
Topic: BUG Report
Replies: 6
Views: 148

Re: BUG Report

Why do you have a comma at the end of the line?
E: is this your script or a bundled include?
by RUNIE
14 Jan 2018, 22:56
Forum: Ask For Help
Topic: Break a loop inside a loop with a key Topic is solved
Replies: 7
Views: 122

Re: Break a loop inside a loop with a key Topic is solved

Use the GetKeyState function.
by RUNIE
14 Jan 2018, 19:43
Forum: Scripts and Functions
Topic: [Competition] AHK dwitter!
Replies: 47
Views: 2218

Re: [Competition] AHK dwitter!

Aaaaand the winner is...

Cogs by waetherman!

Image

We'll talk on Discord ;)
by RUNIE
09 Jan 2018, 09:17
Forum: Scripts and Functions
Topic: [Competition] AHK dwitter!
Replies: 47
Views: 2218

Re: [Competition] AHK dwitter!

My attempt at capturing it as a gif didn't go too well... maybe the software (LICEcap) I'm using is trying to compress it too much.
by RUNIE
09 Jan 2018, 06:37
Forum: Scripts and Functions
Topic: [Competition] AHK dwitter!
Replies: 47
Views: 2218

Re: [Competition] AHK dwitter!

Wibbly wobbly infinite moving stroby hallway

Code: [Select all]GeSHi © Codebox Plus

u(s=0){
while 63>++s
a:=w*(s-1)/128,fr(a+s(t*-2+s/7)*32,a+s-128+a/3,w-a*2,w-a*2+128,r(255,255,255,(s(t*-2+s/24)+1.1)/2.2))
}


Character count: 127

You'll have to run it to see, it really doesn't capture well on gifs :D
by RUNIE
04 Jan 2018, 12:20
Forum: Scripts and Functions
Topic: [Competition] AHK dwitter!
Replies: 47
Views: 2218

Re: [Competition] AHK dwitter!

rommmcek wrote:Critical mass

Code: [Select all]GeSHi © Codebox Plus

u(){
i:=2*r:=A_Index/2
fc(0,0,r,i)
fc(w-i,0,r,i)
fc(0,h-i,r,i)
fc(w-i,h-i,r,i)
if i<100
Sleep 1
if i>5000
pause
}
123 char (125)

Super cool :D
by RUNIE
04 Jan 2018, 03:04
Forum: Scripts and Functions
Topic: [Competition] AHK dwitter!
Replies: 47
Views: 2218

Re: [Competition] AHK dwitter!

waetherman wrote:Look at my balls

Got inspired and made this :D

Code: [Select all] [Expand]GeSHi © Codebox Plus



Character count: 127 (137 with indenting)
by RUNIE
03 Jan 2018, 03:22
Forum: Tutorials
Topic: jeeswg's benchmark tests
Replies: 51
Views: 1791

Re: jeeswg's benchmark tests

Yeah, that's an old version I barely even used. This is what I use now: Class Timer { __New() { static instance := new Timer() if instance return instance class := this.__Class %class% := this DllCall("QueryPerformanceFrequency", "Int64P", F) this.Freq := F this.Timers := {} } Cu...
by RUNIE
02 Jan 2018, 02:17
Forum: Scripts and Functions
Topic: [Competition] AHK dwitter!
Replies: 47
Views: 2218

Re: [Competition] AHK dwitter!

Color pulsar u(d=3,x=0){ while 256>++x,y=0 while 3>++y fc(s(t*4-x/8+pi*y)*d*x+w/2,c(t*4-x/8+pi*y)*d*x+w/2,11,h(t/4+y/2)) } Character count: 110, 115 with indenting I think there's way too much color for a .gifv (let alone .gif) to show it properly, run the code to see it properly :P https://i.imgur...
by RUNIE
01 Jan 2018, 10:31
Forum: Offtopic
Topic: banned from discord lol
Replies: 6
Views: 273

Re: banned from discord lol

If you'd have read the rules and help section (which we explicitly notify new users to do), you would have seen this - Being disrespectful to our volunteering Helpers or Staff because they won't help you with your script will get you insta-banned. Them being in the Helpers role does not make them ob...
by RUNIE
29 Dec 2017, 19:44
Forum: Offtopic
Topic: OOP design patterns in AHK
Replies: 9
Views: 358

Re: OOP design patterns in AHK

Yeah I was going to use the one with new and delete, but it caused annoying issues when mixed with my IndirectReference class because the bases changed. However if you don't mess with bases or extend more layers, it'll work.
by RUNIE
29 Dec 2017, 01:09
Forum: Scripts and Functions
Topic: [Competition] AHK dwitter!
Replies: 47
Views: 2218

Re: [Competition] AHK dwitter!

Cube Character count: 138 :D u(){ f(),q=pi*2/3 loop,3 dl(j+c(d*q+t-u:=q/2)*j:=w/2,k:=h*2/3,n:=j+c(d*q+t)*j,l:=h/3)dl(j,0,n,l)dl(j,h,m:=j+c(++d*q+t-u)*j,k)dl(n,l,m,k) } Apparently you don't even need commas between function calls! This is some amazing compression. 138 chars! :clap:
by RUNIE
28 Dec 2017, 14:20
Forum: Scripts and Functions
Topic: [Competition] AHK dwitter!
Replies: 47
Views: 2218

Re: [Competition] AHK dwitter!

Example entry

Code: [Select all]GeSHi © Codebox Plus

u(){
f(r(,20,40)),f=0
while 17>++f,p:=s(t*3-f/9),a=0
loop 16
fc(w/2+s(r:=p+a++*pi/8)*f*h/35,h/2+c(r)*f*h/35,4,h(t/2+(16-f)/16))
}

Character count: 129 (136 with indenting)

Result:
Image
by RUNIE
28 Dec 2017, 14:16
Forum: Scripts and Functions
Topic: [Competition] AHK dwitter!
Replies: 47
Views: 2218

[Competition] AHK dwitter!

So I recently stumbled upon https://www.dwitter.net/ and it really inspired me to do something similar. I decided to try it out in AutoHotkey, and I've made some boilerplate so anyone can jump straight into doing this without worrying about GDI, game loop etc! The code is on GitHub here: https://git...
by RUNIE
25 Dec 2017, 22:19
Forum: Tutorials
Topic: OOP design patterns in AHK
Replies: 8
Views: 1137

Re: OOP design patterns in AHK

This is a continuation of the above, which also supports __Delete. new Top Class Top extends Bottom { __New() { msgbox % A_ThisFunc } __Delete() { msgbox % A_ThisFunc } } Class Bottom { __NewInit := Bottom.__New.Call(this) __New() { msgbox % A_ThisFunc if this.base.HasKey("__Delete") this....
by RUNIE
25 Dec 2017, 21:59
Forum: Tutorials
Topic: OOP design patterns in AHK
Replies: 8
Views: 1137

Re: OOP design patterns in AHK

Name: Run multiple __New methods automatically in an extended class AHK only: Yes. Description: If you extend a class, the __New method in the base class will not run if it's overwritten in the class that extends it. Use-cases: If you want to replicate how for example python handles inheritance. ne...
by RUNIE
25 Dec 2017, 00:14
Forum: Ask For Help
Topic: stupid easy if statement syntax question
Replies: 3
Views: 96

Re: stupid easy if statement syntax question

Because apple is -8 and abs(8) is 8.
by RUNIE
28 Nov 2017, 17:54
Forum: Offtopic
Topic: « What's on your mind? » Topic is solved
Replies: 3734
Views: 395173

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

Also failed A* once :|
by RUNIE
27 Nov 2017, 13:40
Forum: Ask For Help
Topic: Password generator Topic is solved
Replies: 1
Views: 56

Re: Password generator Topic is solved

This generates random strings. msgbox(RandomString(10)) return msgbox(text) { msgbox % text } RandomString(len := 5) { static choices, init := %A_ThisFunc%() if !init { choices := [] for index, pair in [[48, 57], [65, 90], [97, 122]] Loop % pair.2 - pair.1 choices.push(Chr(pair.1 + A_Index - 1)) } L...

Go to advanced search