Jump to content
View in the app

A better way to browse. Learn more.

Tuts 4 You

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Calling a .net method in another process.

Featured Replies

Posted

Hello all :)

Here is my problem: There is a program that starts up, and the user needs to click a "Play" button for it to start doing a certain thing. I want to make it so that the "Play" button is automatically pressed upon startup of the program, so that the user doesn't have to do it.

The program is coded in .NET. Normally, I would just change the entrypoint in ILDASM to something that calls the button1_click() method, but the program is wrapped in Xenocode. For the purposes of this exercise, unwrapping Xenocode is not an option (due to political reasons and my relations with the program creator...).

So, I must somehow tell the program to press button1_click() from an external process (that is running this program). I have tried sending keypresses (TAB TAB ENTER) and this was possible in earlier versions of the program, but no longer. With the newest update, in order to get the program to autorun, I must truly make it executed button1_click().

I assume now I have to do something with Reflection to get a reference to the method I want, and then execute it. Can anyone help me here? I really don't know where to start with all this .NET Reflection crap :(

Thanks,

-rendari

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.