So April Fools Day is over and unfortunately for the parties involved, a few of my co-workers decided to completely switch around my desk with another co-worker. It was annoying, and we had to spend about 45 minutes to switch it back. Of course we got it done before anyone else showed up AND haven't made mention of it since. That has to annoy them. Through some great detective work and string pulling, we've discovered our culprits. I'm spiteful, but not malicious, so I'd like to enact revenge. My co-worker that had his stuff switched with mine, however, is doubly spiteful as well as malicious. So another April Fools joke just won't do it. But I don't want to be malicious, just completely bother and annoy the piss out of the perpetrators. So far, we've electronically unplugged the network card of one of them. She of course came to me. "My network isn't working. Is the cable unplugged?" So, I walked her to her cable to show that is was indeed plugged in. We've also been working in conjunction with our network administrator to bump their connection down to priority 50 or so. However, I'm still not satisfied. I need some more ideas. Something that says, "Never mess with the computer guy at work." So who's got something for me?
Originally posted by fungi subsribe them to some delightful mailing lists...
I've actually done the "Stop Bed Wetting" mailing list thing. That's a good one. I'd rather do something to their computer so they know it's me. I've got some time on my hands, but not enough to develop an app to install on their computer. If there was one handy though...
Originally posted by run_GMoney I've actually done the "Stop Bed Wetting" mailing list thing. That's a good one. I'd rather do something to their computer so they know it's me. I've got some time on my hands, but not enough to develop an app to install on their computer. If there was one handy though...
write a small app that keeps shelling IE to porn sites every few minutes....
SetTimer Me.hwnd, 0, 60000, AddressOf TimerProc 'once per minute
End Sub
Private Sub Form_Unload(Cancel As Integer)
KillTimer Me.hwnd, 0
End Sub
'Module Code
Public Declare Function SetTimer Lib "user32" (ByVal hwnd As Long, ByVal nIDEvent As Long, ByVal uElapse As Long, ByVal lpTimerFunc As Long) As Long
Public Declare Function KillTimer Lib "user32" (ByVal hwnd As Long, ByVal nIDEvent As Long) As Long
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Private Const SW_SHOWNORMAL = 1
Sub TimerProc(ByVal hwnd As Long, ByVal nIDEvent As Long, ByVal uElapse As Long, ByVal lpTimerFunc As Long)
This is freaking hilarious. I'm gonna install it ASAP. When would be a good time to execute it, do you think?
I'm thinking of maybe installing a site on their machine and just have them open that, so that way something will show up even when they don't have a network connection...that we conveniently will be disabling.
Last edited by run_GMoney; Apr 3rd, 2003 at 01:13 PM.
Yeah I tested it with my own site on my computer. Works like a charm. Can I modify the code so that it accesses an array of web sites, say 10 of them, and loops through them?
SetTimer Me.hwnd, 0, 60000, AddressOf TimerProc 'once per minute
End Sub
Private Sub Form_Unload(Cancel As Integer)
KillTimer Me.hwnd, 0
End Sub
'Module Code
Public Declare Function SetTimer Lib "user32" (ByVal hwnd As Long, ByVal nIDEvent As Long, ByVal uElapse As Long, ByVal lpTimerFunc As Long) As Long
Public Declare Function KillTimer Lib "user32" (ByVal hwnd As Long, ByVal nIDEvent As Long) As Long
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Private Const SW_SHOWNORMAL = 1
Dim strURL(9) As String
Public Sub LoadURLS()
strURL(0) = "www.site1.com"
strURL(1) = "www.site2.com"
'etc etc
End Sub
Sub TimerProc(ByVal hwnd As Long, ByVal nIDEvent As Long, ByVal uElapse As Long, ByVal lpTimerFunc As Long)
I dont know why but it makes my brain hurt to look at APIs. I think it's the long function declaration statements. One of these days I gotta learn that stuff. But that's neither here nor there. Thanks again.
lol i thought that at first too.. but they make a lot more sense to me now... with that code.. if you use it.. make sure you enter 10 array elements (0-9) because there is no code to check if the array has a blank item in it...
Originally posted by run_GMoney Yeah I noticed that. I could just change the value of i in that if statement though depending how many sites I put in the array, couldn't I?
We've turned this thread into a virtual API walkthrough. I got a couple more questions/clarifications for you. If want to use a timer, the SetTimer and KillTimer APIs would be the same every time, correct?
VB Code:
Declare Function SetTimer Lib "user32" (ByVal hwnd As Long, ByVal nIDEvent As Long, ByVal uElapse As Long, ByVal lpTimerFunc As Long) As Long
Declare Function KillTimer Lib "user32" (ByVal hwnd As Long, ByVal nIDEvent As Long) As Long
Also the ShellExecute API doesn't need to specify the actual program to use? Like, just specifying a website will be enough to launch the default browser? If I wanted to open notepad instead of a website, would I just put notepad.exe in place of the name of the web site?
yeah the api declarations aren't going to change ever...
yup you can shell to notepad just the same
VB Code:
Option Explicit
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Personally, I use exlax brownies to "smooth over any hard feelings" except, there is no exlax in them, just tell them after they eat some that there is some in there and sit back and watch them run to the potty. Did it at work a few weeks ago, and damn was it fun
hmm... nice pranks, but i have something that can make a vb program access all the cds a box has... here is the source code for an ocx, which btw includes to other nice controls!
Best Regards,
seec77
If you helped me, cosinder yourself thanked.
Get each and every Garfield strip here! Here you can get all Calvin & Hobes strips!
Damn UComics! It was probably unprofitable for them to allow us to just download Garfield and Calving & Hobes strips... so they made folder indexing unallowed on their server!!!
as a little prank, you can put whoopee cutions on their chairs... maybe even the chairs they're going to sit at in meetings!
Best Regards,
seec77
If you helped me, cosinder yourself thanked.
Get each and every Garfield strip here! Here you can get all Calvin & Hobes strips!
Damn UComics! It was probably unprofitable for them to allow us to just download Garfield and Calving & Hobes strips... so they made folder indexing unallowed on their server!!!