First post and U saved the day! It works brilliantly. Loads all 5 packages at all times!!! Thank you very much
Code:
ShellExecute("C:\Guild Wars\TexMod.exe") ;TexMod path
Do
sleep(100)
Until (WinExists("TexMod"))
ControlClick("TexMod", "","[CLASS:Button; INSTANCE:2]")
Do
sleep(100)
Until (WinExists("Select Executable"))
ControlSetText("Select Executable", "","[CLASS:Edit; INSTANCE:1]","C:\Guild Wars\Gw.exe") ;Gw.exe path
ControlClick("Select Executable", "","[CLASS:Button; INSTANCE:2]")
ControlClick("TexMod", "","[CLASS:Button; INSTANCE:12]")
Do
sleep(750)
Until (WinExists("[CLASS:#32768]"))
ControlSend("[CLASS:#32768]","","","{DOWN}")
ControlSend("[CLASS:#32768]","","","{ENTER}")
Do
sleep(750)
Until (WinExists("Select Texmod Packages to add."))
ControlSetText("Select Texmod Packages to add.", "","[CLASS:Edit; INSTANCE:1]","C:\Guild Wars\*.tpf") ;tpf path
ControlClick("Select Texmod Packages to add.", "","[CLASS:Button; INSTANCE:2]")
ControlClick("TexMod", "","[CLASS:Button; INSTANCE:12]")
Do
sleep(750)
Until (WinExists("[CLASS:#32768]"))
ControlSend("[CLASS:#32768]","","","{DOWN}")
ControlSend("[CLASS:#32768]","","","{ENTER}")
Do
sleep(750)
Until (WinExists("Select Texmod Packages to add."))
ControlSetText("Select Texmod Packages to add.", "","[CLASS:Edit; INSTANCE:1]","C:\Guild Wars\*.tpf") ;tpf path
ControlClick("Select Texmod Packages to add.", "","[CLASS:Button; INSTANCE:2]")
ControlClick("TexMod", "","[CLASS:Button; INSTANCE:12]")
Do
sleep(750)
Until (WinExists("[CLASS:#32768]"))
ControlSend("[CLASS:#32768]","","","{DOWN}")
ControlSend("[CLASS:#32768]","","","{ENTER}")
Do
sleep(750)
Until (WinExists("Select Texmod Packages to add."))
ControlSetText("Select Texmod Packages to add.", "","[CLASS:Edit; INSTANCE:1]","C:\Guild Wars\*.tpf") ;tpf path
ControlClick("Select Texmod Packages to add.", "","[CLASS:Button; INSTANCE:2]")
ControlClick("TexMod", "","[CLASS:Button; INSTANCE:12]")
Do
sleep(750)
Until (WinExists("[CLASS:#32768]"))
ControlSend("[CLASS:#32768]","","","{DOWN}")
ControlSend("[CLASS:#32768]","","","{ENTER}")
Do
sleep(750)
Until (WinExists("Select Texmod Packages to add."))
ControlSetText("Select Texmod Packages to add.", "","[CLASS:Edit; INSTANCE:1]","C:\Guild Wars\*.tpf") ;tpf path
ControlClick("Select Texmod Packages to add.", "","[CLASS:Button; INSTANCE:2]")
ControlClick("TexMod", "","[CLASS:Button; INSTANCE:12]")
Do
sleep(750)
Until (WinExists("[CLASS:#32768]"))
ControlSend("[CLASS:#32768]","","","{DOWN}")
ControlSend("[CLASS:#32768]","","","{ENTER}")
Do
sleep(750)
Until (WinExists("Select Texmod Packages to add."))
ControlSetText("Select Texmod Packages to add.", "","[CLASS:Edit; INSTANCE:1]","C:\Guild Wars\*.tpf") ;tpf path
ControlClick("Select Texmod Packages to add.", "","[CLASS:Button; INSTANCE:2]")
ControlClick("TexMod", "","[CLASS:Button; INSTANCE:12]")
Do
sleep(750)
Until (WinExists("[CLASS:#32768]"))
ControlSend("[CLASS:#32768]","","","{DOWN}")
ControlSend("[CLASS:#32768]","","","{ENTER}")
Do
sleep(750)
Until (WinExists("Select Texmod Packages to add."))
ControlSetText("Select Texmod Packages to add.", "","[CLASS:Edit; INSTANCE:1]","C:\Guild Wars\*.tpf") ;tpf path
ControlClick("Select Texmod Packages to add.", "","[CLASS:Button; INSTANCE:2]")
ControlClick("TexMod", "","[CLASS:Button; INSTANCE:12]")
Do
sleep(100)
Until (WinExists("[CLASS:#32768]"))
ControlSend("[CLASS:#32768]","","","{DOWN}")
ControlSend("[CLASS:#32768]","","","{ENTER}")
ControlClick("TexMod", "","[CLASS:Button; INSTANCE:11]")
WinClose("TexMod")