Upvote Upvoted 0 Downvote Downvoted
Making macros/scripts
1
#1
0 Frags +

Hi. First off, no, I don't have a keyboard with macro keys, I just wanna use some of the many keys I have that I don't use. Now to my firstworldproblems

Yesterday I donated to a DM server so I could get a reserved slot. I later found out it only works if I put in the connect string every time... Yes, of course this is a bit annoying. I have tried just setting binds to connecting to the server but guess what - it only works when you are already on another server, not in the in-game menu. I also find that I could do some other useful stuff with that

So anyway, I'm looking to somehow make my own script or maybe someone knows a good program to do this? Other suggestions for solutions to the problem are also welcome

Hi. First off, no, I don't have a keyboard with macro keys, I just wanna use some of the many keys I have that I don't use. Now to my firstworldproblems

Yesterday I donated to a DM server so I could get a reserved slot. I later found out it only works if I put in the connect string every time... Yes, of course this is a bit annoying. I have tried just setting binds to connecting to the server but guess what - it only works when you are already on another server, not in the in-game menu. I also find that I could do some other useful stuff with that

So anyway, I'm looking to somehow make my own script or maybe someone knows a good program to do this? Other suggestions for solutions to the problem are also welcome
2
#2
1 Frags +

http://www.autohotkey.com/docs/Tutorial.htm#Send
then
http://www.autohotkey.com/docs/Tutorial.htm#Loop

use the third part (where it starts with $F1) and you will have what you want more or less.

http://www.autohotkey.com/docs/Tutorial.htm#Send
then
http://www.autohotkey.com/docs/Tutorial.htm#Loop

use the third part (where it starts with $F1) and you will have what you want more or less.
3
#3
-1 Frags +

*** EDIT ***

Just as an FYI, AutoHotKey spawned from AutoIt3, it was built off of what AutoIt had :)

*** EDIT ***

AutoIt3 is what you want!

Website Link

I do all of my programming in it but it started out as a simple macro language. So it is easily capable of what you want and is really simple to learn.

Just a little example, this is all it would take to create this macro.

HotKeySet("`", "Connect")

Func Connect()
	Send("connect:192.168.0.1")
EndFunc

While 1
	Sleep(10)
WEnd
*** EDIT ***

Just as an FYI, AutoHotKey spawned from AutoIt3, it was built off of what AutoIt had :)

*** EDIT ***

AutoIt3 is what you want!

[url=https://www.autoitscript.com/site/autoit/]Website Link[/url]


I do all of my programming in it but it started out as a simple macro language. So it is easily capable of what you want and is really simple to learn.


Just a little example, this is all it would take to create this macro.

[code]HotKeySet("`", "Connect")

Func Connect()
Send("connect:192.168.0.1")
EndFunc

While 1
Sleep(10)
WEnd[/code]
4
#4
-1 Frags +

Holy shit guys, after loads of googling I couldn't find any of this.
Thanks for your help!!!

EDIT: Also I have a question about this, as random as it may seem. Does any of this cause any input lag? Am I wrong to say that as you press down a key, it then looks for if that key was one of the scripted ones and then only after it will execute in game actions? or does this sound like total bs and I am completely wrong? :D

Holy shit guys, after loads of googling I couldn't find any of this.
Thanks for your help!!!

EDIT: Also I have a question about this, as random as it may seem. Does any of this cause any input lag? Am I wrong to say that as you press down a key, it then looks for if that key was one of the scripted ones and then only after it will execute in game actions? or does this sound like total bs and I am completely wrong? :D
5
#5
3 Frags +

alias "dm" "[connect string]"

Type dm in console to get connected to your wanted server.

You can replace "dm" with whatever letters you want.

alias "dm" "[connect string]"

Type dm in console to get connected to your wanted server.


You can replace "dm" with whatever letters you want.
6
#6
0 Frags +

^ Sounds like the better and more legit source!

But still, learning AutoIt will be handy!

^ Sounds like the better and more legit source!

But still, learning AutoIt will be handy!
7
#7
-1 Frags +
Twistedalias "dm" "[connect string]"

Type dm in console to get connected to your wanted server.

You can replace "dm" with whatever letters you want.

yeah man, sounds even easier. Thanks!

[quote=Twisted]alias "dm" "[connect string]"

Type dm in console to get connected to your wanted server.


You can replace "dm" with whatever letters you want.[/quote]
yeah man, sounds even easier. Thanks!
8
#8
2 Frags +
tornados2111Holy shit guys, after loads of googling I couldn't find any of this.
Thanks for your help!!!

EDIT: Also I have a question about this, as random as it may seem. Does any of this cause any input lag? Am I wrong to say that as you press down a key, it then looks for if that key was one of the scripted ones and then only after it will execute in game actions? or does this sound like total bs and I am completely wrong? :D

it will not cause input lag.

[quote=tornados2111]Holy shit guys, after loads of googling I couldn't find any of this.
Thanks for your help!!!

EDIT: Also I have a question about this, as random as it may seem. Does any of this cause any input lag? Am I wrong to say that as you press down a key, it then looks for if that key was one of the scripted ones and then only after it will execute in game actions? or does this sound like total bs and I am completely wrong? :D[/quote]

it will not cause input lag.
Please sign in through STEAM to post a comment.