I'm in need for some help with a script I'm coding right now. Pretty simple one, but I have one big problem.
The game i'm planning this to use in is Blade & Soul.
The use of the macro is to simply send repeatedly an F keystroke with 100ms pause between every keystroke.
When testing the macro by just sending F via "Send, F" in Notepad the macro works just fine.
Sending the key to Notepad via ControlSend also works fine. The notepad windows doesn't even need to be active this way.
So here's the code I have so far.
Code:
SetTitleMatchMode, 3 ;3: A window's title must exactly match WinTitle to be a match. ^q:: ; This hotkey stops the loop below and asks for continuation. BreakLoop = 1 MsgBox, 4, Mine Farmer, The script will now be stopped.`nAre you sure? IfMsgBox, Yes ExitApp Else BreakLoop = 0 Return !f:: Loop { Sleep, 100 ControlSend, , f, ahk_class LaunchUnrealUWindowsClient ;This line totally works fine if I use "Notepad" If BreakLoop = 1 ;as the ahk_class, but seems to do nothing in the Break ;game window when using the games ahk_class If BreakLoop = 0 Continue } Return
Is it even possible to get my idea working via AHK in Blade & Soul?
If yes, what else could I try? Which other commands for example.
I'll totally read any documation that leads me to a solution as well!
Regards,
Kuraiko