restart macro
Posted by: disrupted
Date: October 14, 2008 08:21AM

requires autoscript
(useful when testing firefox extensions or macros and you're super lazy)

download from kmext

# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)
#
# ---------- restart kmeleon
#
# Dependencies : - snickers! + autoit3
# Resources : -
# Preferences : -
# --------------------------------------------------------------------------------

_restart_command{
exec("I:\\PROGRA~1\\autoIT\\AutoIt3.exe G:\\applications-x\\KMplus\\tools\\restartkm.au3");
}

_restart_BuildMenu{
# file menu
setmenu("Close",macro,"Restart K-Meleon",_restart_command,3);
}

# ------------------------------------------------------------------------------------------------------------------
$OnInit=$OnInit."_restart_BuildMenu;";
$macroModules=$macroModules."restarter;";
#_______________________________________________________________
#IMPORTANT!change restart command path according to your autoscript and restart script paths




;
; AutoIt Version: 3.0
; Language: English
; Platform: Win9x/NT
; Author: yannis kargas
;
; Script Function:
; restart k-meleon
;
#NoTrayIcon

; close km(non-force)
WinClose("[CLASS:KMeleon Browser Window]", "")

; wait a bit..
sleep(200)

; Run km
Run("G:\applications-x\KMplus\k-meleon.exe")

; Finished!
;__________________________________________________________
;IMPORTANT!change run km path to your kmeleon's path



Edited 1 time(s). Last edit at 03/13/2010 05:21PM by disrupted.

K-Meleon forum is powered by Phorum.