![]() ![]() tLabelBackgroundPaint(new Color(1f, 1f, 1f, 0.7f)) Is this still work in progress or am I doing something wrong here?īy extending CrosshairOverlay with the suggestions of and using this code for an individual crosshair: final Crosshair 圜rosshair = new Crosshair(Double.NaN, Color.GRAY, new BasicStroke(0f)) But using Crosshair#setLabelOutlineVisible(boolean) will also remove the text and Crosshair#setLabelFont(Font) doesn't change the font at all. tLabelGenerator(new CrosshairLabelGenerator() String generateLabel(final Crosshair ch) Īs a start, I would like to remove the box around the text and would like to control the font size and family. tLabelBackgroundPaint(new Color(1f, 1f, 1f, 0f)) This is my current snippet: // add crosshairįinal CrosshairOverlay crosshairOverlay = new CrosshairOverlay() įinal Crosshair xCrosshair = new Crosshair(Double.NaN, Color.DARK_GRAY, new BasicStroke(0f)) This works quite well, though I would like to change the way the label is drawn. set OnLocationChange as callback function for the event OBJECT_LOCATIONCHANGE ((v=vs.85).I am trying to use a crosshair overlay for an XYPlot. HWinEventHook := SetWinEventHook(EVENT_OBJECT_LOCATIONCHANGE GUI, 2:-Caption +AlwaysOnTop +Owner +hwndID +%WS_EX_NOACTIVATE%ĮVENT_OBJECT_LOCATIONCHANGE := 0x800B (v=vs.85).aspx WinGet, PID, PID, % AHKID retrieves notepad process ID (PID) ![]() WinGet, ID, ID, ahk_exe notepad.exe retrieves notepad ID WinWait, ahk_exe notepad.exe with notepad for the example Using SplashImage seems to be the easiest (for me at least) to understand, the GUI functions seem more complicated to do what I need and I don't fully understand how to use them effectively. ![]() So, my question is - How can I make sure that mouse clicks go through my overlay crosshair image directly to the game window below? The game uses the usual approach of having the game crosshair in the center of the screen at all times regardless of where you look and the camera just changes you point of view. I think the reason for this "error" is that the mouse clicks on one of the pixels in the crosshair overlay and it confuses the game or windows or both. ![]() I set the magenta color as the transparent color and everything works perfectly except occasionally while playing the game, I get an error sound and the game screen loses focus and I need to quickly click back on the game window to resume playing. The image i made for the crosshair is completely 100% magenta in color except for the crosshair I want to see in-game. I'm using the SplashImage command to overlay an image on top of a game screen so as to have a better crosshair shown instead of the game's single white dot. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |