Posts: 498
Threads: 38
Likes Received:
405 in 278 posts
Likes Given: 194
Joined: Aug 2023
Reputation:
18
Following from this discussion I added some new methods to LitDev extension, version 1.2.29.14 (get with Extension Manager or website).
LDFocus.ResetFocus()
LDTextWindow.LastKeyReset()
LDGraphicsWindow.LastKeyReset()
Posts: 171
Threads: 17
Likes Received:
53 in 42 posts
Likes Given: 59
Joined: Oct 2023
Reputation:
3
01-16-2025, 02:36 PM
(This post was last modified: 01-16-2025, 02:40 PM by jrmrhrb00.
Edit Reason: Edit
)
LitDev,
Thanks for doing this! Here's proof that it works. Run the snippet and hit the return key. LDGraphicsWindow.LastKeyReset does it's function.
GraphicsWindow.Show()
While key <> "Return"
Key=GraphicsWindow.LastKey
EndWhile
Program.Delay(10)
TW.WriteLine(key)
LDGraphicsWindow.LastKeyReset()
TW.WriteLine(GraphicsWindow.Lastkey)
JR
Posts: 336
Threads: 37
Likes Received:
122 in 96 posts
Likes Given: 227
Joined: Dec 2023
Reputation:
7
Reflection is really awesome I was trying using ZSReflection to do this get assembly key then get type key of GW and the set the "_lastkey" field to none but got some errors I will try to diagnose why error are coming.
ZS
Posts: 498
Threads: 38
Likes Received:
405 in 278 posts
Likes Given: 194
Joined: Aug 2023
Reputation:
18
Hi ZS,
Syntax is a bit nasty, but its one line of code so if you want I can share or help explain.
Posts: 336
Threads: 37
Likes Received:
122 in 96 posts
Likes Given: 227
Joined: Dec 2023
Reputation:
7
i made code but it didn't work does you tried.
ZS