need help compiling a script

Get help with using AutoHotkey and its commands and hotkeys
Bluerose

need help compiling a script

20 Mar 2017, 03:57

Code: [Select all] [Download] (Untitled.ahk)GeSHi © Codebox Plus


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?
User avatar
aztec3
Posts: 177
Joined: 07 Apr 2014, 12:05

Re: need help compiling a script

20 Mar 2017, 06:56

Delete
Last edited by aztec3 on 20 Mar 2017, 09:13, edited 1 time in total.
User avatar
boiler
Posts: 1850
Joined: 21 Dec 2014, 02:44

Re: need help compiling a script

20 Mar 2017, 09:05

You may want to double-check the {shift A}. Are you trying to send A, +a, or {Shift down}a{Shift up}?
Bluerose555
Posts: 13
Joined: 20 Mar 2017, 03:02

Re: need help compiling a script

20 Mar 2017, 17:42

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
User avatar
boiler
Posts: 1850
Joined: 21 Dec 2014, 02:44

Re: need help compiling a script

20 Mar 2017, 19:06

What I'm saying is your syntax isn't correct. You need to use one of the ones I showed you.
Bluerose555
Posts: 13
Joined: 20 Mar 2017, 03:02

Re: need help compiling a script

20 Mar 2017, 19:51

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?
User avatar
boiler
Posts: 1850
Joined: 21 Dec 2014, 02:44

Re: need help compiling a script

20 Mar 2017, 20:20

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.
Bluerose555
Posts: 13
Joined: 20 Mar 2017, 03:02

Re: need help compiling a script

20 Mar 2017, 21:14

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..
Last edited by Bluerose555 on 20 Mar 2017, 21:17, edited 1 time in total.
Bluerose555
Posts: 13
Joined: 20 Mar 2017, 03:02

Re: need help compiling a script

20 Mar 2017, 21:25

i was able to not use QTtabBar for the purpose of launching the script, by using

Code: [Select all] [Download] GeSHi © Codebox Plus

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


thanks!
User avatar
boiler
Posts: 1850
Joined: 21 Dec 2014, 02:44

Re: need help compiling a script

21 Mar 2017, 06:29

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.

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], carsonma and 45 guests