Created
January 6, 2015 11:47
-
-
Save ifree/d137ff8996ed8547a965 to your computer and use it in GitHub Desktop.
bulk import texture into unreal editor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Constants.au3> | |
#include <WinAPI.au3> | |
#include <Array.au3> | |
#include <WindowsConstants.au3> | |
#include <Debug.au3> | |
_DebugSetup("", True) | |
Local $win = WinWait("Import") | |
Local $num = 0 | |
While $win | |
$txtName = 0x00005A96 | |
$cboPackage = 0x00005A93 | |
$btnOk = 0x000013EC | |
$name = ControlGetText("Import", "", $txtName) | |
$package = ControlGetText("Import", "", $txtName) | |
if StringRight($name, 3) == "big" Then | |
ControlSetText("Import", "", $cboPackage, StringLeft($name, StringLen($name) - 4)) | |
Else | |
ControlSetText("Import", "", $cboPackage, $name) | |
EndIf | |
;ControlSetText("Import", "", $txtName, $name & 123) | |
ControlClick("Import", "OK", $btnOk) | |
;handle confirm dialog | |
_DebugOut("another wait") | |
$confirmPop = WinWait("Overwrite existing file?", "", 1) | |
_DebugOut("confirm pop wait timeout") | |
if $confirmPop Then | |
ControlClick("Overwrite existing file?", "Replace All", "[CLASS:Button;INSTANCE:2]") | |
Else | |
_DebugOut("no confirm") | |
EndIf | |
Sleep(5) | |
_DebugOut("next round wait") | |
$win = WinWait("Import", "", 5) | |
$num = $num + 1 | |
_DebugOut("next round start: " & $num) | |
WEnd | |
MsgBox($MB_OK, "info", "finished") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment