Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add CMData type return #683

Closed
wants to merge 3 commits into from
Closed

add CMData type return #683

wants to merge 3 commits into from

Conversation

vst93
Copy link

@vst93 vst93 commented Sep 12, 2024

Please provide Issues links to:

Provide test code:

	// get current Window Active , return CMData
	cmdata := robotgo.GetActiveCMData()

	// set Window Active by CMData
	robotgo.SetActiveByCMData(cmdata)
    

Description

In macos, I cannot get the pid of the wechat child window, so I can only use GetActive and SetActive to operate. However, since there is no secondary definition of the C.MData type, it is difficult to do the intermediate comparison operation, so I submitted This PR hopes to add CMData type return, and also add GetActiveCMData and SetActiveByCMData to facilitate operation.

By the way, since I am using it under macos15, I have to make adjustments based on the branch of #682

@vst93 vst93 requested a review from vcaesar as a code owner September 12, 2024 18:22
@CLAassistant
Copy link

CLAassistant commented Sep 12, 2024

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
0 out of 2 committers have signed the CLA.

❌ vst
❌ vcaesar


vst seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@vst93 vst93 changed the title Mdata pr add CMData type return Sep 12, 2024
vcaesar added a commit that referenced this pull request Sep 17, 2024
Add: export Handle data and add more window handle function #683
@vcaesar
Copy link
Member

vcaesar commented Sep 17, 2024

Closed because of code breaking and conflicts, I think there's must have clearer API and default promise call return value, see the #685.

@vcaesar vcaesar closed this Sep 17, 2024
@vcaesar vcaesar added this to the v1.0.0 milestone Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants