View Single Post
  #1  
Old 12-15-2011, 09:52 PM
pepsiphreak79
Sarnak
 
Join Date: Sep 2011
Posts: 70
Default Windows Loader for server

Screen shot of the GUI loader
Using autohotkey www.autohotkey.com
I wrote up this script for loading and unloading server easily with portables.


loader.ahk
Code:
Gui, Add, Button, x116 y3 w100 h20 , All_Off1
Gui, Add, Button, x6 y3 w100 h20 , All_Start1
Gui, Add, Button, x6 y33 w100 h20 , Emu_only_Start1
Gui, Add, Button, x116 y33 w100 h20 , Emu_only_Off1
Gui, Add, Button, x6 y63 w210 h20 , Launch_Everquest1
Gui, Add, Button, x6 y93 w210 h20 , Randomize_Loading_Screens1
; Generated using SmartGUI Creator 4.0
Gui, Show, x131 y91 h125 w227, New GUI Window
Return

GuiClose:
ExitApp

ButtonAll_Off1:
SetTitleMatchMode 2
winactivate EQEmu Login Server
Send ^c
winactivate World.exe
Send ^c
winactivate sleeping
Send ^c
run stop_sql_php_www.lnk
return


ButtonEmu_only_Off1:
SetTitleMatchMode 2
winactivate EQEmu Login Server
Send ^c
winactivate World.exe
Send ^c
winactivate sleeping
Send ^c
return

ButtonAll_Start1:
run all_start.lnk
return

ButtonEmu_only_Start1:
run emu_only_start.lnk
return

ButtonLaunch_Everquest1:
run everquest.lnk
return

ButtonRandomize_Loading_Screens1:
run random.lnk
return
random_loading_screens.bat
Code:
@echo off
set "workDir=e:\Games\EverQuest-SOF\Resources\NSFW"

set /a num = %random% %% (167 - 1) + 1
::echo %num% is between 1 and 159.




set "fileName=loadscreen%num%.jpg"
copy %workDir%\%fileName% e:\Games\EverQuest-SOF\Resources\loadscreen.jpg
exit
Save it in any dir and you can change the .lnks as needed or make them in the same dir as your ahk script

i placed this in my main emu dir and have as you can tell shortcuts there to bats i either made or modified.

random loading screens is what it sais it randomises my eq loading screens for me each time i run it it runs when i want or every time i run eq..
__________________
--Any Code by me is considered open source Beta--
Not a DEV not a Coder
Just a person....
Reply With Quote