; IMPORTANT INFO ABOUT GETTING STARTED: Lines that start with a ; semicolon, such as this one, are comments. They are not executed. ; This script has a special filename and path because it is automatically ; launched when you run the program directly. Also, any text file whose ; name ends in .ahk is associated with the program, which means that it ; can be launched simply by double-clicking it. You can have as many .ahk ; files as you want, located in any folder. You can also run more than ; one ahk file simultaneously and each will get its own tray icon. ; SAMPLE HOTKEYS: Below are two sample hotkeys. The first is Win+Z and it ; launches a web site in the default browser. The second is Control+Alt+N ; and it launches a new Notepad window (or activates an existing one). To ; try out these hotkeys, run AutoHotkey again, which will load this file. #g::Run www.google.com #z::Run C:\Program Files (x86)\FileZilla FTP Client\filezilla.exe #n::Run C:\Program Files (x86)\Notepad++\notepad++.exe #w::Run C:\Program Files (x86)\Microsoft Office\Office12\Winword.exe #v::Run C:\Program Files (x86)\Microsoft Office\Office12\visio.exe #e::Run C:\Program Files (x86)\Microsoft Office\Office12\excel.exe #.::Run C:\Program Files\Paint.NET\PaintDotNet.exe #o::Run C:\Users\carlosro\Documents\SOFTWARE\omem.jar #a::Run C:\Users\carlosro\Documents\SOFTWARE\apexem.jar #c::Run C:\Users\carlosro\Documents\SOFTWARE\cp_egiga1.jnlp ^p::ExitApp ; Exit script1 ^!q:: ; HACER CALCULO EN NOTEPAD CON SCRIPT (NO NEED TO SELECT) { SetDefaultMouseSpeed, 10 Send ^a MouseClick, left, 460, 40 Send m{Down}{Down}{Down}{Enter} SetKeyDelay, 1000 Send {Enter} SetKeyDelay, 0 return } ^!w:: ; SCRIPT PARA ADICIONAR MULTICAST EN CAP 1000 { InputBox, Var1, Valor Inicial, Ingrese el rango inicial., , 300, 200 InputBox, Var2, Valor Final, Ingrese el rango final., , 300, 200 InputBox, Var3, Valor Inicial del Puerto UDP, Ingrese el Valor Inicial del Puerto UDP., , 300, 200 While Var1<=Var2 { SetDefaultMouseSpeed, 20 MouseClick, left, 99,835 SetDefaultMouseSpeed, 2 MouseClick, left, 122,178 SetDefaultMouseSpeed, 20 MouseClick, left, 122,178 Send {Delete}{Delete}{Delete} Send 230 Send {Delete}{Delete}{Delete} Send 007 Send {Delete}{Delete}{Delete} if Var3=50 { Send 000 } else { Send 001 } Send {Delete}{Delete}{Delete} SendRaw %Var1% MouseClick, left, 118,203 Send {Delete}{Delete}{Delete}{Delete}{Delete}{Delete} SendRaw %Var3% if Var1<10 { Send 0 } SendRaw %Var1% MouseClick, left, 102,429 ; change for 102 to OK, 166 for cancel Var1++ } return } ^!e:: ; EDITAR - SCRIPT PARA RANGO DE PINGS { InputBox, Var1, Valor Octeto 1, Ingrese el valor del primer octeto., , 300, 200 InputBox, Var2, Valor Octeto 2, Ingrese el valor del segundo octeto., , 300, 200 InputBox, Var3, Valor Octe0to 3, Ingrese el valor del tercer octeto., , 300, 200 InputBox, Var4, Valor Inicial Octeto 4, Ingrese el valor inicial del rango del cuarto octeto., , 300, 200 InputBox, Var5, Valor Final, Ingrese el valor final del rango del cuarto octeto., , 300, 200 SetKeyDelay, 1000 Run, cmd.exe WinWaitActive C:\Windows\system32\cmd.exe While Var4<=Var5 { SetKeyDelay, 10 Send ping Send {Space} SendRaw %Var1% Send . SendRaw %Var2% Send . SendRaw %Var3% Send . SendRaw %Var4% Send {Enter} MouseMove, 10, 10 MouseMove, 190, 10, 100 Var4++ } { return } } ; Note: From now on whenever you run AutoHotkey directly, this script ; will be loaded. So feel free to customize it to suit your needs. ; Please read the QUICK-START TUTORIAL near the top of the help file. ; It explains how to perform common automation tasks such as sending ; keystrokes and mouse clicks. It also explains more about hotkeys.