Posts: 632
Threads: 40
Likes Received:
474 in 329 posts
Likes Given: 250
Joined: Aug 2023
Reputation:
25
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: 196
Threads: 19
Likes Received:
57 in 46 posts
Likes Given: 67
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: 394
Threads: 38
Likes Received:
149 in 116 posts
Likes Given: 258
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: 632
Threads: 40
Likes Received:
474 in 329 posts
Likes Given: 250
Joined: Aug 2023
Reputation:
25
Hi ZS,
Syntax is a bit nasty, but its one line of code so if you want I can share or help explain.
Posts: 394
Threads: 38
Likes Received:
149 in 116 posts
Likes Given: 258
Joined: Dec 2023
Reputation:
7
i made code but it didn't work does you tried.
ZS