Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Multiple active windows


  • Please log in to reply
2 replies to this topic
BrainlessNobrainer
  • Members
  • 2 posts
  • Last active: Feb 24 2013 05:10 PM
  • Joined: 19 Feb 2013

Hello.

Let's say I'm trying to play a game in multiple windows (Borderlands 2). Is there any way to make all of these windows active, so all keyboard and mouse input gets send to all of them at the same time ? Or alternative, copy all input from active window and send it to other inactive game windows ?

I already made a script with sends keystrokes to inactive window with matching ahk_id, but I have no idea how to make multiple active windows.

Thanks for any help.



Stainless
  • Members
  • 2 posts
  • Last active: Feb 21 2013 04:32 PM
  • Joined: 19 Feb 2013

I'm still new with all of this but I think you can use WinGet to grab all the windows with the same name and then using that variable name send keystrokes to all inactive windows with the same name.

 

This is a small bit from a WoW multibox script:

WinGet, windowid, List, <Name of Window goes here>

#IfWinActive, <Name of Window goes here>
   Space::  ; jump 
	KeyWait, Space, D 
  	 ControlSend,, {Space} , ahk_id %windowid1% 
   	 ControlSend,, {Space} , ahk_id %windowid2%
   	 ControlSend,, {Space} , ahk_id %windowid3%
   	 ControlSend,, {Space} , ahk_id %windowid4%
   	 ControlSend,, {Space} , ahk_id %windowid5%
Return 

I think this is what you mean.

Like I said still new at scripting this myself.



BrainlessNobrainer
  • Members
  • 2 posts
  • Last active: Feb 24 2013 05:10 PM
  • Joined: 19 Feb 2013

I'm still new with all of this but I think you can use WinGet to grab all the windows with the same name and then using that variable name send keystrokes to all inactive windows with the same name.

 

This is a small bit from a WoW multibox script:

WinGet, windowid, List, <Name of Window goes here>

#IfWinActive, <Name of Window goes here>
   Space::  ; jump 
	KeyWait, Space, D 
  	 ControlSend,, {Space} , ahk_id %windowid1% 
   	 ControlSend,, {Space} , ahk_id %windowid2%
   	 ControlSend,, {Space} , ahk_id %windowid3%
   	 ControlSend,, {Space} , ahk_id %windowid4%
   	 ControlSend,, {Space} , ahk_id %windowid5%
Return 

I think this is what you mean.

Like I said still new at scripting this myself.

Yeah thanks,but this might work only for keys. How about mouse movement ?

Edit: Mouse movement might be solved be binding x and y axe to keyboard keys, not very effective but better than nothing. Thanks for help.