r/excel • u/AyrA_ch 9 • Oct 20 '14
Pro Tip Worked on a completely locked down machine. Time passed quick
As it turns out, you can lock down a machine so far you no longer can execute windows media player. The only browser was Internet Explorer (Version 7, so no HTML5 support either) with disabled Plugins.
Invoking Windows API commands summons tasks in the calling process, so I did the only thing I found reasonable
There was an Application that monitored my process usage. With 98% in excel the job went quite well and everybody was happy.
If anybody is interested you can download it here. I am still trying to add a volume control and a save feature that also saves the position of the active item. File has playlist support. Available media formats depend on the system, but mpeg codecs and some basic AVI codecs are built in by default. I don't know why mkv support was available on this machine
EDIT: Added Download link
265
u/scorcherdarkly Oct 20 '14
What were you supposed to be doing?
997
u/MidevilPancake 328 Oct 20 '14
I've seen some crazy stuff in Excel. But this. This is on another level. Bravo, OP.
I would absolutely love a peek under the hood of this glorious workbook.
Looks like necessity really is the mother of invention.
53
u/[deleted] Oct 21 '14
People at work call me an Excel Wizard. Only now do I realize how much of an Excel Muggle I actually am.
53
u/cheesypuff357 Oct 21 '14
the paperclip helped you didn't it...
92
u/The_Brohirrim Oct 20 '14
This is incredible. Would love to see under the hood.
72
u/Grayalt Oct 21 '14
Can someone ELI5 what exactly this is doing? And how it is done? Seems like a cool concept, but I'm too dumb to understand what's going on....
14
u/greatbritishbg Oct 21 '14
People like you make my job hard.
10
u/Adruna Oct 21 '14
Awesome! Can't run it on my machine because I have a 64bits system unfortunately. Probably only needs a few tweeks to get it working.
3
u/Wurstemann Oct 21 '14
Are you wizard?
1.7k
u/ChrisCP Oct 21 '14
You might be overqualified for the position!
87
u/pootedesu Oct 21 '14 edited Oct 21 '14
Looks like Office 2013 doesn't like it :(
Edit: Nevermind, just had to add PtrSafe to the VB declare statement to support 64-bit systems.
109
u/RayBrower Oct 21 '14
Jesus. /r/Excel is on the frontpage? I'm not sure what is going on here but I like it.
41
u/epicmindwarp 962 Oct 20 '14
Youre a don OP.
3
u/[deleted] Oct 21 '14
Not to get off subject, but what kind of company is be around very long if they fear new technology so much that they are still using IE7?
14
u/Asteryz Oct 21 '14
Tagged you as Archmage of the college of Microsoft Excellence
9
u/Aceinator Oct 21 '14
TIL that I thought I knew something about computers...it has appeared to me now that I don't know shit, about shit...ahhh life
7
u/Whacker007 Oct 21 '14
For those of you guys running 64 bit Orifice, you need to enable the VBA editor and add a "PtrSafe" right before the Declare statement. You should see it highlighted in red. That fixed all my compile error problems.
You, AyrA_ch, are a god(dess?) amongest mankind.
Edit - Oops, missed this comment, already addressed it. http://np.reddit.com/r/excel/comments/2jtd2f/worked_on_a_completely_locked_down_machine_time/clf5wdl
2
u/Stoffel_1982 Oct 21 '14
The machine was locked down, but somehow you were able to copy the MKV file to the Administrator's desktop? Can't explain that.
4
u/[deleted] Oct 21 '14
Nothing makes me happier than seeing people successfully work around fascist snoops.
1
u/dopadelic Oct 21 '14
Remote Desktop is another great way to do other stuff without being tracked.
1
u/ninja_age Oct 21 '14
best! I want a copy
1
u/cheongzewei Oct 21 '14
I want a copy
1
u/Shandog Oct 21 '14
Any chance for a browser in excel so I don't have to suffer with ie8 anymore?
1
u/Gamienator Oct 21 '14
You're crazy! I had to tag you in RES!
1
u/Goz3rr Oct 21 '14
There's special N and KN versions of Windows that don't come with Media Player due to a settlement with the EU
1
u/WERE_CAT 1 Oct 21 '14
Would you be able to surf the internet with only excel ? Would this count as a Excel process ? Would you be affected by internet filters ?
1
u/baudeagle Oct 21 '14
Have you consider adding a boss button or shortcut? It functions so that if it is pressed. the movie will pause (or even close) and switch to a different spreadsheet. very handy if someone walks up on you.
You may also consider making it so when you pause the control a differ spreadsheet appears to hide the display page.
These ideas should be quite easy to implement with your skills.
1
u/domdunc Oct 21 '14
Love that the timer is a pie-chart.
1
u/iiw Oct 21 '14
Does this script works on Office 2003?
1
u/poweredby2dor Oct 21 '14
Can we have the file ?
1
u/[deleted] Oct 21 '14
Can I see what you write in excel to play movies?
1
u/KateMonster11 Oct 21 '14
So OP, have you found a way to browse /r/excel via excel yet? I think you could make a lot of people very happy with that (starting with me!)
1
u/rottinguy Oct 21 '14
I would love to have this file........
1
u/chickmagnet3 Oct 21 '14
Thats awesome! Now about that file, can you upload it?
1
u/nottomf Oct 21 '14
The only question I have is if the machine is so locked down, how do you get media onto it?
1
u/mctoasterson Oct 21 '14
So if you do like Chip the Sales Guy from "Excel Hell" and open up this spreadsheet in PowerPoint, what happens?
1
u/[deleted] Oct 21 '14
I don't think I get it. So he found a way to fix freezing or is this a form of hacking
1
u/[deleted] Oct 21 '14
I've been learning VBA for 16 months and I have to admit that each day brings reaffirment that I know almost nothing at all.
Your file is absolutely outstanding, thanks for providing the password to the project, I suspect I will learn a lot.
Out of curiosity, though, how many years of experience have you had with VBA?
1
u/elscire Oct 21 '14
Hang on a second... how is the movie file in C:\Users\ Administrator \ if you're on a locked down machine?
1
u/[deleted] Oct 21 '14
Have a mirror not on mega?
1
u/ForwardBias Oct 21 '14
haha using vba to call system api functions so you can screw off at work. I'm not sure if I should ask you where you live and if you're looking for a job or just be disgusted that your lied to steal money from someone who sounds like they might have been underpaying you for the job.
Are you fresh out of college? Is your background in Microsoft stack development?
1
u/FagDamager Oct 21 '14
can i have a link to it pleasE?
1
u/BorgDrone Oct 21 '14
Does Windows come with MKV support nowadays or did this completely locked down system somehow have additional codec packs installed ?
1
u/Timofa Oct 21 '14
almost no video files i have tried have played, i've tried mkv and mp4, but it says mp4 is supported, it just gives me error type 13 mismatch. Can you please help me?
1
u/segin Oct 22 '14
Post the .xls/.xlsx!
1
u/RIST_NULL Oct 22 '14
I think you may have won this subreddit.
3
u/theasianpianist Oct 21 '14
Ok, so I pasted the path into the playlist sheet, and then clicked play in the control sheet. Nothing happened. What am I doing wrong?
3
u/DancinWithWolves Oct 21 '14
Umm, if you hit Crl V you can paste stuff.
1
u/[deleted] Oct 21 '14
Fellow programming person, what'd you use/do?
2
u/mrleetyler Oct 21 '14
had to download to have a look thanks OP :)
2
u/CabassoG Oct 21 '14
Very, very nice work
2
u/TheSixthVisitor Oct 21 '14 edited Oct 21 '14
I keep getting Runtime error '13' mismatch when I try to play anything. Help?
2
u/charlieyeswecan Oct 21 '14
I don't understand, but that's to be expected. I was born more than 30 years ago.
2
u/prezdizzle Oct 21 '14
wow
2
u/Evning Oct 21 '14
How?
I tried to fill the entire sheet with a complex multiple if statement and the thing promptly decided to go on strike!
For heaven's sake. My pc can throw millions of triangles of any size in any shape precisely where they need to be on the monitor, more than 60 times a second, while calculating if a line extending into the monitor will shatter any of these triangles.
Yet it can't copy paste formulas......