
Quote from josevdr95 on May 21, 2021, 11:56 pm@shahram
Hola, hace un tiempo tuve la idea de hacer un programa similar a APK Release Tools pero tuve algunos errores la única forma que encontré de rellenar el formulario fue usando “SendKeys” y no me dio los resultados esperados pudieras subir un ejemplo de cómo hiciste esto en tu programa.
Saludos
Run "[ruta_java]keytool.exe" " -genkey -v -keystore NOMBRE-key.keystore -alias NOMBRE -keyalg RSA -keysize 2048 -validity 10000" "LoadComplete" "" "[id_app]" Delay "1000" SendKeys "[id_app]" "123456{Enter}" SendKeys "[id_app]" "123456{Enter}" Delay "1000" SendKeys "[id_app]" "[nombre_apellidos]{Enter}" Delay "1000" SendKeys "[id_app]" "[unidad_organizacion]{Enter}" Delay "1000" SendKeys "[id_app]" "[nombre_organizacion]{Enter}" Delay "1000" SendKeys "[id_app]" "[nombre_ciudad]{Enter}" Delay "1000" SendKeys "[id_app]" "[nombre_provincia]{Enter}" Delay "1000" SendKeys "[id_app]" "[nombre_codigoPais]{Enter}" Delay "1000" SendKeys "[id_app]" "si{Enter}" Delay "5000" SendKeys "[id_app]" "123456{Enter}" SendKeys "[id_app]" "123456{Enter}"
Hola, hace un tiempo tuve la idea de hacer un programa similar a APK Release Tools pero tuve algunos errores la única forma que encontré de rellenar el formulario fue usando “SendKeys” y no me dio los resultados esperados pudieras subir un ejemplo de cómo hiciste esto en tu programa.
Saludos
Run "[ruta_java]keytool.exe" " -genkey -v -keystore NOMBRE-key.keystore -alias NOMBRE -keyalg RSA -keysize 2048 -validity 10000" "LoadComplete" "" "[id_app]"
Delay "1000"
SendKeys "[id_app]" "123456{Enter}"
SendKeys "[id_app]" "123456{Enter}"
Delay "1000"
SendKeys "[id_app]" "[nombre_apellidos]{Enter}"
Delay "1000"
SendKeys "[id_app]" "[unidad_organizacion]{Enter}"
Delay "1000"
SendKeys "[id_app]" "[nombre_organizacion]{Enter}"
Delay "1000"
SendKeys "[id_app]" "[nombre_ciudad]{Enter}"
Delay "1000"
SendKeys "[id_app]" "[nombre_provincia]{Enter}"
Delay "1000"
SendKeys "[id_app]" "[nombre_codigoPais]{Enter}"
Delay "1000"
SendKeys "[id_app]" "si{Enter}"
Delay "5000"
SendKeys "[id_app]" "123456{Enter}"
SendKeys "[id_app]" "123456{Enter}"

Quote from shahram on May 22, 2021, 6:19 amQuote from josevdr95 on May 21, 2021, 11:56 pm@shahram
Hola, hace un tiempo tuve la idea de hacer un programa similar a APK Release Tools pero tuve algunos errores la única forma que encontré de rellenar el formulario fue usando “SendKeys” y no me dio los resultados esperados pudieras subir un ejemplo de cómo hiciste esto en tu programa.
Saludos
Run "[ruta_java]keytool.exe" " -genkey -v -keystore NOMBRE-key.keystore -alias NOMBRE -keyalg RSA -keysize 2048 -validity 10000" "LoadComplete" "" "[id_app]"Delay "1000"SendKeys "[id_app]" "123456{Enter}"SendKeys "[id_app]" "123456{Enter}"Delay "1000"SendKeys "[id_app]" "[nombre_apellidos]{Enter}"Delay "1000"SendKeys "[id_app]" "[unidad_organizacion]{Enter}"Delay "1000"SendKeys "[id_app]" "[nombre_organizacion]{Enter}"Delay "1000"SendKeys "[id_app]" "[nombre_ciudad]{Enter}"Delay "1000"SendKeys "[id_app]" "[nombre_provincia]{Enter}"Delay "1000"SendKeys "[id_app]" "[nombre_codigoPais]{Enter}"Delay "1000"SendKeys "[id_app]" "si{Enter}"Delay "5000"SendKeys "[id_app]" "123456{Enter}"SendKeys "[id_app]" "123456{Enter}"Run "[ruta_java]keytool.exe" " -genkey -v -keystore NOMBRE-key.keystore -alias NOMBRE -keyalg RSA -keysize 2048 -validity 10000" "LoadComplete" "" "[id_app]" Delay "1000" SendKeys "[id_app]" "123456{Enter}" SendKeys "[id_app]" "123456{Enter}" Delay "1000" SendKeys "[id_app]" "[nombre_apellidos]{Enter}" Delay "1000" SendKeys "[id_app]" "[unidad_organizacion]{Enter}" Delay "1000" SendKeys "[id_app]" "[nombre_organizacion]{Enter}" Delay "1000" SendKeys "[id_app]" "[nombre_ciudad]{Enter}" Delay "1000" SendKeys "[id_app]" "[nombre_provincia]{Enter}" Delay "1000" SendKeys "[id_app]" "[nombre_codigoPais]{Enter}" Delay "1000" SendKeys "[id_app]" "si{Enter}" Delay "5000" SendKeys "[id_app]" "123456{Enter}" SendKeys "[id_app]" "123456{Enter}"Run "[ruta_java]keytool.exe" " -genkey -v -keystore NOMBRE-key.keystore -alias NOMBRE -keyalg RSA -keysize 2048 -validity 10000" "LoadComplete" "" "[id_app]" Delay "1000" SendKeys "[id_app]" "123456{Enter}" SendKeys "[id_app]" "123456{Enter}" Delay "1000" SendKeys "[id_app]" "[nombre_apellidos]{Enter}" Delay "1000" SendKeys "[id_app]" "[unidad_organizacion]{Enter}" Delay "1000" SendKeys "[id_app]" "[nombre_organizacion]{Enter}" Delay "1000" SendKeys "[id_app]" "[nombre_ciudad]{Enter}" Delay "1000" SendKeys "[id_app]" "[nombre_provincia]{Enter}" Delay "1000" SendKeys "[id_app]" "[nombre_codigoPais]{Enter}" Delay "1000" SendKeys "[id_app]" "si{Enter}" Delay "5000" SendKeys "[id_app]" "123456{Enter}" SendKeys "[id_app]" "123456{Enter}"
Hola @josevdr95
Lo que hice:
1. Cree una variable llamada CM para almacenar comandos y parámetros
por ejemplo:SetVar "[CM]" "keytool -genkey -v -keystore my.jks ... etc."
2. Ejecute cmd.exe y agregue parámetros
Run "cmd.exe" "/c [CM]" "" "" "[AppID]"
Finalmente, me disculpo por los errores ortográficos. Usé Google Translate para traducir :)
Quote from josevdr95 on May 21, 2021, 11:56 pmHola, hace un tiempo tuve la idea de hacer un programa similar a APK Release Tools pero tuve algunos errores la única forma que encontré de rellenar el formulario fue usando “SendKeys” y no me dio los resultados esperados pudieras subir un ejemplo de cómo hiciste esto en tu programa.
Saludos
Run "[ruta_java]keytool.exe" " -genkey -v -keystore NOMBRE-key.keystore -alias NOMBRE -keyalg RSA -keysize 2048 -validity 10000" "LoadComplete" "" "[id_app]"Delay "1000"SendKeys "[id_app]" "123456{Enter}"SendKeys "[id_app]" "123456{Enter}"Delay "1000"SendKeys "[id_app]" "[nombre_apellidos]{Enter}"Delay "1000"SendKeys "[id_app]" "[unidad_organizacion]{Enter}"Delay "1000"SendKeys "[id_app]" "[nombre_organizacion]{Enter}"Delay "1000"SendKeys "[id_app]" "[nombre_ciudad]{Enter}"Delay "1000"SendKeys "[id_app]" "[nombre_provincia]{Enter}"Delay "1000"SendKeys "[id_app]" "[nombre_codigoPais]{Enter}"Delay "1000"SendKeys "[id_app]" "si{Enter}"Delay "5000"SendKeys "[id_app]" "123456{Enter}"SendKeys "[id_app]" "123456{Enter}"Run "[ruta_java]keytool.exe" " -genkey -v -keystore NOMBRE-key.keystore -alias NOMBRE -keyalg RSA -keysize 2048 -validity 10000" "LoadComplete" "" "[id_app]" Delay "1000" SendKeys "[id_app]" "123456{Enter}" SendKeys "[id_app]" "123456{Enter}" Delay "1000" SendKeys "[id_app]" "[nombre_apellidos]{Enter}" Delay "1000" SendKeys "[id_app]" "[unidad_organizacion]{Enter}" Delay "1000" SendKeys "[id_app]" "[nombre_organizacion]{Enter}" Delay "1000" SendKeys "[id_app]" "[nombre_ciudad]{Enter}" Delay "1000" SendKeys "[id_app]" "[nombre_provincia]{Enter}" Delay "1000" SendKeys "[id_app]" "[nombre_codigoPais]{Enter}" Delay "1000" SendKeys "[id_app]" "si{Enter}" Delay "5000" SendKeys "[id_app]" "123456{Enter}" SendKeys "[id_app]" "123456{Enter}"Run "[ruta_java]keytool.exe" " -genkey -v -keystore NOMBRE-key.keystore -alias NOMBRE -keyalg RSA -keysize 2048 -validity 10000" "LoadComplete" "" "[id_app]" Delay "1000" SendKeys "[id_app]" "123456{Enter}" SendKeys "[id_app]" "123456{Enter}" Delay "1000" SendKeys "[id_app]" "[nombre_apellidos]{Enter}" Delay "1000" SendKeys "[id_app]" "[unidad_organizacion]{Enter}" Delay "1000" SendKeys "[id_app]" "[nombre_organizacion]{Enter}" Delay "1000" SendKeys "[id_app]" "[nombre_ciudad]{Enter}" Delay "1000" SendKeys "[id_app]" "[nombre_provincia]{Enter}" Delay "1000" SendKeys "[id_app]" "[nombre_codigoPais]{Enter}" Delay "1000" SendKeys "[id_app]" "si{Enter}" Delay "5000" SendKeys "[id_app]" "123456{Enter}" SendKeys "[id_app]" "123456{Enter}"
Hola @josevdr95
Lo que hice:
1. Cree una variable llamada CM para almacenar comandos y parámetros
por ejemplo:
SetVar "[CM]" "keytool -genkey -v -keystore my.jks ... etc."
2. Ejecute cmd.exe y agregue parámetros
Run "cmd.exe" "/c [CM]" "" "" "[AppID]"
Finalmente, me disculpo por los errores ortográficos. Usé Google Translate para traducir :)
