PDA

View Full Version : Windows Loader for server


pepsiphreak79
12-15-2011, 09:52 PM
http://www.facebook.com/photo.php?fbid=2925425493899&l=57eb6b9d84 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

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

@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..

pepsiphreak79
12-16-2011, 12:22 AM
Alternate script includes tools and your local http link
Again all cutomizable and the buttons can be rearanged added removed ect...


Gui, Add, Button, x116 y3 w100 h20 , All_Off1
Gui, Add, Button, x6 y3 w100 h20 , All_Start.
Gui, Add, Button, x6 y33 w100 h20 , Emu_only_Start.
Gui, Add, Button, x116 y33 w100 h20 , Emu_only_Off1
Gui, Add, Button, x6 y63 w210 h20 , Launch_Everquest
Gui, Add, Button, x6 y93 w210 h20 , Randomize_Loading_Screens
Gui, Add, Button, x226 y3 w10 h110 , WWW
Gui, Add, Button, x246 y3 w130 h20 , Quest_Editor1
Gui, Add, Button, x246 y93 w130 h20 , HeidiSql
Gui, Add, Button, x246 y63 w130 h20 , NPC_Loot_Editor
Gui, Add, Button, x246 y33 w130 h20 , Char_Manager1
; Generated using SmartGUI Creator 4.0
Gui, Show, x131 y91 h123 w396, 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_Everquest:
run everquest.lnk
return

ButtonRandomize_Loading_Screens:
run random.lnk
return

ButtonQuest_Editor1:
run Quest.lnk
return

ButtonHeidiSql:
run heidisql.lnk
return

ButtonNPC_Loot_Editor:
run npcloot.lnk
return

ButtonChar_Manager1:
run charman.lnk
return

ButtonWWW:
run http://127.0.0.1
return