Register for your free account! | Forgot your password?

Go Back   elitepvpers > General Gaming > General Gaming Discussion
You last visited: Today at 14:19

  • Please register to post and access all features, it's quick, easy and FREE!

 

[AutoHotKey] Casting Macro

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2008
Posts: 113
Received Thanks: 56
[AutoHotKey] Casting Macro

Code:
;
; AutoHotkey Version: 1.x
; Language:       English
; Platform:       Win9x/NT
; Author:         Keraam
;
; Script Function: Casts Mana Missile and Heal Self. Pauses with the End button and exits with the DELETE key.
;	
;

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

InputBox, manaMissile, ManaMissile, Hotbar number for Mana Missile?,,,,,,,,1
InputBox, selfHeal, HealSelf, Hotbar number for Heal Self?,,,,,,,,2
InputBox, rest, Rest, Hotbar number for Rest?,,,,,,,,0
InputBox, manaMissileNum, ManaMissileQuantity, How many Mana Missiles?,,,,,,,,18
InputBox, restTime, RestTime, How long to Rest?,,,,,,,,155000
MsgBox, "Click OK then Alt + Tab into Darkfall to start the script."

;SetKeyDelay, 10, 10


WinWaitActive, Darkfall Online
IfWinActive, Darkfall Online
{
	Loop
	{
		Send +1
		Sleep, 2000
		Send {R}   ; To go into combat mode
		Sleep, 500
		HealSelf()
		Loop %manaMissileNum%
		{
			ManaMissile()
		}
		Sleep, 500
		HealSelf()
		Sleep, 2500
		Rest()
		Sleep, 5000
	}
}

End::Pause

Delete::ExitApp	

HealSelf()
{
	global selfHeal
	Sleep, 500
	Send %selfHeal%
	Sleep, 500
	Click
	Sleep, 2400	
}

ManaMissile()
{
	global manaMissile
	Sleep, 500
	Send %manaMissile%
	Sleep, 500
	Click
	Sleep, 2300
}

Rest()
{
	global rest
	global restTime
	Sleep, 2000
	Send {r}
	Sleep, 500
	Send %rest%
	Sleep, 500
	Click
	Sleep, %restTime%
	Send {SPACE}			
	Sleep, 1000
}



Penakle is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
[AutoHotKey] Macro looter by phant0m
Loot Function- Works for dropping loot in backpack, backpack to bank, armor to paperdoll, and stacking, etc. Saves destination in a file for next...
0 Replies - General Gaming Discussion
[AutoHotKey] Multi-tool (updated) Harvest/Casting/Crafting/SprintandCrouch
; Author: Hastur ; Version: 1.1 ; Script: All in One Multi-tool ; Code Snippets from Keraam , thanks m8 ; v1.1 Optimized casting...
0 Replies - General Gaming Discussion
[AutoHotKey] Casting macro 2.0
Used this for greater magic 25-50 i had left over bone from 1-25, and intend on using Heal Other past 50, and frailty is good to spam inbetween...
0 Replies - General Gaming Discussion
[AutoHotKey] Basic Crafting Click Macro
;Simple Crafting Related Script by Keraam ;Made from the AutoIt script by TeabagGus ;Once the macro starts you will have 5 seconds to get your...
0 Replies - General Gaming Discussion
Macro with use of Autohotkey not working
So I wanted to make a little macro to help scriptvessel level my rb fire tao, since script vessel won't summon guard for you. So I came up with...
1 Replies - CO2 Main - Discussions / Questions



All times are GMT +1. The time now is 14:19.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2017 elitepvpers All Rights Reserved.