Created
June 6, 2018 20:08
-
-
Save kgsws/8acdf5f511d7246fd408a51c7a90f547 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sc.killAutoHandle(); | |
| sc.getService("ns:am2", (hndle) => { | |
| utils.log("got handle 0x" + hndle.toString(16)); | |
| // GetApplicationManagerInterface | |
| var res = sc.ipcMsg(7996).data(0).sendTo(hndle).assertOk(); | |
| sc.withHandle(res.movedHandles[0], (amih) => { | |
| utils.log("got handle 0x" + amih.toString(16)); | |
| // launch | |
| // var tid = utils.parseAddr('01006bd001e06000'); // Minecraft | |
| var tid = utils.parseAddr('01008BB00013C000'); // Flog | |
| // var tid = utils.parseAddr('0100AE0003424000'); // Shantae | |
| sc.ipcMsg(19).data(tid).sendTo(amih).assertOk().show(); | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment