Page 1 of 1

need help compiling a script

Posted: 20 Mar 2017, 03:57
by Bluerose

Code: Select all


I need some assistance compiling a script, and do not know how to compile it. Below are a few elements that I believe should be included (they need to be edited though), but I need help to put it all together.

Essentially what I wish to do is send a keystroke command to my QTtabbar without having to bring it into focus, and I want to send this keystroke from my game controller

ControlSend,,{shift A},WindowName (how do i get the window name)? 

Joy13::Send {shift A} 

Can anyone assist?

Re: need help compiling a script

Posted: 20 Mar 2017, 06:56
by aztec3
Delete

Re: need help compiling a script

Posted: 20 Mar 2017, 09:05
by boiler
You may want to double-check the {shift A}. Are you trying to send A, +a, or {Shift down}a{Shift up}?

Re: need help compiling a script

Posted: 20 Mar 2017, 17:42
by Bluerose555
boiler wrote:You may want to double-check the {shift A}. Are you trying to send A, +a, or {Shift down}a{Shift up}?
I wish to do is send a keystroke command to my QTtabbar I want to send the combination of SHIFT key and A key to QTtabbar

Re: need help compiling a script

Posted: 20 Mar 2017, 19:06
by boiler
What I'm saying is your syntax isn't correct. You need to use one of the ones I showed you.

Re: need help compiling a script

Posted: 20 Mar 2017, 19:51
by Bluerose555
boiler wrote:What I'm saying is your syntax isn't correct. You need to use one of the ones I showed you.
Thanks you.. i know its not correct thats why im asking =)
I habve NO CLUE how to do this, except what i want it to do.

Can you help me devise a script that will send a key combo via joystick to QTtabbar when it is not in focus?

Re: need help compiling a script

Posted: 20 Mar 2017, 20:20
by boiler
I use QTtabbar, and from my tests, it doesn't seem to respond to ControlSend, as is often the case. Some windows just won't accept ControlSend. I tried sending to the window's top control (leaving the control parameter blank), to WindowsForms10.Window..., and to SysListView321, and nothing worked. However, using Send with the QTtabbar window active works, so perhaps you can very briefly bring it into focus for what you're trying to do.

Re: need help compiling a script

Posted: 20 Mar 2017, 21:14
by Bluerose555
boiler wrote:I use QTtabbar, and from my tests, it doesn't seem to respond to ControlSend, as is often the case. Some windows just won't accept ControlSend. I tried sending to the window's top control (leaving the control parameter blank), to WindowsForms10.Window..., and to SysListView321, and nothing worked. However, using Send with the QTtabbar window active works, so perhaps you can very briefly bring it into focus for what you're trying to do.
thanks for your reply. hmm. kind of defeats the whole purpose of having a script when QTtabbar has its own shortcuts. I was trying to make my workflow faster by not having to bring QTtabbar into focus.

See my next reply..

Re: need help compiling a script

Posted: 20 Mar 2017, 21:25
by Bluerose555
i was able to not use QTtabBar for the purpose of launching the script, by using

Code: Select all

Joy11:: run "F:\RE4 modding\-Script.bat"
thanks!

Re: need help compiling a script

Posted: 21 Mar 2017, 06:29
by boiler
Bluerose555 wrote:thanks for your reply. hmm. kind of defeats the whole purpose of having a script when QTtabbar has its own shortcuts. I was trying to make my workflow faster by not having to bring QTtabbar into focus.
You missed the point. You wouldn't be bringing it into focus. The script would briefly bring it into focus, send your shortcut key, then return focus to whatever window had focus. You're looking at what an AHK script can do way too narrowly.