Maxol Posted February 16 Share Posted February 16 Short question: how can I get the position from the cursor from outside a Torque game? Sending a Windows API command like GetCursorPos does not work because the Torque engine probably has its own mouse handling. Long question: I've never created mods or hacks for games but I always create AutoHotkey scripts to add some Hotkeys to games so I don't have to use the mouse that much (Carpal tunnel syndrome is $h!t). A very simple script with this line allows me to press the Left Mouse Button by pressing the D key: d::LButton Another example: most games use the M key for the map but I want the Tab key so this line will do this: Tab::m So what if I have a button in the bottom right corner of the screen and I want a Hotkey to click it? Then I find the button coordinates and I write this line in my script: F2::Click 1900 1060 Now I've come to the Torque Engine issue: my last example does not work in a Torque Engine game (Age of Decadence)! What I would like to do is move the mouse to a specific location and click the left mouse button. Who can help me to get the current mouse location from the game? And also, how can I move the mouse from the outside? Does the Torque Engine exposes information like this with an API? Something like GetCursorPos() and SetCursorPos() or maybe by using SendMessage() or PostMessage() with certain messages? Anything? If not, would it be possible to write a mod/script that would expose some info and react to the outside world? Or a mod/script that could add hotkeys that would click the mouse? Any lead to a good line of inquiry would be appreciated! Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.