16 posts in this topic
i wanna creat an _Imagesearch / Mousemove script for an 3D/FPS Game and have Problems with the mousemove.
In the game like Curveball(2D) its still works but in games like Battlefield (3D) are the absolute coordinates not really helpfull.
Someone have an idea or an Example for me ?
Im new when it comes to scripting and i follow some videos on how to make clicks and such. So i will say i know the basics alrady.
However, im having a really big problem
When i run the script is works fine with the clicks and all. But if i run it one or two more times it just moves to very inaccurate positions. YES, i have tried mulitple times to change positions and such but no luck. My script is working its just so inaccurate that im unable to use it. Are there any solution for this?
I have also set the camera to a specific position. I have also tried other camera angles, no luck there either. Making more smoother macro movements does not seem to work aswell.
I have also tried to have clicks away from the minimap, since i know some youtuber had problem with inaccuracy because of this.
I came here because i was googling and did not see anyone else having this problem, or mentioning it. So if someone have a solution, i would be happy!! All i have seen are people trying to change the resolution. But it has nothing to do with that. I heard someone mention controlmouseclick. However are there any differences? I have also A window selection in my script so it changes to the window the macro will be running in. Resolution is not changing or anything. I have also tried other macros and same problem there.
Also does anyone know or can teach me how pixel search works? I want the macro to be able to click at the correct character instead of waiting for the character to get in the position its searching for.
I'm trying to make a program in VB.NET that click inside a picturebox of an app without moving the mouse (using ControlClick).
My code is this:
1) ControlClick("Form1", "", "[CLASS:PictureBox; INSTANCE:12]", "left", 1, 5, 5) 2) ControlClick("Form1", "", "[CLASS:PictureBox; INSTANCE:1]", "left", 1, 5, 5) The code is correct but the problem is that 1) works perfectly and 2) doesn't work.
Here I leave you the summary of each picturebox:
>>>> Window <<<<
Position: 168, 0
Size: 1030, 780
>>>> Control <<<< PICTUREBOX 12
Advanced (Class): [CLASS:PictureBox; INSTANCE:12]
Position: 305, 721
Size: 40, 40
>>>> Control <<<< PICTUREBOX 1
Advanced (Class): [CLASS:PictureBox; INSTANCE:1]
Position: 4, 176
Size: 700, 533
Thank you for you help!!!
I recently wanted to know how to differentiate between a mouse click and a touch click on controls in your GUI.
This can be interesting when using picture controls as buttons in combination with this UDF here.
No one could help me, so I tried my best to get it to work. And it works now! Unfortunately only for Windows 8 and above, as I had to use functions which are unavailable for older OS.
Additionally this was my first time writing DLLCalls myself. I hope (and think) that there are no mayor mistakes in it,
So here's the sample code:
The _WinAPI_Base64Decode is written by @UEZ (as well as the way to use PNG as button (from binary) - thanks for that!)
On Windows 7 there is the WM_TOUCH function which should handle touch events, but I couldn't get it to work on controls ..??
If you will get the x/y coordinates of a touch (even when you touch on controls) you could make the "EvaluateProximityToRect" check yourself - as this function is not available in Windows 7. Shouldn't be that hard.
Btw.: this here is the MSDN articel related to this topic: https://msdn.microsoft.com/en-us/library/windows/desktop/hh454931(v=vs.85).aspx
So thats it. Any questions and comments welcome!
I'm currently wondering if there is somehow to actually make autoit click inside a minimized program? & sent keystrokes ?
2nd question, how can i make it do a mouse click at e.g. x200,y200 while the are at like x354,y313 (This is purely an example.) would love to be able to do other shizz on my pc while the script is running if possible.
If this ISNT possible can u recommend a language / other scripting program which are able to do this ? willing to start over learning a new coding/scripting language.