AndrewF32

How to send joystick inputs

12 posts in this topic

Hi, I'm new to autoit and I need help sending joystick inputs like from an xbox controller. I need to send them alongside of an actual controller so I can't use a virtual controller. Is there native support in autoit or do I need another program as well?

Share this post


Link to post
Share on other sites



I am totally lost what you are after....  sending joystick inputs, what does that mean? Would think you receive inputs and send outputs..no?

Anyway: What is this all for and what are you trying to accomplish?

Jos

 


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

I did some research and this is the only forum that I could find with actual coding for joystick inputs. I hope it helps!

The link will be listed below. 

Share this post


Link to post
Share on other sites

Sorry if my wording was a bit backwards, I am trying to send joystick outputs from my xbox controller like a regular macro.

 

I did some research and this is the only forum that I could find with actual coding for joystick inputs. I hope it helps!

The link will be listed below. 

I'll take a look through this, at first glance this may help.

Share this post


Link to post
Share on other sites

It looks like that code can just read outputs from the controller but can't send them to a program. So far that's all I've seen anywhere.

Share this post


Link to post
Share on other sites

AndrewF32,

How about answering Jos questions before we go any further?

What is this all for and what are you trying to accomplish?

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

AndrewF32,

How about answering Jos questions before we go any further?

M23

I want to send controller outputs like a regular macro for a keyboard. Ex: press "x" on keyboard and controller sends the "b" key press. 

Share this post


Link to post
Share on other sites

AndrewF32,

You mean you want simulate the controller "b" command when you press the "x" key on a keyboard? Are you trying to emulate a controller using a keyboard?

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

AndrewF32,

You mean you want simulate the controller "b" command when you press the "x" key on a keyboard? Are you trying to emulate a controller using a keyboard?

M23

Yes. Is that possible? Also, it has to be able to do that at the same time as I use the actual controller.

Share this post


Link to post
Share on other sites

AndrewF32,

And I suppose this is so two people can play games without having to buy another controller?

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

AndrewF32,

And I suppose this is so two people can play games without having to buy another controller?

M23

No, the left trigger is broken on my controller which means I can't zoom out on one of the games I play without switching my control setup.

Share this post


Link to post
Share on other sites

AndrewF32,

I have seen you today looking at the Forum rules - so you will not be surprised by what happens now.

<click> (c) Jos

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.