Sign in to follow this  
Followers 0
c7aesa7r

Send key background windows

5 posts in this topic

#1 ·  Posted (edited)

$key = "{Enter}"



$winList = WinList('[CLASS:netlimiter4]')


   For $i = 1 to $winList[0][0]

      $title = $winList[$i][0]
      $handle = $winList[$i][1]
      $controlid = ""
      $text = ""
      ControlSend($handle,$text,$controlid,$key)


      Next
      Exit

Can somebody help me edit this script to instead detect the window title, detect the window exe.

I tried edit:
 

$winList = WinList('[CLASS:netlimiter4]')

To

$winList = WinList('[CLASS:netlimiter.exe]')

 

Edited by c7aesa7r

Share this post


Link to post
Share on other sites



#2 ·  Posted

Someone?

Share this post


Link to post
Share on other sites

#3 ·  Posted

It's not clear what you are trying to do. What's wrong with the existing script? Perhaps if you explained why you need to make the desired change it would make more sense.

Share this post


Link to post
Share on other sites

#4 ·  Posted

The script send ENTER to minimized windows, but i want it detect the window by exe name and not window title

Share this post


Link to post
Share on other sites

#5 ·  Posted

Why? What doesn't work about the existing method?

AFAIC, WinList doesn't offer an option to work as you desire. Perhaps you could use ProcessList and then somehow retrieve window handles using the process ID.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0