Hi
Has anybody tried any commercial desktop macro softwares for the task?
I am trying to do a same function with python:
import SendKeys
SendKeys.SendKeys("""
%^§
[pause=15]
%f
c
+{TAB}
{END}
~
[pause=5]
%f
e
""")
This script open the OE with my assigned windows shortcut.
Then it open the Convert dialog and select the first .ac file from the list and hit enter.
Close to OE.
Still the loop and 1-by-1 file selection needs to solve.
Here we go
This script will convert all .ac files from HTC/ah2editor/ahiiterr/Tiles/ folder.
# The Batch convert tool for the Aces High 2 Object-Editor(OE) by Xjazz
# Script requires the python 2.4+ and the SendKeys module installation
# The SendKeys module is available at:
# [url]http://www.rutherfurd.net/python/sendkeys/index.html[/url]
#
# This script assumes, your OE windows short-cut is CRTL+ALT+1
# Place script to the ah2editor folder and run it by double clicking it
#
# Ver. 0.2beta / 01.10.2007
import os, SendKeys
# You must set the path to the Tiles-folder
path = 'c:/Program Files/HTC/ah2editor/ahiiterr/Tiles/'
def getFiles(path):
ac_names = []
arqs = os.listdir(path)
for a in arqs:
if a.endswith('.ac'):
ac_names.append(a)
# User can adjust the PAUSE times at will. YMMV
SendKeys.SendKeys("{PAUSE 1}%^1{PAUSE 5}%fc"+a+"~{PAUSE 2}%fe")
return ac_names
getFiles(path)
# 'You must delete the "cache" folder before you restart the OE'
No error handling to mention. Make sure you have proper texture files copied to the Tiles folder.