« What's on your mind? »

Talk about anything
User avatar
joedf
Posts: 7646
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada
Contact:

Re: « What's on your mind? »

17 Oct 2013, 17:27

:( 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 ;)
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x8GB G.Skill RipJaws V - DDR4 3280 MHz | [About Me] | [ASPDM - StdLib Distribution]
[Populate the AHK MiniCity!] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library] | [About the AHK Foundation]
User avatar
xZomBie
Posts: 256
Joined: 02 Oct 2013, 02:57

Re: « What's on your mind? »

17 Oct 2013, 22:24

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:
User avatar
smorgasbord
Posts: 490
Joined: 30 Sep 2013, 09:34

Re: « What's on your mind? »

17 Oct 2013, 22:49

@snowflakes
you original PIC as profile pic?

:-p
John ... you working ?
User avatar
joedf
Posts: 7646
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada
Contact:

Re: « What's on your mind? »

17 Oct 2013, 23:12

lol. @snowflakes & @smorgasbord
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x8GB G.Skill RipJaws V - DDR4 3280 MHz | [About Me] | [ASPDM - StdLib Distribution]
[Populate the AHK MiniCity!] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library] | [About the AHK Foundation]
Alibaba
Posts: 479
Joined: 29 Sep 2013, 16:15
Location: Germany

Re: « What's on your mind? »

18 Oct 2013, 10:20

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!
"Nothing is quieter than a loaded gun." - Heinrich Heine
User avatar
joedf
Posts: 7646
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada
Contact:

Re: « What's on your mind? »

18 Oct 2013, 10:36

Oh noes! That means I'm infected!! Aaahhhhhh!!!! :( I'm sorry if I hurt anyone.. :(
/me bites Alibaba's right arm off.
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x8GB G.Skill RipJaws V - DDR4 3280 MHz | [About Me] | [ASPDM - StdLib Distribution]
[Populate the AHK MiniCity!] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library] | [About the AHK Foundation]
Alibaba
Posts: 479
Joined: 29 Sep 2013, 16:15
Location: Germany

Re: « What's on your mind? »

18 Oct 2013, 11:17

BRAINZZZ!!!! BRAINZZ!! (and new right arm if possible, please)
"Nothing is quieter than a loaded gun." - Heinrich Heine
User avatar
smorgasbord
Posts: 490
Joined: 30 Sep 2013, 09:34

Re: « What's on your mind? »

18 Oct 2013, 12:18

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")

John ... you working ?
User avatar
joedf
Posts: 7646
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada
Contact:

Re: « What's on your mind? »

18 Oct 2013, 12:33

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
 
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x8GB G.Skill RipJaws V - DDR4 3280 MHz | [About Me] | [ASPDM - StdLib Distribution]
[Populate the AHK MiniCity!] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library] | [About the AHK Foundation]
User avatar
smorgasbord
Posts: 490
Joined: 30 Sep 2013, 09:34

Re: « What's on your mind? »

18 Oct 2013, 12:36

@joedf

prime.ahk (3) : ==> Unexpected "{"
:mrgreen:
John ... you working ?
kon
Posts: 1756
Joined: 29 Sep 2013, 17:11

Re: « What's on your mind? »

18 Oct 2013, 12:46

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. :)
User avatar
smorgasbord
Posts: 490
Joined: 30 Sep 2013, 09:34

Re: « What's on your mind? »

18 Oct 2013, 19:16

:oops:

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

i have to* decode that now :cry:
John ... you working ?
User avatar
xZomBie
Posts: 256
Joined: 02 Oct 2013, 02:57

Re: « What's on your mind? »

18 Oct 2013, 21:41

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...!
User avatar
joedf
Posts: 7646
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada
Contact:

Re: « What's on your mind? »

18 Oct 2013, 23:03

lol.
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x8GB G.Skill RipJaws V - DDR4 3280 MHz | [About Me] | [ASPDM - StdLib Distribution]
[Populate the AHK MiniCity!] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library] | [About the AHK Foundation]
User avatar
smorgasbord
Posts: 490
Joined: 30 Sep 2013, 09:34

Re: « What's on your mind? »

19 Oct 2013, 00:55

@snowflakes
I feel sad for you,
@joedf lol

Actually i am using my own pic, seriously. :-p
John ... you working ?
User avatar
joedf
Posts: 7646
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada
Contact:

Re: « What's on your mind? »

19 Oct 2013, 23:17

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 ;)
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x8GB G.Skill RipJaws V - DDR4 3280 MHz | [About Me] | [ASPDM - StdLib Distribution]
[Populate the AHK MiniCity!] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library] | [About the AHK Foundation]
User avatar
nnnik
Posts: 4461
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: « What's on your mind? »

20 Oct 2013, 14:39

So you know what I'm thinking right now ?
Then tell me.
Recommends AHK Studio
User avatar
nnnik
Posts: 4461
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: « What's on your mind? »

20 Oct 2013, 14:53

Whoa Holy sh1t it worked.
Recommends AHK Studio

Return to “Offtopic”

Who is online

Users browsing this forum: No registered users and 34 guests