Create a folder on your computer for your autohotkey scripts. Create a script that looks like this:#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.; #Warn ; Enable warnings to assist with detecting common errors.SendMode Input ; Recommended for new scripts due to its superior speed and reliability.SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.^+i:: ; increment quadstick modeRun %A_ScriptDir%\QMPSend_increment.lnkreturn^+d:: ; decrement quadstick modeRun %A_ScriptDir%\QMPSend_decrement.lnkreturn
press the Windows logo key + R, type shell:startup
<MACRO id="QS_increment_mode"><START></START><MAIN><KEYINPUT behaviour="PRESS" code="0x11"/><KEYINPUT behaviour="PRESS" code="0x10"/><KEYINPUT behaviour="PRESS" code="0x49"/><KEYINPUT behaviour="RELEASE" code="0x49"/><KEYINPUT behaviour="RELEASE" code="0x10"/><KEYINPUT behaviour="RELEASE" code="0x11"/></MAIN><END></END></MACRO><MACRO id="QS_decrement_mode"><START></START><MAIN><KEYINPUT behaviour="PRESS" code="0x11"/><KEYINPUT behaviour="PRESS" code="0x10"/><KEYINPUT behaviour="PRESS" code="0x44"/><KEYINPUT behaviour="RELEASE" code="0x44"/><KEYINPUT behaviour="RELEASE" code="0x10"/><KEYINPUT behaviour="RELEASE" code="0x11"/></MAIN><END></END></MACRO>
--
You received this message because you are subscribed to the Google Groups "QuadStick" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quadstick+...@googlegroups.com.
To post to this group, send email to quad...@googlegroups.com.
Visit this group at https://groups.google.com/group/quadstick.
To view this discussion on the web visit https://groups.google.com/d/msgid/quadstick/1c98da1a-6ecc-4e14-9f41-a2c86f815943%40googlegroups.com.
If AutoHotKey can send data out a UDP port, it would be possible to bypass qmpsend and have QMP relay the commands to the Quadstick, which is always listening on port 47807. If AHK can talk to serial ports, it would be possible to even bypass QMP and talk directly to the console port on the Quadstick.
If AutoHotKey can send data out a UDP port, it would be possible to bypass qmpsend and have QMP relay the commands to the Quadstick, which is always listening on port 47807. If AHK can talk to serial ports, it would be possible to even bypass QMP and talk directly to the console port on the Quadstick.When Matt and I were first setting up voice commands, before QMP existed, we used Putty and just send the command strings from Vocola to Putty instead of QMP.
On Sun, Jun 9, 2019 at 2:50 PM Steven F <zathr...@gmail.com> wrote:
--Also, another tip... You can remove the %A_ScriptDir%\ bits because you defined that globally with the SetWorkingDir line.Additional, you can actually do this without the shortcuts if you want... autohotkey can run the commands directly. For example in you examples, you could instead put..^+i:: ; increment quadstick mode
Run, QMPSend.exe "increment_mode",,MinReturn^+d:: ; decrement quadstick modeRun, QMPSend.exe "decrement_mode",,MinReturnIt also might be a good idea to change the SetWorkingDir %A_ScriptDir% line to SetWorkingDir C:\Program Files (x86)\QuadStick That way if you don't have the script in the Quadstick directory, autohotkey will still know where QMPSend is.
You received this message because you are subscribed to the Google Groups "QuadStick" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quad...@googlegroups.com.
#Persistent
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir C:\Program Files (x86)\QuadStick ; Ensures a consistent starting directory.
; ########## Configurations: ##########
iris=1 ;Enter 1 to launch Iris, 0 for no
eyebind=0 ;Enter 1 to launch eyeBind, 0 for no
profile=0 ;Name of QuadStick profile to switch to.. dont include .csv extension, 0 for no
GameTitle=0 ;Enter title of game to launch a game, 0 for no
GameExe := "" ;Enter location of games executible
Borderless=0 ;Enter 1 to launch in game centered borderless window, 0 for no
; ########## End of configurations! ##########
if (GameTitle)
{
Run, %GameExe%
WinWait, %GameTitle%
Sleep, 6000
WinGetPos,,, Width, Height, %GameTitle%
if (Borderless)
WinSet, Style, -0xC40000, %GameTitle% ; this removes window title bar and border
WinMove, %GameTitle%,, (A_ScreenWidth/2)-(Width/2), (A_ScreenHeight/2)-(Height/2)
}
if (iris)
{
Run, IRIS.exe, C:\Program Files (x86)\Xcessity Software Solutions\IRIS
}
if (eyebind)
{
Run, eyebind.exe, C:\EyeBind
}
Run, QuadStick.exe
WinWait, QuadStick
Sleep, 1000
if (profile)
Run, QMPSend.exe "load`,%profile%.csv",,Min
WinMinimize, QuadStick
WinWaitClose, QuadStick
ExitApp
Return
;Set Hotkeys below
^+i:: ; increment quadstick mode
Run, QMPSend.exe "increment_mode",,Min
Return
^+d:: ; decrement quadstick mode
Run, QMPSend.exe "decrement_mode",,Min
Return
;Run, QMPSend.exe "mode`,1",,Min
;Run, QMPSend.exe "digital_out_1`,-1`,100`,-1",,Min
;Run, QMPSend.exe "kb_f`,-1`,100`,-1",,Min