Lua mouse click I looked around and found out you can edit Lua scripts as profiles in GHub. I found a similar script, but it either does not loop, or d ClickDetector allows Scripts and LocalScripts to receive pointer input on 3D objects through their MouseClick event. Touched event. It supports three shapes: rectangles, circles, and polygons, and includes methods for handling events such as mouse movements, clicks, and state updates. Besides, the engine also provides screen capturing and template matching functions, it enables the Lua script to execute particular actions based on screen content. Here's my ~solution. Unlock your device's potential through efficient scripting methods. These events can range from user interactions, such as mouse clicks or key presses, to system-generated events like timers or network responses. Jun 16, 2022 · Lua Right mousebutton clicker Asked 3 years, 1 month ago Modified 3 years, 1 month ago Viewed 587 times How to simulate key press or mouse click in pure Lua for Windows? Is it even possible? Also, do you know any good scriptable automating solution, that can recognize images? May 24, 2022 · Hello, i have a lua script assigned to a button in order that when i press it in the relative instrument windows it presses the button to switch between OAT/volts. ClickDetector allows Scripts and LocalScripts to receive pointer input on 3D objects through their MouseClick event. Dec 12, 2023 · Lua Mouse Click Simulation Lua code that simulates pressing the left mouse button on repeat with 50 milliseconds of delay while holding down mouse 1 and mouse 2 at the same time. Unlock the power of Logitech Lua scripting with our concise guide, perfect for mastering commands and enhancing your gaming experience. First, just insert a part into the workspace and then inside of the part insert a click detector and a script. load() This method returns the Mouse being used by the client. Can We need to know: Which Lua implementation? Which operating system? Just a click? Or move to a coordinate? Jun 3, 2018 · Depending on your circumstance, this can vary - you can use a ClickDetector to catch clicks on a given part or model when users aren’t using their tools. Feb 18, 2015 · I am trying to make it so that if a user clicks the left mouse button at 200x300 then a variable will be changed. ButtonObj The button to click. This is a problem because for my gun script, and for many other scripts, it is necessary to detect only one of these because otherwise the gun will fire twice. Not ideal. I had some free time, so I thought I'd solve it. With just a few lines of code, you can create a script that interacts with your mouse and performs repetitive tasks. This script clicks while you hold down the middle mouse button, on my computer it does 1100 CPS. I've read several posts on disabling the mouse in vim including 13566 and have put the following in my in Oct 30, 2014 · I want to create a teach, and when player click his mouse button, the tech will do something. This is my general idea: If you detect 2 instances of the back button being pressed and released within e. MouseButton events are replicated across the client-server boundary, you can bind functions to them from a server-script if you manage to get the GuiObject - though it is advised to just handle this stuff locally, that way it’ll be even easier -- LocalScript local player = game. So I used a macro a year ago when playing satisfactory to keep my left mousebutton pressed for crafting. I want to use UserInputService, but my solution still seems unclean. GoldleyGod Logitech G600 Right mouse click, left mouse click, and, middle mouse click refuse to appear in output. lua Feb 5, 2019 · I'm working on a recoil script, and I want to be able to activate it using left- and right-click. Check out sample_script. 0 What is click-to-zoom? click-to-zoom is an OBS Lua script that lets you smoothly zoom in on a display capture source, centering the zoom on your mouse position. Jul 8, 2022 · Is it possible to program a lua script that every time I press RMB + LMB (in that order), RMB releases when LMB is pressed? The idea is: Clicking LMB will 'cancel' RMB, but RMB will be retaken (sin Sep 4, 2017 · lua mouse click on entity Recently i managed to find out how to disable mouselook and display a cursor on sceen. InputChanged:Connect (function (input) if input. Elevate your game now! Nov 29, 2023 · How to implement a Key Toggle for GUI instead of mouse click in Roblox Asked 7 years, 6 months ago Modified 1 year, 11 months ago Viewed 8k times Nov 21, 2020 · A friend is using a LUA script for this Logitech mouse in a game, which performs a "press left-alt" action if he clicks and holds the right mouse button and then also clicks the left mouse Sep 27, 2022 · How to get this logitech lua script to move my mouse left, then to the right and keep on repeating that until mouse button 1 is no longer pressed Asked 3 years, 1 month ago Modified 3 years, 1 month ago Viewed 8k times Teaching the different between MouseButton1Click and MouseButton1Down, and why you should use MouseButton1Click 9 out of 10 times. If you look at it, it says script. I wanted a way Step 3: Testing the Setup Run your Love2D project. For instance, using this script you can simulate a triple-click of the left mouse Enhance gameplay in Roblox Studio! Script parts to move seamlessly to mouse clicks, adding interactivity and dynamic engagement. Apr 11, 2019 · In other words, you want to simulate multiple mouse button clicks while you keep mouse button down? You can start playing macro on press event and abort the macro on release event. Mouse cursor motion blur - A new if you want you can use a lua script. Instead it just does something while the button is pressed and then does the same thing until the button is pressed. Essentially Nov 4, 2023 · An OBS lua script to zoom a display-capture source to focus on the mouse when you press the assigned hotkey. Jun 27, 2023 · The script should be connected to a button within the interface and it should disable free looking (off by default) when clicked, however as it is currently with this script, you can click anywhere and it will disable free looking, any help is appreciated, thanks. KeyCode == Enum. Is ther Nov 4, 2023 · BlankSourceCode submitted a new resource: Zoom to Mouse - Zoom a display capture source to your mouse position An OBS lua script to zoom a display-capture source to focus on the mouse when you press the assigned hotkey. I made an very basic script that detects the player’s mouse click event with user input servi… Apr 29, 2021 · I'm on Arch Linux with alacritty, zsh and neovim nightly (NVIM v0. It means y Explore how to implement a Lua function that simulates left mouse clicks, ideal for gaming and GUI applications. It shows 2-11 just fine, why doe A Lua code snippet that simulates an attack when the mouse is clicked, dealing 10 damage. I’m trying to animate control rods inserting on a monitor when the control rod throttle is in a certain position. Button1Down() when the UserInputService would offer a nice place to Neon shape - you can customize color and size. UserInputService. Then press left mouse button and Sep 6, 2023 · I want to click a mouse5 button and let a script do a loop that press a keyboard Y key with a random delay time. - Logitech Mouse Turbo + Mark (LUA). Contribute to jehillert/logitech-ghub-lua-cheatsheet development by creating an account on GitHub. I find it useful to share the code content as an add-on in this archive. I've had a G502 Spectrum for about 2+ years. In this article, we’ll explore how Lua handles events, provide practical examples of capturing keyboard and mouse inputs, and share effective techniques to make your Lua programs more engaging and interactive. Determines whether the button automatically changes color when the mouse hovers over or clicks on it. You can optionally toggle following your cursor so that it is always in view while zoomed in. InputBegan:Connect(function(input, gameProccesedEvent) if input. The default control scripts bind ButtonR2 to interact with ClickDetectors using May 7, 2014 · I'd like to create an event handler in lua which can detect and locate mouse clicks (and ideally wheel movements) within a window, but can't find any way of doing it. After years of serving me well, my g502 is suffering from a double click problem on the back button (mouse 4 I think). Right mouse pressed now does mouselook. I used to tons of automation scripts like putting items in backpack etc → Slash commands Simulate a mouse click on a frame of type Button. This tutorial provides step-by-step instructions and code examples. It is what records the clicks on the brick. This will be used to click and drag (moving an item), return, click and drag again. If the mouse leaves the bounds of the GuiButton and is released, the event will not fire. The script editor is accessed from Profiles in the Games & Applications window. The program listens for a left mouse button click and simulates it to trigger the animation. Nov 29, 2023 · I'm attempting to make a Lua script with Logitechs API that will detect when I hold the dpi shift button on my mouse and then simulate a keypress. Free Programming & Code prompt for ChatGPT, Gemini, and Claude. The Mouse object houses various API for pointers, primarily for buttons and raycasting. UserInputType == Enum. -- 1. In this tutorial you learn how to make a block with a click detector that outputs a script when you click it. Anim:FireServer() end end) I need to make the left mouse button press How do I make a print Sep 7, 2020 · Is it possible to press the mouse with a script like player:GetMouse():Click() which fires all the mouse. It constantly spams clicking. If you do not want this behaviour then a ClickDetector 's MouseClick is not for you. Lua makes it easy to capture keypresses, mouse clicks, and other user interactions, enabling real-time control over character movements, triggering animations, and responding instantly to user actions. E then print("E pressed, playing the anim") local playAnim = humanoid:LoadAnimation(anim) playAnim:Play() script. Button:Click([button, isDown]) Arguments button string? = LeftButton - Mouse or virtual button to simulate a click with. https://msdn. lua for how to edit the Lua script. Jul 23, 2024 · Since the last couple of days, I was quite troubled by the double-clicking issue of my mouse (Logitech G502 Hero) Today, I came across a solution for this through a simple code which is posted on Reddit. A second click will cause the second loop to end and you can process new events. On click shader - show up to 7 clicks at the same time and show/hide highlight Shader trail - simple circles trail Shader trail xmas - holiday special (high GPU usage!) Raster particles - A new source with 10k stateful unsorted particles, originally developed for a max 2560x1440 resolution, but works on 16:9. isDown boolean? = false - true if the button should be considered pressed (but not yet released); otherwise, it'll be considered released. It can be accessed through A Lua function that allows you to click the mouse at specific coordinates with a specified delay. Apr 6, 2021 · Over existing CE-Lua codes; Let's do an automatic click simulation. microsoft. It would click 1 to 5 times within one click. GuiButton. My personal dahood script (Pyrus) and extras! Contribute to Not-Kyle/Dahood-scripts development by creating an account on GitHub. May 11, 2024 · I am very new to roblox development and was coding a gun script that decreases damage the further away you are, every time you shoot the gun the damage script will play one additional time. Then by using love. When set to toggle and just the mouse button pressed down. Until I click a mouse button5 again it must stop a loop. Contribute to Ascerr/Lua-Scripts development by creating an account on GitHub. Programming is my passion (if you can't already tell by the fact that I'm doing this). When you press a key or click the mouse, you should see the corresponding messages printed in the console. Simple auto clicker lua script for Logitech Script system. So I've added that but how would I implement that into the script I have, for example, I want to give the player a stat called fist whenever the player clicks on the tool called fist which should be in the backpack Hello u/-Brian-_, We would like to let you know that it is possible to move the cursor/pointer with the LUA Script. 1K subscribers Subscribe Contribute to plaimoh/autoclicker development by creating an account on GitHub. I think it’s a little old to be using mouse. But I don't know how to get the mouse click event. It's designed for quick lookups of function specifications and usage examples. Feb 13, 2019 · I'm trying to make a script that repeatedly clicks left mouse button when I hold left control key with left mouse button at the same time This is what I have so far: function OnEvent(event, arg, Dec 28, 2022 · This tutorial explains how to use the `MouseUp` method in Roblox Lua to detect when a mouse button is released and create a mouse click event. I also looked into setting up a triple-click in G Hub using scripting. LocalPlayer local object Jun 7, 2021 · sorry about the little misdirection lol! but I wanna know how to use the script “detector” to detect if the button was clicked: Contribute to plaimoh/autoclicker development by creating an account on GitHub. I'm thinking of solving this problem with an LUA script from ghub. By default it pauses on every click, but it can be configured to work nicely with double-click-to-fullscreen by enabling "Prevent pause/play from triggering on double click" option in the settings. See input type detection for more information. 85). function OnEv Oct 23, 2022 · I have a script that works on mouse button number 1, I want the same script that also works on mouse button 7 and 8 Is this possible? EnablePrimaryMouseButtonEvents(true); function OnEvent(event, Master the art of lua script logitech with our quick, insightful guide. Click(In In this tutorial you learn how to make a block with a click detector that outputs a script when you click it. 0-dev+1069-g02a966386). Simple Lua script. Another thing you need is a thing called ClickDetector. A script I created to allow for turbo mouse button clicking. I made an very basic script that detects the player’s mouse click event with user input servi… Oct 30, 2014 · I want to create a teach, and when player click his mouse button, the tech will do something. It needs multiple items in order for it to work. Jan 25, 2024 · hi, fresh here recently i have seen a video that can use logi lua script to fullfill the jitteraim without a logi mouse on chinese website. To insert one, just go to Insert -> Object -> ClickDetector. Feb 9, 2022 · Lua March 12, 2022 6:15 AM how to get the player mouse in roblox studio Aug 15, 2024 · Learn how to easily detect when a part is clicked in Roblox Studio with this step-by-step guide. I have tried for a while an Jul 12, 2021 · I’m trying to detect if a player has left clicked but my code doesn’t work. VLC plugin that allows you to pause/play a video by clicking on the video image. update you can check if your mouse is inside the width and height of your newly created button and if so do mouse click event. However, I cant find the right function to tell if Jun 8, 2023 · Describe your problem here. Whether you're creating an interactive game or adding clickable elements to your world, this . Generic mouse/key input Beyond the Input Action System, you can capture mouse and keyboard inputs using UserInputService. It is ideal for tutorials, code walkthroughs, or any scenario where you want to highlight a part of your screen in real time. Jul 9, 2020 · Connect it to a function with the first parameter as player. Contribute to SplitSplice/mousefling development by creating an account on GitHub. Jun 13, 2020 · I just started scripting with G Hub and managed to get some scripts working, but i have read the api and didnt found a easy way to get mouse movements relative to the active/target window. Note: Setting the delay too high can cause Aug 8, 2021 · Hi! I am trying to detect when the player clicks a button. Keyboard Jul 5, 2020 · I need the left mouse button to repeat clicks every 100 ms while the left mouse button is pressed, but I can’t figure out how to do this. It remains supported because of its widespread use, but you should strongly consider using these alternatives. A Lua function that checks if the mouse was just pressed and if the mouse position overlaps with a specific color. Learn how to create a Lua function that makes your character punch when the mouse button is clicked. Aug 1, 2020 · Firstly, I do not want to use the Mouse object, so MouseButton1Click is not an option. This setup allows you to manage events more flexibly. How would I do this using only UserInputService, not the button events? Thanks. For example: I click the right mouse click, the following will be executed: W-SPACE-SHIFT-W-W I know how to do this, but how do you turn it into a script where the interval is different each time? Oct 23, 2024 · This library provides functionality for managing interactive buttons in Love2D. It is ideal for tutorials, code walkthroughs, or any scenario where you want to Jul 26, 2023 · Of course on PC and with the option to click the mouse arrow in the game window. I searched online for tutorials but cannot find a solution. The player's mouse instance can be used to track user mouse input including left and right mouse button clicks and movement and location. This event fires from either a Script or LocalScript when a player right clicks their mouse cursor on a ClickDetector or DragDetector. g. If I wait a few seconds the arrow Jul 31, 2022 · Ok, a Lua script that does the following When the Primary Click AND Secondary click is held down then the "w" key is pressed. MouseButton The button you wish to simulate the click with. ButtonR2 without detecting MouseButton1Down(). Contribute to unacro/logitech-lua-scripts development by creating an account on GitHub. I made this script for my own use when recording videos. The codes used; getMousePos () setMousePos () mouse_event () keyDown () keyUp () Trainer usage explanation; 1) Save: Move the mouse arrow to the place to be clicked and press the F8 key. The ClickDetector. Adding More Dynamic Behavior One of the advantages of using tables for event handling is that you can easily add or remove handlers at Does anyone know what the side mouse buttons are called when making a script? For example macros [m5], but for side mouse button? Learn how to create an auto-clicker function in Lua that clicks the mouse at a specified interval and for a specified number of times. Oct 28, 2023 · -- Toggles a mouse button when you press another mouse button. /click options ButtonObj MouseButton Down none options See Making a macro for instructions on how to properly use options. To use: Activate scroll lock on your keyboard then click the button you want to activate turbo on. It's pretty simple: Software debouncing. I can add A Lua function that watches for mouse clicks and executes a callback function whenever a click event occurs. This might even work for Apr 29, 2022 · You’re welcome. i want to detect when the click with the mouse on gf with lua or haxe (i will put lua but haxe can help me to :>) and i already try with this script but not working very Can somebody help me? I want to create a script where you press a certain mouse button, the button will perform different keys with different timing. Event handling is a fundamental concept in programming that allows you to execute code in response to specific occurrences or actions, known as events. Accepts any value (LeftButton is the default Feb 16, 2014 · Yeah sure it's potentially possible to use Lua & the mouseEvent handler instead of creating cursor enter actions for each object. They detect basic mouse events: enter, leave, left click and right click. Mar 7, 2018 · It's a very simple approach that does not store any button states. I would like to send repeated left mouse clicks (as if you are clicking it as fast as you could) While the left mouse button is held down, however this script would only run while right mouse button is being held. May 29, 2025 · What is click-to-zoom? click-to-zoom is an OBS Lua script that lets you smoothly zoom in on a display capture source, centering the zoom on your mouse position. I tried with the default script from Logitech G Hub but MOUSE_BUTTON_PRESSED Arg: 1 does not show up. This must return true for any other mouse/keyboard function to work. Sep 11, 2022 · A “MouseClick” is considered as the mouse being pushed down and then released upon which the event fires. I didn't notice this solution being proposed in the past. Zooming I have a Logitech g502 and I want to spam they F key while I hold the left button of the mouse wheel (the one that clicks when u press the wheel to the side), I've tried IsMouseButtonPressed (11) but I get invalid argument in line and I don't know how to get it to work. ModuleScript: function GuiModule. A roblox script to fling someone by pressing "E". This Lua script utilizes the mouse and keyboard libraries or APIs to simulate mouse clicks and text typing. The side "Back" button has stopped working properly. I want to use mb1 and mb2 to make it work, not just mb1. The following LocalScript, when placed in StarterPlayerScripts, captures the began and ended phases of key and mouse clicks and prints the result to the Output window. Jun 7, 2021 · sorry about the little misdirection lol! but I wanna know how to use the script “detector” to detect if the button was clicked: Lua Tutorial: How to Make an Auto-Clicker in Lua with Cheat Engine! (Sakura Clicker) Stephen Chapman 51. Rifbot lua scripts ctrl+f to search. Any help will be appreciated. Cropping and positioning of the source is Hello Everyone This post was made long ago but I am going to try my luck. if you Aug 5, 2023 · I want to play a sound effect when a gui object is clicked and I want to do this with 1 single script in order to prevent lag. In regards to clicking, the mouse must be in bounds of the GuiButton and the mouse button must be pressed down and up again before this event fires. This Lua code demonstrates how to create a function that plays an animation when the left mouse button is clicked. UserInputType. However, I’m unsure of how to call the function which makes the next level of inserted control rods (on the monitor) appear when the click detector for the control rod throttle is clicked. Jul 6, 2018 · As a roblox developer, it is currently impossible to detect Enum. 5. Learn how to automate button clicks in Lua with a practical example. It will limit your ability to click very very Mouse has been superseded by UserInputService and ContextActionService, which cover a broader scope, are more feature rich, and support cross-platform patterns better. Paste this into the default profile script box, save, enjoy! toggle_button = 7 -- What mouse button should control the toggle button_to_toggle = 1 -- What button to toggle button_toggled = false function Jan 12, 2021 · Hello! Could someone help me please? I would like to know how to replace this script: UserInputService. MouseButton2Click This event fires when the user's mouse fully right clicks the GuiButton. Also i am now able to display the objects name under it via scripting. Players. com/en-us/library/windows/desktop/ms646260 (v=vs. MouseClick event then lets you figure out which player clicked the part or model, and works both client-side from a LocalScript, and server-side from a Script. Details This function does nothing if the Button widget is disabled, or if the button is Sep 16, 2019 · mouse OBS Lua click-to-zoom 1. Attention, the inaccuracy can be up to 1-3 click, since the Sleep () function ONLY accepts integers, So milliseconds for sleep are rounding because float just brokes everything. Friend who is set is his Crysis (original) ways. I simply copy pasted it into my Logitech G Hub app and like magic, the issue is gone. The bottom is a little different than the . Learn how to create a Lua function that responds to mouse clicks by printing messages, with detailed examples and explanations. function OnEvent (event, arg) Sleep (50) while (IsMouseButtonPressed (2)) do PressAndReleaseMouseButton (1) PressAndReleaseMouseButton (1) PressAndReleaseMouseButton (1) PressAndReleaseMouseButton (1) Sleep (1 Generates a Lua script to simulate external left mouse button clicks. You would use the mouse move listener & then on mouse move you would query if an object exists underneath the cursor which you could then add some queries & code inside to determine what to do. function love. The default control scripts bind ButtonR2 to interact with ClickDetectors using Hello, I am trying to figure out how I can make the game detect when the mouse is being pressed, but not like clicking a button but the mouse being clicked in general. This is what I have so far. It doesn't happen all the time, but enough to annoy me. I also thought it would be good to learn a new language (lua) and solve this issue to the best that my ability and free time allows. Returns if the Roblox window is in focus. KeyCode. Change your mouse to "Automatic Game Detection" mode -- 2. (As an extra Nov 10, 2019 · I got it working yesterday and today it doesn't work anymore. Aug 8, 2021 · Ghub Script: Drag mouse down and autocliking by pressing left mouse button (LUA) Asked 4 years, 3 months ago Modified 3 years, 3 months ago Viewed 5k times An extented Lua engine written in C++, it automates your keyboard/mouse according to an editable Lua script. aspx Logitech G HUB - Lua Script. So, I wanted to share the procedure here for anyone who is facing the issue. I have Gsuite program (Logitech) where is possible to script with LUA and I need to create a filter for the button of the mouse. Effective event handling enables you to create interactive and responsive applications. Hello, I’m scripting a nuclear control room and am fairly new to scripting. Note that the player's Character must be within the MaxActivationDistance of the detector. It should support any mouse button. The Lua Mouse Script is a powerful tool that allows you to automate mouse clicks on text boxes and type predefined text. I tried this but this script never stops. 50ms, execute 1 back button press and release Overview The G-series Lua API is a set of functions using the Lua programming language and provides advanced scripting functionality for the G-series line of gaming keyboards. function OnEv Feb 5, 2019 · I'm working on a recoil script, and I want to be able to activate it using left- and right-click. They work when parented to BasePart, Model, or Folder objects. Next i would like to click on an entity and display a sprite and or text on a specific entity. won’t work either. I accidentally click a button and I simply want to add a filter, If I press the button Performs a virtual mouse click on the button. Right click on a profile's icon and choose scripting -- 3. Parent at the beginning. The code uses a global variable to track the animation state and provides a playAnimation () function to start and end the animation. yes Logitech mice support LUA scripting language you can do pretty advanced shit with it. Aug 28, 2020 · The Windows' API "mouse_event". Button1Down etc events? If so, how would this be performed? Better documentation for Synapse X. Apr 29, 2023 · I am trying to write a script and I am brand new to Lua and scripting as well. If both conditions are true, it prints a trace message. If the frame's type is not Button, this will silently fail. Everything is working fine when i have the mouse pointer, let's say, active with the arrow visible. After reinstalling windows I lost my settings and now I cant get GHUB to run mouse macros correctly. The code can be used as a starting point for Lua PICO-8 Mouse input Fastest Entity Framework Extensions Bulk Insert Bulk Delete This is a repo created to help fix an issue prevalent in Logitech Gaming Mice. Touch input on TouchEnabled devices also fires click events. I've posted an example of this as a free Trainer. There's a lot more to this method of doing it manually as you have to handle if your mouse is over more than one button at a time, clicking buttons through different game states, and other stuff that Dec 14, 2024 · This document provides a concise reference for the Logitech G HUB Lua API, version 2023. MouseButton1 then warn ('clicked'… Dec 1, 2020 · Hi all, I am very noob and I'd like to ask you help for a script using lua. 2) Speed: Set the Lua Cheatsheet for Logitech G Hub. Can หากต้องการข้อมูลเกี่ยวกับการได้รับอ็อบเจกต์ Mouse โปรดดูที่หน้า Mouse。 May 11, 2024 · I am very new to roblox development and was coding a gun script that decreases damage the further away you are, every time you shoot the gun the damage script will play one additional time. Additionally, it allows for translating all layers and scaling Jan 20, 2022 · 0 Hello ppl, My question concern about LUA and bind mousewheel "scroll" : I am looking to bind any key on my mousewheel "scroll" up or down with LUA on my logitech g pro wireless, I have success, there are long time ago with Autohotkey, or succes with another mouse like roccat because it include to bind mousewheel scroll up and down in roccat Learn how to write a Lua function that simulates a mouse click on the screen when called. Third Party API I am toying around with Logitech G Hub Lua script's and cannot get an output message when pressing RMB, LMB, and MMB, all other mouse buttons register. G Hub’s script editor allows you to write scripts in the Lua programming language with the Lua API to control mouse and keyboard functions. And I just cant get it to Aug 15, 2022 · Logitech Lua Script: This should be an easy one i thought Goal: Spam Leftclick on random inervall while left Mouse Button is pressed. Somehow i can't get it to work and it only will only click 1 ti Aug 24, 2016 · Stimulating mouse click on a different window form,by getting and adding border size, and using current window x , y which you can get from memory view or if it's cheat engine window then from cheat engine lua scripting.