Not works send keys for Ragnarok

Ask gaming related questions (AHK v1.1 and older)
Veronica12
Posts: 13
Joined: 04 Oct 2016, 01:22

Not works send keys for Ragnarok

17 Aug 2019, 21:39

Hello all,
I'm trying to "send" commands to Game Ragnarok
GAME: https cs.wikipedia.org /wiki/Ragnarok_Online Broken Link for safety
- The game is running in the window
I tested all possible combinations, but none works for me (all commands work normally in a text document).

Someone have an idea, please? :roll:


test_script_1

Code: Select all

sleep, 10000

;-------------------------------
Send, {Enter}
sleep, 2000

SendRaw, {Enter}
sleep, 2000

SendInput, {Enter}
sleep, 2000

SendPlay, {Enter}
sleep, 2000

SendEvent, {Enter}
sleep, 2000
;-------------------------------
Send, {Enter Down}
sleep, 100
Send, {Enter Up}
sleep, 2000

SendRaw, {Enter Down}
sleep, 100
SendRaw, {Enter Up}
sleep, 2000

SendInput, {Enter Down}
sleep, 100
SendInput, {Enter Up}
sleep, 2000

SendPlay, {Enter Down}
sleep, 100
SendPlay, {Enter Up}
sleep, 2000

SendEvent, {Enter Down}
sleep, 100
SendEvent, {Enter Up}
sleep, 2000
;-------------------------------
soundplay, *64 
;-------------------------------
test_script_2

Code: Select all

SetKeyDelay, 0, 50

sleep, 10000

;-------------------------------
Send, {SC01C}
sleep, 2000

SendRaw, {SC01C}
sleep, 2000

SendInput, {SC01C}
sleep, 2000

SendPlay, {SC01C}
sleep, 2000

SendEvent, {SC01C}
sleep, 2000
;-------------------------------
Send, {VK0D}
sleep, 2000

SendRaw, {VK0D}
sleep, 2000

SendInput, {VK0D}
sleep, 2000

SendPlay, {VK0D}
sleep, 2000

SendEvent, {VK0D}
sleep, 2000
;-------------------------------
soundplay, *64 
;-------------------------------
User avatar
Dumitas
Posts: 167
Joined: 14 Dec 2017, 21:32

Re: Not works send keys for Ragnarok

18 Aug 2019, 11:59

Code: Select all

#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
#SingleInstance force
F4::pause
F5::
Loop
	{
	Send, {Enter}
	Sleep, 2000
	}
return
Esc::ExitApp
F5 to start and F4 to pause and Esc to close to the scrip, you can easily edit all of this. Also, remember to run the script as Administrator.

I don't really get what you want if you can explain it a bit better.
Image
Veronica12
Posts: 13
Joined: 04 Oct 2016, 01:22

Re: Not works send keys for Ragnarok

18 Aug 2019, 21:46

These were test scripts and none work, nor does your script work.
Looks like the game blocks the keys from the autohotkey. Server uses Gepard protection.
User avatar
Dumitas
Posts: 167
Joined: 14 Dec 2017, 21:32

Re: Not works send keys for Ragnarok

18 Aug 2019, 21:49

Did you run the script as administrator? Or try to compile it.
Image

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 64 guests