Skip to content

Commit

Permalink
v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Snacksy committed Dec 22, 2022
1 parent a8da2c7 commit fae21bc
Show file tree
Hide file tree
Showing 9 changed files with 468 additions and 34 deletions.
42 changes: 20 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,39 @@
# SimpleWall Script
<p align="center">
<a href="https://example.com/">
<img src="icon.png" alt="Logo" width=160 height=160>
</a>

AutoHotKey Script that creates a wall of Minecraft instances and automatically generate new worlds to increase the speed of finding good seeds for speedrunning.
<h1 align="center">SimpleWall Script</h1>

![](screenshot.png)
<p align="center">
Multi instance Minecraft wall for finding speedrun seeds.
<!-- <br>
<a href="https://reponame/issues/new?template=bug.md">Report bug</a>
·
<a href="https://reponame/issues/new?template=feature.md&labels=feature">Request feature</a> -->
</p>

</p>

## Download
### [Download the SimpleWall Script](https://github.com/Jesper-Hustad/SimpleWallScript/releases/download/v0.2/SimpleWallScript.ahk)
![](gui.jpg)

<!-- ## Download -->
## [Download the SimpleWall Script](https://github.com/Jesper-Hustad/SimpleWallScript/releases/download/v0.2/SimpleWallScript.ahk)



<!-- Other version that does not fullscreen: [Modified Script without fullscreen](https://github.com/Jesper-Hustad/SimpleWallScript/releases/download/Alpha/SimpleWallScript.ahk) -->


## Getting Started
0. Setup multiple Minecraft instances (see below)
1. Install Current Version of AutoHotKey here: https://www.autohotkey.com/
2. Download the Script using the link above
3. Launch the script by double clicking the file
4. **Refresh** HotKey (Default is `CTRL + Y`) to start wall
5. **Select** HotKey (Default is `CTRL + E`) while hovering mouse over Minecraft window to select it for speed-running.
6. **Refresh** at any time to go back to the wall


## Setting up multiple Minecraft instances
This script assumes you have multiple instances of minecraft running using MultiMC or similar.
Learn how to setup minecraft with MultiMC and speedrunning mods here: https://www.youtube.com/watch?v=VL8Syekw4Q0.
After setting up MultiMC select an instance and click "Copy Instance" to create more.

## Feedback wanted!
Is there something you noticed is missing?
Experiencing any bugs?
Is there an optimization or feature that you think should be implemented?
[Create a new issue here on github](https://github.com/Jesper-Hustad/SimpleWallScript/issues/new/choose) and we will take your feedback.

## Feedback
Please give feedback on how you are experiencing the program and any bugs you encounter!
Feel free to give ideas for new features you would like to see in future releases.

## Features
- Make custom HotKeys for Select and Refresh
- Adjust wall by using the sliders and visualization
- Adjust the spacing between windows
86 changes: 74 additions & 12 deletions SimpleWallScript.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ defaultStartKey=^E
defaultResetKey=^Y

; slower computers may need to increase this value
cleanF3PauseMenuWaitTime:=500
cleanF3PauseMenuWaitTime:=1300

; INSTRUCTIONS:
; Install Current Version of AutoHotKey here: https://www.autohotkey.com/
Expand All @@ -34,7 +34,7 @@ CoordMode, Mouse , Screen
#NoEnv
#NoTrayIcon

VERSION=v1.0.0
VERSION=1.1.0
currentGameWindow:=0
resetList:=[]
defaultPadding=0
Expand All @@ -43,6 +43,7 @@ previousInstanceCount:=-1
layoutChange := false
isSecondReset := false
globalInstanceList := 0
hoverNavigationCount:=0

SysGet, screenWidth, 61
SysGet, screenHeight, 62
Expand Down Expand Up @@ -159,6 +160,7 @@ removeFocus(){
Gui, 2: Show
return
}

; ------------------------------- Start of UI -----------------------------------

Menu, tray, add, Show GUI, GUIMenu
Expand Down Expand Up @@ -186,9 +188,11 @@ inputPosX := 248
inputPosY := 38

W1 := width - 7,w2 := width - 5,w3 := width - 3,w4 := width - 72
,w6:= width -47,w7:= width - 25,w5 := (width-72) //2,h1 := height - 50
,w6:= width -57,w7:= width - 25,w5 := (width-72) //2,h1 := height - 50
,h3 := height - 20,h2 := height - 17,sbpart := (width-70) //2

w8:=w7-49, w9:=w8+1, w10:=w7-5, w11:=width-w10, w12:=w6-5, w13:=w11+2, w14:=w8-5

gui, destroy

gui, color, %color13%, %color13% ;gui background color
Expand All @@ -198,9 +202,19 @@ Gui, Add, Progress,+E0x20 x-0 y0 w%width%+2 h26 Background%color1% Disabled ;tit
Gui Add, Progress, x%tablePosX% y%tablePosY% w%tableWidth% h%tableHeight% Backgroundfcfcfc

gui, font, Q5 c%color12% s14, Bahnschrift Light
Gui, Add, Text, +E0x20 0x200 x%w7% cBlack y2 w20 h20 BackgroundTrans Center gguiclose, X ;✕ ✖ ✗ ✘
Gui, Add, Progress,+E0x20 x%w10% y0 w%w11% h26 Backgroundred vcloseHover Disabled Hidden
Gui, Add, Progress,+E0x20 x%w12% y0 w%w13% h26 Backgroundaaa6a6 vminimizeHover Disabled Hidden
Gui, Add, Progress,+E0x20 x%w14% y0 w17 h26 Backgroundaaa6a6 vsettingHover Disabled Hidden


Gui Font, q5 s14, Arial Unicode MS
; Gui Add, Text, +E0x20 0x200 cBlack x%w8% y2 w15 h22 vsettingText1 BackgroundTrans Left gguisettings, % Chr(0x22EE)
; Gui Add, Text, +E0x20 0x200 cBlack x%w9% y2 w15 h22 vsettingText2 BackgroundTrans Left gguisettings, % Chr(0x22EE)

Gui, Add, Text, +E0x20 0x200 x%w7% cBlack y2 w20 h20 vcloseText BackgroundTrans Center gguiclose, X
gui, font, Q5 c%color12% s15, Consolas
Gui, Add, Text, +E0x20 0x200 x%w6% cBlack y-2 w20 h20 BackgroundTrans Center gminimize , _ ; - to min gui
Gui, Add, Text, +E0x20 0x200 x%w6% cBlack y-2 w20 h20 vminimizeText BackgroundTrans Center gminimize , _


; wall column and row editing GUI
t1 := tablePosX+tableWidth, t2 := tablePosY+tableHeight, t3 := tableHeight+2, tOffset:=25, t4 := tablePosY-tOffset, t5 := tableWidth+2, t6 := t1+5
Expand All @@ -219,17 +233,35 @@ Gui, Add, Slider, +E0x20 0 cRed x%t6% y%tablePosY% w23 h%tableHeight% GSliderRo
gui, font, Q5 c%color12% s13, Bahnschrift ;color & size GuiTitle
Gui, Add, Text, +E0x20 0x200 cBlack x6 y3 w%width% h22 BackgroundTrans Left gGuiMove , %guititle%
gui, font, Q5 c888888 s10, Calibri ;color & size GuiTitle
Gui, Add, Text, +E0x20 0x200 x142 y5 w%width% h22 BackgroundTrans gGuiMove , %VERSION%
Gui, Add, Text, +E0x20 0x200 x142 y5 w%width% h22 BackgroundTrans gGuiMove , v%VERSION%

; hotkey input GUI
i1 := inputPosY+20, i2 :=i1+28, i3 :=i2+20, i4:=i3+28, i5:=i4+20
i1 := inputPosY+20, i2 :=i1+28, i3 :=i2+20, i4:=i3+28, i5:=i4+20, i50:=inputPosX-2, i6:=i50+19, i7:=i50+2


; Gui Font, q5 s20, Arial Unicode MS
; Gui Add, Text, +E0x20 0x200 cBlack x27 y%inputPosY% w%width% h22 BackgroundTrans Left , ?
; F505
; Chr(0x1F446)
Gui Font, q5 s12, Arial Unicode MS
Gui Add, Text, +E0x20 0x200 cBlack x%i50% y%inputPosY% w%width% h22 BackgroundTrans Left , % Chr(0x1F446)
Gui Font, q5 s16, Arial Unicode MS
Gui Add, Text, +E0x20 0x200 cBlack x%i7% y%i2% w%width% h22 BackgroundTrans Left , % Chr(0x21BB)
Gui Font, q5 s7.5, Arial Unicode MS
; Gui Add, Text, +E0x20 0x200 cBlack x%i7% y%i4% w%width% h22 BackgroundTrans Left , % Chr(0x2194)
; Chr(0x25BB)


gui, Font, Q5 s10 cBlack w500, Bahnschrift
Gui, Add, Text, +E0x20 0x200 cBlack x%i6% y%inputPosY% w%width% h22 BackgroundTrans Left, Select
Gui, Add, Text, +E0x20 0x200 cBlack x%i6% y%i2% w%width% h22 BackgroundTrans Left,Refresh
Gui, Add, Text, +E0x20 0x200 cBlack x%inputPosX% y%i4% w%width% h22 BackgroundTrans Left, Spacing



gui, Font, Q5 s10 cBlack w500, Bahnschrift
Gui, Add, Text, +E0x20 0x200 cBlack x%inputPosX% y%inputPosY% w%width% h22 BackgroundTrans Left, Select
Gui, Add, Hotkey, +E0x20 0 cRed x%inputPosX% y%i1% w70 h23 cBlack vChosenStartKey gNewStartHotKey, %defaultStartKey%
Gui, Add, Text, +E0x20 0x200 cBlack x%inputPosX% y%i2% w%width% h22 BackgroundTrans Left, Refresh
Gui, Add, Hotkey, x%inputPosX% y%i3% w70 h23 vChosenResetKey gNewResetHotKey, %defaultResetKey%
Gui, Add, Text, +E0x20 0x200 cBlack x%inputPosX% y%i4% w%width% h22 BackgroundTrans Left, Spacing
Gui, Add, Edit, +E0x20 0 x%inputPosX% y%i5% w70 h23 Number cBlack BackgroundWhite, 0
Gui, Add, UpDown, vcurrentPadding gNewPadding Range-10-40, %defaultPadding%
currentPadding := defaultPadding
Expand Down Expand Up @@ -272,9 +304,12 @@ HotKey, %defaultStartKey%, startGameRoutine, On
; I_Icon = C:\favicon.ico
; IfExist, %I_Icon%
; Menu, Tray, Icon, %I_Icon%, 1, 1
; Menu, Tray, Tip , SimpleWall Script

OnMessage(0x200, "hoverGui")

; display gui
gui, show, w%width% h%height%
gui, show, w%width% h%height%, SimpleWall Script %VERSION%
gui, +lastfound +HwndThisGui
return
; end of gui initialization
Expand Down Expand Up @@ -327,14 +362,37 @@ clickedBackgroundRemoveFocus(){
GuiControl, Focus, DefaultButton
}

hoverGui(wParam, lParam, Msg) {
MouseGetPos,mouseX,mouseY,,
WinGetPos,winX,winY,,, %ThisGui%,
x:=(mouseX-winX)
y:=(mouseY-winY)
displayHoverGui(x,y)

return
}

displayHoverGui(x,y){
global
insideY := (y<26)&&(y>1)
guiControl, % (insideY&&w10<x&&x<(w10+w11-1)) ? "Show" : "Hide", closeHover
guiControl, % (insideY&&w12<x&&x<w10) ? "Show" : "Hide", minimizeHover
; guiControl, % (insideY&&w14<x&&x<w12) ? "Show" : "Hide", settingHover

return
}

; ---------------------- Subroutines ----------------------

startGameRoutine:
actionSelect()
return

newWorldRoutine:
actionReset()
Loop {
actionReset()
Sleep, 5000
}
return

newStartHotKey:
Expand Down Expand Up @@ -362,6 +420,10 @@ sliderRow:
layoutChange:=true
return

GuiSettings:
MsgBox, clicked settings
return

minimize:
winminimize,
return
Expand Down
Binary file modified SimpleWallScript.exe
Binary file not shown.
Binary file added gui.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified icon.ico
Binary file not shown.
Binary file added icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit fae21bc

Please sign in to comment.