Jump to content
Experiencing kernel error or random crashes on TruckersMP Island? ×
  • 0

Usage of AutoHotkey script


Riczard Chamont

Question

Hello everyone,

I've made a simple AutoHotkey script, which (in my opinion) might be helpful, when driving multiplayer, especially with Winter Mod. It checks signal from driving wheel controller, checks if i pressed the brake to maximum, and if so activates fast hazard warning lights, much faster then normal. But I'm not sure if it is legal to use such a thing on TruckersMP. It doesn't affect anything pointed in §2.1 of in-game rules. I would like to know opinion of any staff member, if it is possible. Here is this code:
 

#Persistent  ; Keep this script running until the user explicitly exits it.
SetTimer, WatchAxis, 5
return

If (b!=0)
	i:=0p
	b:=0

WatchAxis:
JoyR := GetKeyState("JoyR")  ; Get position of R axis.
	
If (JoyR=0)
	{
	clicks++
	Send, p   
	SoundBeep, 1000, 150
	Send, p   
	SoundBeep, 1000, 150
	i++
	}
	
If (i!=0) and (JoyR>0) and (clicks>5)
	{
	sleep 200
	Send, p
	i:=0
	clicks:=0
	}

m::ExitApp
return

I'm sorry for my grammatical and spelling mistakes, I'm not native speaker and still learning English :). 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Hello there! :)

 

Your topic has been inactive for 5 days since the last reply.
Because of Inactivity, I will have to move this topic to Inactive Topics.
If you still have any questions about this, feel free to DM me or our Support Team members and we will open this Topic again.
Thanks to all for participation!

 

Kind regards

Linciano

TruckersMP Support

 

//Locked and Moved to Inactive

spacer.png

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.