Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #SingleInstance Force
- if not A_IsAdmin
- {
- Run *RunAs "%A_ScriptFullPath%"
- ExitApp
- }
- ;;;;;;;;;;;;;;;;;;;;; Text to Speech ;;;;;;;;;;;;;;;;;;;;;;;
- ttsEnabled = true
- ttsVolume = 100
- SAPI := ComObjCreate("SAPI.SpVoice")
- SAPI.volume := 100
- ;;;;;;;;;;;;;;;;;;;;;;;; Update Process ;;;;;;;;;;;;;;;;;;;;;;;;;
- update(major, minor)
- {
- FileCopy, DFscript.ahk, *.bak
- FileCopy, functions.ahk, *.bak
- URLDownloadToFile, http://dfscript.comuf.com/files/beta/functions.ahk, functions.ahk
- URLDownloadToFile, http://dfscript.comuf.com/files/beta/DFscript.ahk, DFscript.ahk
- ;URLDownloadToFile, http://pastebin.com/raw.php?i=fNJMTXTc, DFscript.ahk
- ;URLDownloadToFile, http://pastebin.com/raw.php?i=HaziAzKp, functions.ahk
- IniWrite, %Nmajor%, c:\DFscript\config.ini, version, major
- IniWrite, %Nminor%, c:\DFscript\config.ini, version, minor
- return
- }
- ;;;;Configuration File;;;;
- config=
- (
- [Hotkeys]
- mountLeft=Left
- mountRight=Right
- Linsta1=0
- Linsta2=0
- Linsta3=0
- Linsta4=0
- Linsta5=0
- Linsta6=0
- Linsta7=0
- Linsta8=0
- Rinsta1=0
- Rinsta2=0
- Rinsta3=0
- Rinsta4=0
- Rinsta5=0
- Rinsta6=0
- Rinsta7=0
- Rinsta8=0
- [class]
- war=1
- skirm=0
- ele=0
- prim=0
- [version]
- major=2
- minor=0
- [Togglekeys]
- autoFire=+^LButton
- instaCast=+^RButton
- insta=0
- auto=0
- [Filepath]
- loc=
- )
- IfNotExist, c:\DFscript\config.ini
- {
- FileCreateDir, C:\DFscript
- FileAppend %config%, c:\DFscript\config.ini
- }
- ;FileDelete, c:\DFscript\version.ini
- ;URLDownloadToFile, http://pastebin.com/raw.php?i=EU0zv5nS, c:\DFscript\version.ini
- ;global Nmajor := getIni("c:\DFscript\version.ini", "version", "major")
- ;global Nminor := getIni("c:\DFscript\version.ini", "version", "minor")
- ;global major := getIni("c:\DFscript\config.ini", "version", "major")
- ;global minor := getIni("c:\DFscript\config.ini", "version", "minor")
- Loop, 8 {
- IniRead, Linsta%A_Index% , c:\DFscript\config.ini, Hotkeys, Linsta%A_Index%
- }
- Loop, 8 {
- IniRead, Rinsta%A_Index% , c:\DFscript\config.ini, Hotkeys, Rinsta%A_Index%
- }
- IniRead, War, c:\DFscript\config.ini, class, war
- IniRead, Skirm, c:\DFscript\config.ini, class, skirm
- IniRead, Ele, c:\DFscript\config.ini, class, ele
- IniRead, Prim, c:\DFscript\config.ini, class, prim
- ;;;;;;;;;;;;;;;;;;; Update Check ;;;;;;;;;;;;;;;;;;;
- ;major := getIni("c:\DFscript\config.ini", "version", "major")
- ;minor := getIni("c:\DFscript\config.ini", "version", "minor")
- Menu, Tray, Add, Keybind Options, run
- ;if (major < Nmajor) or (major = Nmajor and minor < Nminor)
- ;{
- ; Gui 2: Add, ActiveX, x0 y0 w980 h600 vWB, Shell.Explorer
- ; WB.Navigate("http://www.ahkgaming.com/changelog.html")
- ; Gui 2: Add, Button, x0 y600 w327 h40 , View Source (2 files)
- ; Gui 2: Add, Button, x654 y600 w327 h40 , Download Update
- ; Gui 2: Add, Button, x327 y600 w327 h40, Cancel
- ;
- ; Gui 2: Show, Center h640 w980, New Update Available
- ;return
- ;}
- ;;;;;;;;;;;;;;;;;;; Welcome Message ;;;;;;;;;;;;;;;;;;;
- welcomeMsg = Welcome to Darkfall.
- say(welcomeMsg)
- ;;;;;;;;;;;;;;;;;;;;;;;;; Hotkey Section ;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- 2ButtonCancel:
- Gui, 2: Hide
- reloadkeys:
- #Include functions.ahk
- run:
- Gui, Add, GroupBox, x6 y337 w230 h100 , Extra Left/Right keys (Fully Optional)
- Gui, Add, Text, x26 y367 w90 h20 , Left:
- Gui, Add, Text, x26 y397 w90 h20 , Right:
- Gui, Add, Hotkey, x116 y367 w70 h20 vmountLeft, %mountLeft% ;left action
- Gui, Add, Hotkey, x116 y397 w70 h20 vmountRight, %mountRight% ;right action
- Gui, Add, GroupBox, x6 y437 w260 h160 , Toggle Keys
- Gui, Add, Text, x16 y467 w100 h20 , Toggle AutoFire:
- Gui, Add, Hotkey, x116 y467 w120 h20 vautoFire, %autoFire%
- Gui, Add, Text, x16 y527 w110 h20 , Toggle Inst-Cast:
- Gui, Add, Hotkey, x116 y527 w120 h20 vinstaCast, %instaCast%
- Gui, Add, Text, x56 y487 w150 h20 , Default: ctrl+shift+Lbutton
- Gui, Add, Text, x56 y547 w160 h20 , Default: ctrl+shift+Rbutton
- Gui, Add, Text, x10 y7 w300 h25, Your Current Class
- Gui, Add, Radio, x16 y25 w55 h30 checked%war% vWar, War
- Gui, Add, Radio, x72 y25 w55 h30 checked%skirm% vSkirm, Skirm
- Gui Add, Radio, x135 y25 w50 h30 checked%ele% vEle, Ele
- Gui Add, Radio, x185 y25 w55 h30 checked%prim% vPrim, Prim
- Gui, Add, CheckBox, x16 y77 w100 h30 checked%Linsta1% vLinsta1, Left 1
- Gui, Add, CheckBox, x16 y107 w100 h30 checked%Linsta2% vLinsta2, Left 2
- Gui, Add, CheckBox, x16 y137 w100 h30 checked%Linsta3% vLinsta3, Left 3
- Gui, Add, CheckBox, x16 y167 w100 h30 checked%Linsta4% vLinsta4, Left 4
- Gui, Add, CheckBox, x16 y197 w100 h30 checked%Linsta5% vLinsta5, Left 5
- Gui, Add, CheckBox, x16 y227 w100 h30 checked%Linsta6% vLinsta6, Left 6
- Gui, Add, CheckBox, x16 y257 w100 h30 checked%Linsta7% vLinsta7, Left 7
- Gui, Add, CheckBox, x16 y287 w100 h30 checked%Linsta8% vLinsta8, Left 8
- Gui, Add, CheckBox, x166 y77 w100 h30 checked%Rinsta1% vRinsta1, Right 1
- Gui, Add, CheckBox, x166 y107 w100 h30 checked%Rinsta2% vRinsta2, Right 2
- Gui, Add, CheckBox, x166 y137 w100 h30 checked%Rinsta3% vRinsta3, Right 3
- Gui, Add, CheckBox, x166 y167 w100 h30 checked%Rinsta4% vRinsta4, Right 4
- Gui, Add, CheckBox, x166 y197 w100 h30 checked%Rinsta5% vRinsta5, Right 5
- Gui, Add, CheckBox, x166 y227 w100 h30 checked%Rinsta6% vRinsta6, Right 6
- Gui, Add, CheckBox, x166 y257 w100 h30 checked%Rinsta7% vRinsta7, Right 7
- Gui, Add, CheckBox, x166 y287 w100 h30 checked%Rinsta8% vRinsta8, Right 8
- Gui, Add, Text, x16 y57 w250 h25 , Set Insta-cast per key. Checked = On
- ; Generated using SmartGUI Creator 4.0
- Gui, Show, x614 y225 h599 w271, New GUI Window
- Return
- ~esc::
- {
- IniWrite, %auto%, c:\DFscript\config.ini, Togglekeys, auto
- IniWrite, %insta%, c:\DFscript\config.ini, Togglekeys, insta
- goto, reloadkeys
- }
- return
- 2ButtonDownloadUpdate:
- update(Nmajory, Nminor)
- Reload
- return
- 2GuiClose:
- ExitApp
- 2ButtonViewSource(2files):
- run http://pastebin.com/raw.php?i=fNJMTXTc
- run http://pastebin.com/raw.php?i=HaziAzKp
- return
- GuiClose:
- Gui,Submit
- IniWrite, %mountLeft%, c:\DFscript\config.ini, Hotkeys, mountLeft
- IniWrite, %mountRight%, c:\DFscript\config.ini, Hotkeys, mountRight
- IniWrite, %autoFire%, c:\DFscript\config.ini, Togglekeys, autoFire
- IniWrite, %instaCast%, c:\DFscript\config.ini, Togglekeys, instaCast
- IniWrite, %war%, c:\DFscript\config.ini, class, war
- IniWrite, %skirm%, c:\DFscript\config.ini, class, skirm
- IniWrite, %ele%, c:\DFscript\config.ini, class, ele
- IniWrite, %prim%, c:\DFscript\config.ini, class, prim
- Loop, 8 {
- IniWrite, % Linsta%A_Index%, c:\DFscript\config.ini, Hotkeys, Linsta%A_Index%
- }
- loop, 8 {
- IniWrite, % Rinsta%A_Index%, c:\DFscript\config.ini, Hotkeys, Rinsta%A_Index%
- }
- Reload
Advertisement
Add Comment
Please, Sign In to add comment