XIM Community

XIM Link specific commands, any idea on how to get this to work?  (Read 258 times)

Offline havoxxx

  • MVP
  • *
  • Posts: 774
    • View Profile
I am trying to get the commands from w11ces forum topic, but nothing is compatible with AHK, even with the compatibility script added to the script folder. Any ideas?




« Last Edit: 07:54 AM - 07/04/18 by havoxxx »

Offline havoxxx

  • MVP
  • *
  • Posts: 774
    • View Profile
W11cE please reply to this.

Offline W11cE

  • Moderator
  • MVP
  • *
  • Posts: 1421
    • View Profile
Did you manually change or edit the files? Also do you use link with multiple different user accounts?

Offline havoxxx

  • MVP
  • *
  • Posts: 774
    • View Profile
Did you manually change or edit the files? Also do you use link with multiple different user accounts?

brand new fresh installed windows. I left the files a lone, because it auto generates. With your ahk script I get this error code.

Code: [Select]
#Include %A_AppData%\XIM Link\ScriptAdditionals\AHK_ADDITIONALS.ahk
#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.

h:: ;Will move LeftStickX to right one second, then left one second and stop.
    XIMInputData("LeftStickX", 100)
    Sleep 1000
    XIMInputData("LeftStickX", -100)
    Sleep 1000
    XIMInputData("LeftStickX", 0)
Return

Offline havoxxx

  • MVP
  • *
  • Posts: 774
    • View Profile
Did you manually change or edit the files? Also do you use link with multiple different user accounts?

Brand new fresh installed version of windows 10. Also I did not change any files because it is auto generated.


I get the error code when trying out your ahk script.

Code: [Select]
#Include %A_AppData%\XIM Link\ScriptAdditionals\AHK_ADDITIONALS.ahk
#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.

h:: ;Will move LeftStickX to right one second, then left one second and stop.
    XIMInputData("LeftStickX", 100)
    Sleep 1000
    XIMInputData("LeftStickX", -100)
    Sleep 1000
    XIMInputData("LeftStickX", 0)
Return


"This line is a unrecognized action XimInputData"

Offline Sleepy

  • Member
  • *
  • Posts: 163
    • View Profile
Do you need the lines in brackets? { }
Like this maybe.. I'm just guessing.

Code: [Select]
#Include %A_AppData%\XIM Link\ScriptAdditionals\AHK_ADDITIONALS.ahk
#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.

~h:: ;Will move LeftStickX to right one second, then left one second and stop.
    {
    XIMInputData("LeftStickX", 100)
    Sleep 1000
    XIMInputData("LeftStickX", -100)
    Sleep 1000
    XIMInputData("LeftStickX", 0)
    }
Return

Or Just use the XIM inputted key like A is left on the left anolog stick and D is right?

Code: [Select]
#Include %A_AppData%\XIM Link\ScriptAdditionals\AHK_ADDITIONALS.ahk
#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.

~h:: ;Will move LeftStickX to right one second, then left one second and stop.
      {
      Send {d down} ;Left Anolog Right
      Sleep 1000
      Send {d up}
      Sleep 45
      Send {a down} ;Left Anolog Left
      Sleep 1000
      Send  {a up}
      }
Return