YOUR ACCOUNT

Login or Register to post new topics or replies
Valhalla
Valhalla
Posts: 50
This script inserts a random seed in the seed box when you right click the render button. Things to know: Make sure your seed is visible until I enhance the script since it's a very rough draft. Only tested on a 4k screen, but I used location of the seed box edit8 so hopefully it will work on any screen size.

To use google AutoHotkey and download version 1 and install it. Once installed make a new text file, paste the following code into it, save and close the text file. Then change the text file extension from .txt to .ahk and you'll be able to run it.

Code

#SingleInstance, Force
#Persistent

SetKeyDelay, 0
SetBatchLines, -1

SetTimer, UF, 1000

UF: ;detects if mouse is hovering over Render and enables right click while it is
MouseGetPos, UX, UY, UW, UC
If(UC = "FFX::CustomDrawControl4")
{
   Hotkey, RButton, On
   Return
}
Hotkey, RButton, Off
Return

RButton::
SetMouseDelay, 0
BlockInput, MouseMove
Random, RANDM, 20000, 100000000
MouseGetPos, xc, yc
WinGetActiveTitle, AWT
ControlGetPos, eX, eY, eW, eH, Edit8, %AWT% ahk_class FFX::Form
MouseMove, eX+50, eY+15, 0 ;4K 3539, 1918, 0
Sleep, 100
Send, {LButton}
Sleep, 150
Send, {LButton}
Sleep, 150
Send, %RANDM%
Sleep, 500
MouseMove, xc, yc, 0
Sleep, 100
Send, {LButton}
BlockInput, MouseMoveOff
BlockInput, Off
Return

^ESC::ExitApp ;Control + Escape Exits App


Eventually I'll clean it up and add a GUI, one click auto export, random model, guidance, steps, height and width.
FF12 Environment Library By Valhalla - Go From ~10ish Built-in FFENVs To 327 FFENVs! mediafire.com/folder/5mof7pqxvs0fr/FFENV

Current Rig: AMD TR 3970X 32C|64T 4.5GHz CPU - Nvidia 24GB RTX 3090 GPU -128GB Ram And Two 4TB M.2s.
  Details E-Mail
Valhalla
Valhalla
Posts: 50
Read the first post for instructions on setting up and using AutoHotkey.
Added full randomization to steps, guidance and seed. Also added auto random number inserted when saving. Example: Kitty.png Forest.png will automatically turn into Kitty-238443.png Forest-1595.png then the cursor will automatically move to the save button. All functions can be disabled by removing the ; from the top and bottom.

Will turn into functions to clean up the code and add a gui/frontend that overlays in UFs blank space (only while UF is active) with text and checkboxes to disable functions and number inputs to change code randomness range soon. There are some images under the code the were made and saved in three clicks.
FF12 Environment Library By Valhalla - Go From ~10ish Built-in FFENVs To 327 FFENVs! mediafire.com/folder/5mof7pqxvs0fr/FFENV

Current Rig: AMD TR 3970X 32C|64T 4.5GHz CPU - Nvidia 24GB RTX 3090 GPU -128GB Ram And Two 4TB M.2s.
  Details E-Mail
Valhalla
Valhalla
Posts: 50
Deleted until I can get it to post without cutting off my code/images. Here's the the new code on pb https://pastebin.com/kn2CYQSZ
FF12 Environment Library By Valhalla - Go From ~10ish Built-in FFENVs To 327 FFENVs! mediafire.com/folder/5mof7pqxvs0fr/FFENV

Current Rig: AMD TR 3970X 32C|64T 4.5GHz CPU - Nvidia 24GB RTX 3090 GPU -128GB Ram And Two 4TB M.2s.
  Details E-Mail

Join Our Community!

Filter Forge has a thriving, vibrant, knowledgeable user community. Feel free to join us and have fun!

33,711 Registered Users
+18 new in 30 days!

153,531 Posts
+39 new in 30 days!

15,347 Topics
+72 new in year!

Create an Account

Online Users Last minute:

23 unregistered users.