1 Star 1 Fork 0

miozus / MyTimeAtPortiaKeymap

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or Download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

MyTimeAtPortiaKeymap

Replace mouse operation, Simply repeat action.

One key does more than one thing.

portiakeymap

中文文档 | README

Requirements

  • OS : Windows 7 / 10 / 11
  • Autohotkey : H-2.0-beta.3 ( @ thqby/AutoHotkey_H )
  • My Time At Portia : final 2.0.141541 ( last updated time : 2021 / 08 )
  • Game Resolution : 1680 * 1050 ( only )

Install

  1. download .zip package from lastest Releases and unzip . Or
git clone https://github.com/miozus/MyTimeAtPortiaKeymap.git
  1. Open Portia.ahk with Notepad or Visual Studio Code, change setting as you used to ( or use default setting of mine directly and skip this step )
    • GameSetting : write down what you set in game.
    • Keymap : yourHotkey::function() , you can define new function in PortiaFuntions.ahk
  2. Setting In Game :
    • Setting Reference Screenshot
    • Resolution must be 1680 * 1050 .
    • Lens inertia must be checked, for move mouse with fluent perfomance.
  3. For once, right click Autohotkey.exe ( win32 or x64w ) , set it run with Administrator privilige. Then double click Portia.ahk.
  4. Play game ( the order of launcher does not matter ).

Design Note

Do you want to know how does this project code, from 10 lines, grows up to 1500 lines ?

Read Design Note with google translator please.

Usage

MyTimeAtPortiaKeymap

Real Game Demo

🖱️ Game Mouse

Mouse controls perspective. yes, it's VIM style:

Camera
K
H J L
From I O ; '
To LeftButton RightButton Scroll down Scroll up

A : Hold on while press mouse hotkey above, it can slow down mouse move speed, which is useful on bag UI.

/ : Resize actor's perspective to focus on forehead.

🏃‍♀️ Hero Direction

At Oustside, actor run in 4 directions ( up, down, left, right ):

Run
E
S D F

But if you open staitc UI, actor can't move at the time, the directions become another keymap set:

S F Funtcion
PageUI left right click left / right button

( PageUI : except BagUI case of poverty to release all grids. )

Hotkey Action Function
E previous click previous Bag Item
D next click next Bag Item

If there is CounterUI, those actions priority is the highest, for clicking CounterUI button:

Modifier S F Function
minus plus click
Ctrl min max click
Alt center center click and enable to input number

⛏️ Work State

workState

Each state has two skills, they aim to do one work together.

State Name T Main Skill W Assist Skill Function
🛖 Hoster conitnueWorkingProduct startMaxProduct Default
🐟 Fisher fish +5 fish -10 number 1~5 ⇒ feed n*35 rice
⛏️ Farmer LButtonClickLoop seekingTreasures press , to stop loop, Eletic Drill prefer to use mouse or hold I

. : Turn to next state for cycle.

📦 Item Selector

Number Hotkey would do the right thing, though there are different Scenes.

Default ( Outside )

1 ~ P : No mapping, remain origin key.

ManualUI

Hotkey Maping Position Function
1 ~ 3 [1, 1-3] N's Tab
4 5 [left, right] start makeup

BagUI

Hotkey Maping Position Function
1 ~ 8 [1-8, 1] 1st row
9 0 - = [1-8, 2-5] the 2 ~ 5 row, like climb down ladder
P [1-8, P] equipment bar

Q : Quick Sort Bag and Box's Items, and hover on the center fo Box.

ListUI

Hotkey Maping Position Bioler Station Relic FeedAnimal Cook Menu
1 ~ 7 [1, 1-7] N's product stages food menu

Specially, when you hold on modifier key above all, it follows secondary action.

Modifier Hotkey Maping Position Function
Ctrl 1 ~ P [1-8, N] And Press Exchange ( to bag )
Alt 1 ~ P [1-8, N] And Press RightButton ( to box / hang up equipment )

🤖 Unitelligent Robot

"Perhaps I knows what you do next."

If you stay outside, farm or ride aircraft, it keep silent as origin key.

It appears at those scene:

  • Accept the Chamber of Commerce Daily Quest
  • Feed Animal
  • Read Email
  • Arrange food and wait for alpaca
  • Dialog choose option 1
  • Start challenge remains
  • Lead you go home by bus

It feels upset sometimes, keep patient please.

🧪 Develop Tool

Now you have the ability to copy code from clipboard, which can recognise the game scene, and develp your new function.

Combine G Function
Ctrl which scene now detech every collected scene and register state
Alt pixelsearch under cursor get copied code
Ctrl Alt click under cursor get copied code
Ctrl Shift convert counterUI position to string get copied code
( null ) G press origin key

Design notes will be release soon.

Game demo video cutted completed, is making icon description or words.

Contributing

All by myself, welcome to PR.

License

MIT © Copyright (c) 2021 miozus

Repository Comments ( 0 )

Sign in to post a comment

About

面对多变场景,替代鼠标操作,简化重复动作。 expand collapse
AutoHotkey
MIT
Cancel

Releases (1)

All

Contributors

All

Activities

Load More
can not load any more
AutoHotkey
1
https://gitee.com/ch4li/MyTimeAtPortiaKeymap.git
git@gitee.com:ch4li/MyTimeAtPortiaKeymap.git
ch4li
MyTimeAtPortiaKeymap
MyTimeAtPortiaKeymap
master

Search