Skip to content

Commit

Permalink
added gitignore, removed old code
Browse files Browse the repository at this point in the history
  • Loading branch information
Jurn Wubben committed Aug 26, 2024
1 parent cb3ca44 commit 6566656
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ReCenter.exe
11 changes: 2 additions & 9 deletions ReCenter.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,15 @@ Recenter() {
name: "Set me up for seated and standing You won't have a boundary, so you'll need to stay put. To create a boundary later, go to Start > Mixed Reality Portal on your desktop."
}).Click()
WMR.WaitElement({ name: "I'm sure" }).Click()
WMR.WaitElement({ name: "Centre" }).Click()

try {
while 1 {
WMR.FindElement({ name: "Centre" }).Click() ; In case something goes wrong, like not enough light
Sleep(200)
}
}
WMR.WaitElement({ name: "Centre" }).Click() ; Sometimes it get's stuck when there's e.g not enough light. TODO: fix

WMR.WaitElement({ name: "Expand"}) ; Make sure window doesn't hide too soon.

if WMRBar {
Send("#y")
}

; WinMinimize
WinMinimize
}

Recenter()

0 comments on commit 6566656

Please sign in to comment.