Quote:
Originally Posted by adam_j
I remembered that control send was currently impossible, however I wasn't aware that it was completely impossible to acquire the control IDs.
The Handleclick is extremely useful information though, thanks for that :3
Out of interest, can an image search be performed on a window that isn't visible? I had always assumed that it had to be visible for it to search.
Not a big deal if it does have to be visible though, with window co-ordinates + Handleclick >:3
|
AutoIt ImageSearch only searches for images on-screen but I believe that you can search for images in a specific window using AutoHotkey. I use DarkImageSearch, which basically takes a screenshot of a screen region or window, converts the screenshot which is stored in the computer memory into a text variable and searches for the specified ImageString which is basically an image that has been completely converted to text and embedded into the literal application so that you do not need to include images with the software package. After it searches for the ImageString it divides the position in the ScreenshotString by seven for both the ending and beginning position where "&ImageString" was located in "&ScreenshotString", it then subtracts the screen height by the beginning position and the screen width by the ending position. The result is the X and Y position relative to the search region or window on the screen, you can then use the command;
Code:
HandleClick "&HandleName" "&XPositionVariable" "&YPositionVariable" "ClickSpeed" "NumberOfClicks" "ParamREAL"
The entire code would look like this;
Code:
&HandleName = WinGetHandle "Mabinogi" ""
ImageSearch-INH "//Embedded;Gold.png" "&HandleName" "&XPositionVariable" "&YPositionVariable" "97%"
HandleClick "&HandleName" "&XPositionVariable" "&YPositionVariable" "ClickSpeed" "NumberOfClicks" "ParamREAL"
I believe that all of the command parameters are self-explanatory other than the last one; "ParamREAL", this is an advanced parameter that is available for all functions that use MouseClicks and it is best to leave this blank if you do not know what you are doing as the .dss compiler will automatically handle this.
Regards,
Alex Alphonse Rothschild