Register for your free account! | Forgot your password?

Go Back   elitepvpers > General Gaming > General Gaming Discussion
You last visited: Today at 03:36

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

Advertisement



[AutoHotKey] Casting macro 2.0

Discussion on [AutoHotKey] Casting macro 2.0 within the General Gaming Discussion forum part of the General Gaming category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2008
Posts: 113
Received Thanks: 56
[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 those 2.

Thanks to Keraam, the majority of this code is edited from his own, and it is much appreciated!

differences: spells ofcorse, which bar is used [defaulted to 2], for some reason Send {R} wasnt working for me, so i just made a simple method for sheathing, resting time is different, shoulda made it a changing variable but w/e lol

it seems a tad more object oriented, but by no means OO-ified. honestly didnt feel the need to do it, but if i get the time, i may, i enjoy coding and im not great with scripting languages, could always use more practice

Code:
;
; AutoHotkey Version: 1.x
; Language: English
; Author: cslotterback [special thanks to Keraam, based mainly off his code]
;
; Script Function: Does in order: space[stands up], unsheaths weapon, rend, heal other, 
; frailty, ho, f, ho, f, rend, ho, f, ho, sheaths weapon, rests, loops.
;
; NOTE: this is for spells on BAR2
;

#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, rend, Rend, Hotbar number for Rend?,,,,,,,,1
InputBox, healOther, Heal Other, Hotbar number for Heal Other?,,,,,,,,2
InputBox, frailty, Frailty, Hotbar number for Frailty?,,,,,,,,3
InputBox, rest, Rest, Hotbar number for Rest?,,,,,,,,5
InputBox, RendNum, RendQuantity, How many Rends?,,,,,,,,2
InputBox, HealOtherNum, HealOtherQuantity, How many HealOther?,,,,,,,,5
InputBox, FrailtyNum, FrailtyQuantity, How many Frailties?,,,,,,,,4
InputBox, restTime, RestTime, How long to Rest?,,,,,,,,90000
InputBox, sheath, Sheath, button to Sheath?,,,,,,,,r
InputBox, barNumber, BarNumber, Which spell bar is used?,,,,,,,,2
MsgBox, "Click OK then Alt + Tab into Darkfall to start the script."

;SetKeyDelay, 10, 10

WinWaitActive, Darkfall Online
IfWinActive, Darkfall Online
{
Loop
{
Send +barNumber
Sleep, 2000
Sheath()
Sleep, 500
Rend()
HealOther()
Frailty()
HealOther()
Frailty()
HealOther()
Frailty()
Rend()
HealOther()
Frailty()
HealOther()
Rest()
Sleep, 5000
}
}

End::Pause

Delete::ExitApp 

Sheath()
{
global sheath
Send %sheath%
}


HealOther()
{
global healOther
Sleep, 1000
Send %healOther%
Sleep, 500
Click
Sleep, 1500 
}

Rend()
{
global rend
Sleep, 500
Send %rend%
Sleep, 500
Click
Sleep, 2200
}

Frailty()
{
global frailty
Sleep, 500
Send %frailty%
Sleep, 500
Click
Sleep, 1500
}

Rest()
{
global rest
global restTime
Sleep, 2000
Sheath()
Sleep, 500
Send %rest%
Sleep, 500
Click
Sleep, %restTime%
Send {SPACE} 
Sleep, 1000
}
Penakle is offline  
Reply


Similar Threads Similar Threads
[AutoHotKey] Macro looter by phant0m
08/14/2009 - General Gaming Discussion - 0 Replies
Loot Function- Works for dropping loot in backpack, backpack to bank, armor to paperdoll, and stacking, etc. Saves destination in a file for next time you play. Alt-RightClick - Set Loot Destination sets the x,y position of your loots destination. You can do this anytime. Alt-LeftClick - Drag Loot Drags loot from anywhere and drops it on loot destination, then cursor jumps back to original location. Simply hold Alt and click on loot. IniFile := "C:\loot.txt" FileGetSize, size, %IniFile%...
[AutoHotKey] Multi-tool (updated) Harvest/Casting/Crafting/SprintandCrouch
08/14/2009 - General Gaming Discussion - 0 Replies
; Author: Hastur ; Version: 1.1 ; Script: All in One Multi-tool ; Code Snippets from Keraam , thanks m8 ; v1.1 Optimized casting added sprint and crouch + new layout. #NoEnv SendMode Input SetWorkingDir %A_ScriptDir%
[AutoHotKey] Basic Crafting Click Macro
08/14/2009 - General Gaming Discussion - 0 Replies
;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 cursor over the object. #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. WinWaitActive, Darkfall Online IfWinActive, Darkfall Online
[AutoHotKey] Casting Macro
08/14/2009 - General Gaming Discussion - 0 Replies
; ; 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. ; ;
Macro with use of Autohotkey not working
01/25/2007 - Conquer Online 2 - 1 Replies
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 this idea, putt Tornado under F5 and Summonguard under F6 So here's the code: ;WinGet,id, ID, Gui, Add, Text,, For www.elitepvpers.com Gui, Add, Text,x10 y42 w100 h20, Auto-summon-guard. Gui, Add, Text,x15 y62 w190 h20, To start, press F10 on active window,



All times are GMT +2. The time now is 03:36.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.