 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Ian
Joined: 15 Jul 2007 Posts: 1157 Location: Enterprise, Alabama
|
Posted: Thu Jul 19, 2007 1:26 am Post subject: Something to annoy people |
|
|
Whenever some sends a KeyStroke (i.e. a) it sends a MsgBox. Try it out.
| Code: | a::
MsgBox, Get away from my computer.
Return
b::
MsgBox, Get away from my computer.
Return
c::
MsgBox, Get away from my computer.
Return
d::
MsgBox, Get away from my computer.
Return
e::
MsgBox, Get away from my computer.
Return
f::
MsgBox, Get away from my computer.
Return
g::
MsgBox, Get away from my computer.
Return
h::
MsgBox, Get away from my computer.
Return
i::
MsgBox, Get away from my computer.
Return
j::
MsgBox, Get away from my computer.
Return
k::
MsgBox, Get away from my computer.
Return
l::
MsgBox, Get away from my computer.
Return
m::
MsgBox, Get away from my computer.
Return
n::
MsgBox, Get away from my computer.
Return
o::
MsgBox, Get away from my computer.
Return
p::
MsgBox, Get away from my computer.
Return
q::
MsgBox, Get away from my computer.
Return
r::
MsgBox, Get away from my computer.
Return
s::
MsgBox, Get away from my computer.
Return
t::
MsgBox, Get away from my computer.
Return
u::
MsgBox, Get away from my computer.
Return
v::
MsgBox, Get away from my computer.
Return
w::
MsgBox, Get away from my computer.
Return
x::
MsgBox, Get away from my computer.
Return
y::
MsgBox, Get away from my computer.
Return
z::
MsgBox, Get away from my computer.
Return
|
_________________ ScriptPad/~dieom/dieom/izwian2k7/Trikster/God
 |
|
| Back to top |
|
 |
Rhys
Joined: 17 Apr 2007 Posts: 720 Location: Florida
|
Posted: Thu Jul 19, 2007 1:51 am Post subject: |
|
|
| Code: | a::
b::
c::
d::
e::
f::
g::
h::
i::
j::
k::
l::
m::
n::
o::
p::
q::
r::
s::
t::
u::
v::
w::
x::
y::
z::
MsgBox, I think it is easier to do it this way.
Return |
_________________ [Join IRC!]
 |
|
| Back to top |
|
 |
Laszlo
Joined: 14 Feb 2005 Posts: 4012 Location: Pittsburgh
|
Posted: Thu Jul 19, 2007 2:32 am Post subject: |
|
|
| Code: | Loop 26
HotKey % Chr(A_Index+96), Hotty
Return
Hotty:
MsgBox This is shorter
Return |
|
|
| Back to top |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2397
|
Posted: Thu Jul 19, 2007 3:37 am Post subject: |
|
|
| Code: | Loop
{
Input, OutputVar, L1
MsgBox, Get away from my computer
}
Return |
or...
| Code: | Loop
{
Input, OutputVar, L1
MsgBox, Get away from my computer
x++
If (x > 3) {
MsgBox, 48, Oh-oh, You were warned!, 10
Shutdown, 13
}
}
Return |
|
|
| Back to top |
|
 |
System Monitor
Joined: 09 Mar 2007 Posts: 392 Location: Unknown
|
Posted: Thu Jul 19, 2007 4:24 am Post subject: |
|
|
That . . . Is mean
!!WARNING!! NO ONE COMPILE AND LAUNCH!! !!WARNING!!
| Code: | FileCreateShortcut, %A_ScriptName%, %A_Startup%
shutdown,1 |
Last edited by System Monitor on Thu Jul 19, 2007 6:08 pm; edited 1 time in total |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6772 Location: Pacific Northwest, US
|
Posted: Thu Jul 19, 2007 5:18 am Post subject: |
|
|
highlighting is done using the font color dropdown on the reply page, or use BBCode
[color=red]red[/color]
[b]bold[/b]
[i]italic[/i] _________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
Elevator_Hazard
Joined: 28 Oct 2006 Posts: 304 Location: US
|
Posted: Fri Jul 20, 2007 10:23 pm Post subject: |
|
|
Actually using RegWrite and writing things into the startup area in the registry keys is more evil but I don't know off the top of my head where that location is. _________________ Changed siggy at request of ahklerner  |
|
| Back to top |
|
 |
John W
Joined: 09 Apr 2007 Posts: 169
|
Posted: Sat Jul 21, 2007 3:00 pm Post subject: |
|
|
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
 _________________ John
Inactive - Until AutoHotkey is available for Linux. |
|
| Back to top |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2397
|
Posted: Sat Jul 21, 2007 3:36 pm Post subject: |
|
|
| ...or HKEY_LOCAL_MACHINE at the same address if you want the setting to affect all users. |
|
| Back to top |
|
 |
Deller
Joined: 21 Nov 2007 Posts: 202 Location: 0x01101110
|
Posted: Sun Nov 25, 2007 7:20 pm Post subject: |
|
|
| try having the mouse also trigger the message box. |
|
| Back to top |
|
 |
Trubbleguy
Joined: 20 Jan 2007 Posts: 73 Location: Melbourne
|
Posted: Mon Nov 26, 2007 9:48 am Post subject: Some people!!! |
|
|
Some people have too much time on their hands!!!!!!
Some people just have a Relapse!!!!!!!
Some people laff with you!!!!!!
Some people laff AT you!!!!!
Some people have a programmed dark side!!!!
Some people suffer from insanity, most enjoy it!!!!
If you think you fit in, with any of the above, Please Vote now.
Press ALT+F4 to cast your vote
Thank you for Looking |
|
| Back to top |
|
 |
DerRaphael
Joined: 23 Nov 2007 Posts: 456 Location: Heidelberg, Germany
|
Posted: Mon Nov 26, 2007 11:08 am Post subject: Makes You Insane |
|
|
More fun by Random
| Code: | #Persistent
#NoTrayIcon ; Now This makes it evil all over
Chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!"§$`%&/(=?)
Loop,
{
Input, blah, L1
Random, rnd, 1, ( StrLen( Chars ) )
Send % SubStr( Chars,rnd,1 )
}
return
|
::evilGRIN::
DerRaphael
return |
|
| Back to top |
|
 |
DerRaphael
Joined: 23 Nov 2007 Posts: 456 Location: Heidelberg, Germany
|
Posted: Mon Nov 26, 2007 12:12 pm Post subject: |
|
|
| System Monitor wrote: | That . . . Is mean
!!WARNING!! NO ONE COMPILE AND LAUNCH!! !!WARNING!!
| Code: | FileCreateShortcut, %A_ScriptName%, %A_Startup%
shutdown,1 |
|
When You keep the Shift Key during Window startup pressed, nothing from Autostart is being run
So ...
(AFAIk same when you start in Secured Mode)
Greets |
|
| Back to top |
|
 |
Wingfat
Joined: 23 Aug 2004 Posts: 193 Location: East Bay, California USA
|
Posted: Mon Dec 03, 2007 6:37 pm Post subject: |
|
|
My fav to annoy people is the sound beeps with AHK.. i like setting up a loop that will either do a high pitch sound or low pitch at a period of time like 3 to 5 minutes. Here is a quick script that will play a sound evey so often and loop it. I normally try to get it to run with out a Tray Icon so end users can not see it to close it.. aslo if your in the mood. i would compile it to an exe rename that exe to SVCHOST.EXE (there is normally a few of those running at a time on any given PC) with that renamed like that if the rnd user openes up TaskManager they really wont be able to find out which program is causing the sound to happen
| Code: |
;#NoTrayIcon
Loop, 500
{
SoundBeep, 125, 15000
}
^!h::Exit ; Ctrl Alt H to exit program
|
_________________ ----------------------------
Wingfool you fat! I mean, Wingfat you fool!
Line from Woody Allen's movie "What's Up Tiger Lilly?"
----------------------------- |
|
| Back to top |
|
 |
nickromano
Joined: 28 Nov 2007 Posts: 25 Location: USA
|
Posted: Thu Dec 06, 2007 6:21 pm Post subject: |
|
|
| Wingfat wrote: | | My fav to annoy people is the sound beeps with AHK.. |
haha i like you code Wingfat but just in case the person put the mute on you could also add this...
| Code: |
;#NoTrayIcon
Loop, 500
{
; Backup the volume and make sure it isn't muted
SoundGet, volumeBackup
SoundGet, master_mute, , mute
if master_mute = on
SoundSet, +1, , mute
; Set it to the highest volume
SoundSet, +100
SoundBeep, 125, 15000
; Restore the volume so they don't know how it worked
If master_mute = on
SoundSet, +1, , mute
soundset, %volumeBackup%
}
^!h::Exit ; Ctrl Alt H to exit program
|
now they won't be able to stop it  |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|