The Unofficial Macro Scheduler Puzzler #9
Moderators: Dorian (MJT support), JRL
Re: The Unofficial Macro Scheduler Puzzler #9
Jäklar !!
learned a few things in this topic.
off-topic:
i can not see the snippets in the previous postings, I get "no such snippet"
I see only a green vertical line and the number 1
But the normal postings en scripts i can see.
I ve tried in IE en Firefox
learned a few things in this topic.
off-topic:
i can not see the snippets in the previous postings, I get "no such snippet"
I see only a green vertical line and the number 1
But the normal postings en scripts i can see.
I ve tried in IE en Firefox
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: The Unofficial Macro Scheduler Puzzler #9
Looks like those snippets were deleted.Djek wrote:Jäklar !!
learned a few things in this topic.
off-topic:
i can not see the snippets in the previous postings, I get "no such snippet"
I see only a green line and the number 1
But the normal postings en scripts i can see.
I ve tried in IE en Firefox
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: The Unofficial Macro Scheduler Puzzler #9
Yes, but I'd like to see the result being returned to a variable as that would be the usual use-case and you'd normally want to use the new value later in the script. Just showing it in a message box isn't very useful. But I'm not the esteemed panel so that's just my 2p.hoangvo81 wrote:this is just stating the fact that its a one liner really.
While it's a fun challenge to reduce to the smallest number of lines, - and we can ignore readability in pursuit of that challenge - I'd still like it to be useful. IMO that needs the result to be in a variable.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
Re: The Unofficial Macro Scheduler Puzzler #9
Sorry, I managed to clean out the two snippets, it looked ok on the screen so I did not realize the problem. Can I put them back or will that not work with links etc?
Just to complete my learning experience,
If one want message:
View Snippet Page
If one want variable:
View Snippet Page
Just to complete my learning experience,
If one want message:
View Snippet Page
If one want variable:
View Snippet Page
Re: The Unofficial Macro Scheduler Puzzler #9
beautiful solution hagchr.
I don't think there's a way to get it down to one line code using your solution, but i am sure someone will prove me wrong
I don't think there's a way to get it down to one line code using your solution, but i am sure someone will prove me wrong
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: The Unofficial Macro Scheduler Puzzler #9
My solution is very similar but with a slightly different and shorter algorithm:
Just 162 characters in all
Code: Select all
Let>BinVal=10111010001000010
VBEval>Execute("bin=""%BinVal%"":Dec=0:For x=1 to Len(bin):Dec=Dec+(Cint(Mid(bin,Len(bin)-x+1,1))*(2^(x-1))):Next"),nul
VBEval>Dec,nDecVal
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
Re: The Unofficial Macro Scheduler Puzzler #9
Congratulations and 15 points go to hagchr. Least number of lines (2)
Congratulations and 15 points go to Grovkillen. Least number of characters. (151)
Honorable mention to Marcus. (2) lines and (137) characters. Unfortunately as part of the mjtnet staff, it's incongruous for him to receive forum points.
I'm impressed by everybody's efforts
Wait... we have a new forum... I don't see any way to award points nor do I have any to bestow. Am I missing something?
Congratulations and 15 points go to Grovkillen. Least number of characters. (151)
Honorable mention to Marcus. (2) lines and (137) characters. Unfortunately as part of the mjtnet staff, it's incongruous for him to receive forum points.
I'm impressed by everybody's efforts
Wait... we have a new forum... I don't see any way to award points nor do I have any to bestow. Am I missing something?
Re: The Unofficial Macro Scheduler Puzzler #9
The point system (board module?) does not seem to have been included... Maybe its not compatible with the new forum? If so that would be too bad as it will be missed. What's the story there Marcus?JRL wrote:Wait... we have a new forum... I don't see any way to award points nor do I have any to bestow. Am I missing something?
Congratulations to all posters on this post... quiet an amazing competition and great creative ideas out there, very impressive... and a big reason why I like to read the forums daily and keep up with things... though occasionally vacations do happen and I just can't get here. Thanks for posting these Puzzlers JRL, they are a hoot!
jpuziano
Note: If anyone else on the planet would find the following useful...
[Open] PlayWav command that plays from embedded script data
...then please add your thoughts/support at the above post -
Note: If anyone else on the planet would find the following useful...
[Open] PlayWav command that plays from embedded script data
...then please add your thoughts/support at the above post -
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: The Unofficial Macro Scheduler Puzzler #9
Sorry, yes, that points system was old and no longer compatible. I've been looking for a decent one to replace it but haven't found anything that really fits yet.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?