I am new to using AHK and I’m a noob in coding. I just followed the documentations in making a code that I plan to use in a game but I am stuck in a function that is part of the code.
There is a text box in the game used to filter the contents. My code looks like this:
Code: Select all
filter(x) { ; filter using the filter text box
click_point(1075, 400) ; click_point(x, y) is a function I made to perform mouse movement to the coordinate and click with delays so the game can have time to respond.
click_point(963, 396)
sendinput x ; x should be a variable that will be entered in the filter
sleep, 500
sendinput {Enter}
sleep, 500
return
}
Code: Select all
filter(abc-gx)
What did I do wrong and how should this be done?
I am using this function so it is simplified. Only needs 1 line for each time I use filter in the game.
Thank you in advance.