0

Following is my .py

import subprocess
subprocess.check_call('Project1.exe',shell=True,cwd='./')

I run a VB.net form by python,

But I want to know how to click button on vb.net form using Python?

Any idea?

I find a opposite question in here

Run python script in VB.net on button click

1 Answer 1

1

Finally I use pywinauto to do the job,

Here's the code

from pywinauto.application import Application
app = Application('uia').start('Project1.exe')
app['Form2'].GWLF_GOButton.click_input()

so simple code to do it

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.