Page 11 of 246

Re: « What's on your mind? »

Posted: 17 Oct 2013, 17:27
by joedf
:( My only goal is to try to make the forum feel more friendly towards the users... :cry:
This is bad quality? :( :oops: : http://ahkscript.org/boards/viewtopic.p ... 2746#p2746
:P ;)

Re: « What's on your mind? »

Posted: 17 Oct 2013, 22:24
by xZomBie
Alibaba wrote:
tidbit wrote:he never said what infection... could be malaria, aids, pink eye, any of these, rabies
Alibaba heals tidbit.
And kills him accidentally by slapping him with the first aid kit.
Ain't tidbit supposed to be dead? Opps I mean braenZ BrAenzZ... :mrgreen:

Re: « What's on your mind? »

Posted: 17 Oct 2013, 22:49
by smorgasbord
@snowflakes
you original PIC as profile pic?

:-p

Re: « What's on your mind? »

Posted: 17 Oct 2013, 23:12
by joedf
lol. @snowflakes & @smorgasbord

Re: « What's on your mind? »

Posted: 18 Oct 2013, 10:20
by Alibaba
SnowFlakes wrote:Ain't tidbit supposed to be dead? Opps I mean braenZ BrAenzZ... :mrgreen:
It hink tidbit is only pretending to be an "anti-zombie". in reality he is one! watch out!

Re: « What's on your mind? »

Posted: 18 Oct 2013, 10:36
by joedf
Oh noes! That means I'm infected!! Aaahhhhhh!!!! :( I'm sorry if I hurt anyone.. :(
/me bites Alibaba's right arm off.

Re: « What's on your mind? »

Posted: 18 Oct 2013, 11:17
by Alibaba
BRAINZZZ!!!! BRAINZZ!! (and new right arm if possible, please)

Re: « What's on your mind? »

Posted: 18 Oct 2013, 12:18
by smorgasbord
optimize this :)

dont break the logic,
but how to make this code get the job done in lesser lines!

i want to know :mrgreen:

Code: Select all

InputBox, prime, enter natural number
k := 2
while mod(Prime, k) != 0
k := K + 1
MsgBox % k = prime ? ("prime") : ("not prime")


Re: « What's on your mind? »

Posted: 18 Oct 2013, 12:33
by joedf

Code: Select all

InputBox, prime, enter natural number
k := 2
while mod(Prime, k) {k+=1}
MsgBox % k = prime ? ("prime") : ("not prime")
??? Okok... I cheated :D
 

Re: « What's on your mind? »

Posted: 18 Oct 2013, 12:36
by smorgasbord
@joedf

prime.ahk (3) : ==> Unexpected "{"
:mrgreen:

Re: « What's on your mind? »

Posted: 18 Oct 2013, 12:46
by kon

Code: Select all

InputBox, prime, enter natural number
Loop, % Sqrt(prime)
	x := !Mod(prime, A_Index + 1) ? t:=1 : ""
MsgBox, % x := !t ? "Prime" : "Not Prime"
It's not the most efficient prime test, just fewest lines i could think of...

Edit:
smorgasbord wrote:dont break the logic,
Oooops, looks like I cheated too. :)

Re: « What's on your mind? »

Posted: 18 Oct 2013, 19:16
by smorgasbord
:oops:

kon wins!!
and kon wins without any cons;
:lol:

i have to* decode that now :cry:

Re: « What's on your mind? »

Posted: 18 Oct 2013, 21:41
by xZomBie
smorgasbord wrote:@snowflakes
you original PIC as profile pic?

:-p
Actually my current avatar(http://ahkscript.org/boards/download/fi ... 842907.jpg) and the one in autohotkey.com(http://www.autohotkey.com/board/uploads ... 1373628823) are different.
Differences you may find is
• The image size.
• My avatar here had been edited. There is a little sunlight in top left corner of the avatar here while the other don't.
• The file size. 8-)

Brains... Braaeeenz.... Braaeiiennnss...!

Re: « What's on your mind? »

Posted: 18 Oct 2013, 23:03
by joedf
lol.

Re: « What's on your mind? »

Posted: 19 Oct 2013, 00:55
by smorgasbord
@snowflakes
I feel sad for you,
@joedf lol

Actually i am using my own pic, seriously. :-p

Re: « What's on your mind? »

Posted: 19 Oct 2013, 23:17
by joedf
Hello! Good people of AutoHotkey!
I have recently managed to have Unicode support for "getch()"
in LibCon, since the special key code to indicate keys like Up, Down, PageUp, etc
is 224 but 'à' in Unicode is 0xE0 which is 224 also, so that was a problem, and there were other
problems too, but finally I fixed the bug, but I don't quite exactly understand why it works now...
I understand it partially, but one weird thing is that I have to absolutely "ungetch()" twice.
But it Absolutely has to be the following for it to function properly:

Code: Select all

ungetch()
ungetchw()  ;or actually name is ungetwch()
View full code here: https://github.com/joedf/LibCon.ahk/blo ... n.ahk#L363
Thanks to anyone that can help me find out the reason of this "phenomenon".
Regards ;)

Re: « What's on your mind? »

Posted: 20 Oct 2013, 14:29
by tomoe_uehara
Beware, Psyduck is here, ready to read your mind!

Re: « What's on your mind? »

Posted: 20 Oct 2013, 14:39
by nnnik
So you know what I'm thinking right now ?
Then tell me.

Re: « What's on your mind? »

Posted: 20 Oct 2013, 14:48
by tomoe_uehara
You're thinking about buying a new smartphone..

Re: « What's on your mind? »

Posted: 20 Oct 2013, 14:53
by nnnik
Whoa Holy sh1t it worked.