Can you invoke app element process blocks?

Can you invoke app element process blocks?

avatar
Product: PowerShell Universal
Version: 5.6.4


Kind of an odd question but…

When building an app, is there any way one can programmatically invoke or interact with some other on screen element…. like a button for example? More specifically I want to programmatically invoke the -OnClick{} , -OnChange{} , -OnEnter {} type script blocks for any given app element.

Normally, i would write my typical -OnClick {} logic in a function, toss the function in the -OnClick{} then just programmatically call the function whenever I needed to (independent of user button clicks). But lets just say i’m lazy and dont want to go through the extra step of creating a function and nesting it in multiple code blocks. Can I somehow call the codeblock of another element?

Is that something that’s even possible?

avatar
(anonymous user)

Recommended Answer

Well, i’m a big dummy. Turns out it’s just the Invoke-UDEndpoint commandlet

This does exactly what i was hoping to do



9d9249830514ec1c2b43964a02aa9e4ddeb4a58f

9d9249830514ec1c2b43964a02aa9e4ddeb4a58f.png

All Comments (1)

avatar

Well, i’m a big dummy. Turns out it’s just the Invoke-UDEndpoint commandlet

This does exactly what i was hoping to do



9d9249830514ec1c2b43964a02aa9e4ddeb4a58f

9d9249830514ec1c2b43964a02aa9e4ddeb4a58f.png