KeyBinder!?!
#1

So i wonder if there is any keybinder or anything else that allowes you to press a buttom on your keyboard and it will make like "/housename [ID] Contact admin for this house" and it will start on house 0 and continue to go up to 5000 (0-5000) Why i'm asking this is because i got over 4000 houses placed all over my server on different spots, But i don't wanna delete them and re-do all of them. So thats why i am asking if there is any keybind tool or whatever to make it got automatically from 0-5000 on one click :S
Reply
#2

Check out Autohotkey.

Something I thought of that may work off the top of my head:

Note: This is for manual use
Код:
:?:/he::
SendInput , /housename  Contact admin for this house{left 29}
Return
Basically you type "/he" and once you hit space it will wait for you to input the house ID. Afterwards you hit enter and it will do it for that specific ID.


I'll edit this once/if I make one for all the IDs you have specified.
Reply
#3

If you are the server owner you can use a loop to do this for you.
Reply
#4

Retarded suggestions. Use this: http://www.gtagarage.com/mods/show.php?id=21662
Reply
#5

Quote:
Originally Posted by Excelize
Посмотреть сообщение
Retarded suggestions. Use this: http://www.gtagarage.com/mods/show.php?id=21662
I don't see how writing 5000 times is smarter than writing a loop once.
Reply
#6

1) I don't think this is the right forum to ask.

2) You can use AutoHotKey to get the job done.

3) Here is a small script which you can use with AHK.

Код:
#NoEnv
SendMode, Input
#IfWinActive GTA:SA:MP


houseid := 0 ; Starts at this ID
loops   := 5001 ; Ends at this ID [Added extra 1 to complete till 5000]


; Starts script
F10::
Send, {Enter}
Loop, %loops%
{
	if(houseid < loops)
	{
		Send, t/housename %houseid% Contact admin for this house{Enter}
		Sleep, 180000 ; Milliseconds before the next message is send
		houseid ++ 1
	}
	else
	{
		break
	}
}
return

; Stops script
F11::
Reload
Send, ^a{BS}{Esc}
return

; Closes script
F12::
ExitApp
Sends the command every 3mins
F10 to Start
F11 to Stop
F12 to Close
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)