Ive never used this much beyond a simple SEND "VEL" command but now i need something else.
Im using VMware Workstation pro 12(in task manager its "VMware Workstation (32 bit) (2)") to run a second copy of "Tree of Savior"(host being "Client_tos (32 bit)"
(just wanna add... vmware is a virtual machine which is its own pc os thing so its a seperate copy of windows and steam running the game like an emulator)
The only thing i wanna write is a script for both of them to mimic my arrow key stroke, could probably spend a few hours trying to figure it out myself but im sure one of you can write it in a few minutes.
Thanks!
asking for a bit more then help but simple
Re: asking for a bit more then help but simple
would this take long is that why no one will do it
Re: asking for a bit more then help but simple
#IfWinActive, VMware Workstation
{Up}::
ControlSend,,{{Up} down}{{Up} up}
return
#IfWinActive, VMware Workstation
{Left}::
ControlSend,,{{Left} down}{{Left} up}
;return
#IfWinActive, VMware Workstation
{Right}::
ControlSend,,{{Right} down}{{Right} up}
return
#IfWinActive, VMware Workstation
{Down}::
ControlSend,,{{Down} down}{{Down} up}
return
plz its the best i can do
{Up}::
ControlSend,,{{Up} down}{{Up} up}
return
#IfWinActive, VMware Workstation
{Left}::
ControlSend,,{{Left} down}{{Left} up}
;return
#IfWinActive, VMware Workstation
{Right}::
ControlSend,,{{Right} down}{{Right} up}
return
#IfWinActive, VMware Workstation
{Down}::
ControlSend,,{{Down} down}{{Down} up}
return
plz its the best i can do
- Almost_there
- Posts: 404
- Joined: 30 Sep 2014, 10:32
Re: asking for a bit more then help but simple
You'r description on what you're trying to achieve is too vague to provide any help for that.
But you have at least put some effort in trying to make an actual script, but there is some errors:
* You only need to define the same program window name once.
* Too many curly brackets used.
* No point of writing {Right down}{Right up} - just write {Right} once.
So I did a simple clean up of your code - I don't have Wmware myself so I can't know if it's gonna work:
But you have at least put some effort in trying to make an actual script, but there is some errors:
* You only need to define the same program window name once.
* Too many curly brackets used.
* No point of writing {Right down}{Right up} - just write {Right} once.
So I did a simple clean up of your code - I don't have Wmware myself so I can't know if it's gonna work:
Code: Select all
#IfWinActive, VMware Workstation
Up::
ControlSend,,{Up}
return
Left::
ControlSend,,{Left}
return
Right::
ControlSend,,{Right}
return
Down::
ControlSend,,{Down}
return
Re: asking for a bit more then help but simple
thank you for reply, its cause its supposed to be "simple" Im just looking to have my Main game, and in the other tab i have another copy of the game running within VMware, all i want to do is when im on my main game when i press my arrow keys, the other window with vmware will do it too. i just want my characters to follow each other. does that help? will try that tho ty
any information i find is cluttered with WoW things..
any information i find is cluttered with WoW things..
Re: asking for a bit more then help but simple
Here ya go,
Code: Select all
coordmode,tooltip,screen
setbatchlines,-1
setkeydelay,-1
hwnd := winexist("ahk_class Notepad")
keyList := strsplit("backspace,space,enter,left,right,up,down,q,w,e,r,t,y,u,i,o,p,a,s,d,f,g,h,j,k,l,z,x,c,v,b,n,m",",")
keyQ := array()
mousegetpos
loop {
tt := ""
for k,v in keyList {
if (GetKeyState(v,"P")) {
if (!keyQ[v,"state"]) {
keyQ[v,"state"] := 1
controlsend,, % "{" v " down}",ahk_id %hwnd%
}
}
else if (keyQ[v,"state"]){
keyQ[v,"state"] := 0
controlsend,, % "{" v " up}",ahk_id %hwnd%
}
tt .= v ": " keyQ[v,"state"] "`n"
}
if (ptt != tt) {
ptt := tt
tooltip % ptt, 0, 0
}
}
rshift::exitapp
Who is online
Users browsing this forum: No registered users and 64 guests