Here is autohotscript I am using to open NUI item menu, instructions are similar to script I posted to "Buying Basic Potions & Writing Paper"
viewtopic.php?p=310886#p310807
I apologize if following is confusing. NUI commands reference:
https://wiki.nwnarelith.com/Console_command#-nui , or chat command "-nui ?"
Installation:
Installation:
https://www.autohotkey.com/download/ahk-install.exe , shoud associate .ahk scripts with this program, which are just text files.
Make an file, for example - nwn-nui.ahk or put it in you common nwn autohotkey script as I do.
Content of script text file:
Code: Select all
!^a::
Send {enter}
Sleep, 300
Send -nui item{enter}
Send {enter}
Sleep, 300
Send -nui set nui_item transparent true{enter}
Send {enter}
Sleep, 300
Send -nui set nui_item border false{enter}
Send {enter}
Sleep, 300
Send -nui set nui_item geometry 2155,470,232,663{enter}
return
Save file, double click it to run with AutoHotkey. You can see it's running by white H icon on green background in your system tray area. Right click shows menu with option to exit or reload the script in case it's needed after edit.
On pressing Ctrl + Alt + A, it opens item menu, sets it transparent, borderless and moves it to right-down corner of screen, resizing it to defined size.
How to get the right coordinates?
- Use chat (=console) command "-nui item" to open NUI Item menu
- Use "-nui helper" to open helper window
- Use mouse to position the NUI Item menu window suitably
- In helper window in top-right dropdown "window select" select "nui_item" to view properities of NUI Item menu window
- Hit refresh button in helper window
- Make note of horizontal & vertical postion and widht & height
- Edit Autohotkey script with these values (geometry command)
Merry xmas to all.