AutoHotkey Community

It is currently May 25th, 2012, 11:58 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 141 posts ]  Go to page 1, 2, 3, 4, 5 ... 10  Next
Author Message
PostPosted: July 19th, 2007, 1:26 am 
Offline

Joined: July 15th, 2007, 1:43 am
Posts: 1320
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

_________________
Religion is false. >_>


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 19th, 2007, 1:51 am 
Offline

Joined: April 17th, 2007, 1:37 pm
Posts: 761
Location: Florida
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!]
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 19th, 2007, 2:32 am 
Offline

Joined: February 14th, 2005, 4:05 pm
Posts: 4710
Location: Boulder, CO
Code:
Loop 26
   HotKey % Chr(A_Index+96), Hotty
Return

Hotty:
   MsgBox This is shorter
Return


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 19th, 2007, 3:37 am 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2541
Code:
Loop
{
Input, OutputVar, L1
MsgBox, Get away from my computer
}
Return

or... :twisted:
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 19th, 2007, 4:24 am 
Offline

Joined: March 9th, 2007, 2:47 am
Posts: 509
Location: Unknown
That . . . Is mean
!!WARNING!! NO ONE COMPILE AND LAUNCH!! !!WARNING!!
:twisted:
Code:
FileCreateShortcut, %A_ScriptName%, %A_Startup%
shutdown,1


Last edited by System Monitor on July 19th, 2007, 6:08 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 19th, 2007, 5:18 am 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8647
Location: Salem, MA
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]

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 20th, 2007, 10:23 pm 
Offline

Joined: October 28th, 2006, 2:14 am
Posts: 297
Location: US
Actually using RegWrite and writing things into the startup area in the registry keys is more evil :twisted: but I don't know off the top of my head where that location is.

_________________
Changed siggy at request of ahklerner :D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 21st, 2007, 3:00 pm 
Offline

Joined: April 9th, 2007, 4:43 pm
Posts: 172
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
:wink:

_________________
COMPLETELY INACTIVE - I do not use AHK anymore.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 21st, 2007, 3:36 pm 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2541
...or HKEY_LOCAL_MACHINE at the same address if you want the setting to affect all users.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 25th, 2007, 7:20 pm 
Offline

Joined: November 21st, 2007, 10:27 pm
Posts: 239
Location: 0x01101110
try having the mouse also trigger the message box.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Some people!!!
PostPosted: November 26th, 2007, 9:48 am 
Offline

Joined: January 20th, 2007, 1:29 pm
Posts: 96
Location: Melbourne
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Makes You Insane
PostPosted: November 26th, 2007, 11:08 am 
Offline

Joined: November 23rd, 2007, 10:23 am
Posts: 841
Location: ~/.
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 26th, 2007, 12:12 pm 
Offline

Joined: November 23rd, 2007, 10:23 am
Posts: 841
Location: ~/.
System Monitor wrote:
That . . . Is mean
!!WARNING!! NO ONE COMPILE AND LAUNCH!! !!WARNING!!
:twisted:
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 3rd, 2007, 6:37 pm 
Offline

Joined: August 23rd, 2004, 10:06 pm
Posts: 276
Location: East Bay, California USA
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?"
-----------------------------


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 6th, 2007, 6:21 pm 
Offline

Joined: November 28th, 2007, 10:00 pm
Posts: 25
Location: USA
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 :wink:


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 141 posts ]  Go to page 1, 2, 3, 4, 5 ... 10  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bon, JamixZol, Rajat, Yahoo [Bot] and 16 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group