Search found 158 matches

by maxkill
03 Mar 2024, 13:36
Forum: Ask for Help (v1)
Topic: Was there a way to move mouse along a line or not? Topic is solved
Replies: 14
Views: 421

Re: Was there a way to move mouse along a line or not? Topic is solved

Then (can be easily tested on boiler's drawing): CoordMode, Mouse, Screen a::MouseGetPos, x1, y1 b::MouseGetPos, x2, y2 c:: While, GetKeyState("c","P") { MouseGetPos, x3 MouseMove, x3, y2+(y2-y1)*(x3-x2)/(x2-x1), 0 } Return You could combine it with the above if required. Thanks man! Impressive work.
by maxkill
02 Mar 2024, 13:16
Forum: Ask for Help (v1)
Topic: Was there a way to move mouse along a line or not? Topic is solved
Replies: 14
Views: 421

Re: Was there a way to move mouse along a line or not? Topic is solved

Then: Loop, Parse,% "XL,YU,w,h", CSV SysGet, %A_LoopField%,% 75 + A_Index OL:=[], XR:=XL + w, YD:=YU + h ; bounding rectangle of all display monitors #RButton:: ; Cursor OnLine On/Off CoordMode, Mouse, Screen MouseGetPos, x1, y1 KeyWait, RButton ; line through (x1,y1) and (x2,y2) MouseGetPos, x2, y...
by maxkill
29 Feb 2024, 21:30
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1088
Views: 573822

Re: FindText - Capture screen image into text and then find it Topic is solved

Updated to 9.4 version - 2023/12/18 :dance: :beer: 1. Add: The image processing window has added a screenshot page, which makes it more convenient to obtain colors when using multi-color search mode. 2. Add: EditScroll() function is added to Locate the specified row in the edit box. Cool! Will this...
by maxkill
29 Feb 2024, 17:18
Forum: Ask for Help (v1)
Topic: Was there a way to move mouse along a line or not? Topic is solved
Replies: 14
Views: 421

Re: Was there a way to move mouse along a line or not? Topic is solved

Rohwedder wrote:
29 Feb 2024, 11:54
text
Okay cool :+1:

Now how do I set the start xy coordinate and end xy coordinate to move along to change the angle?
by maxkill
29 Feb 2024, 11:54
Forum: Ask for Help (v1)
Topic: Was there a way to move mouse along a line or not? Topic is solved
Replies: 14
Views: 421

Re: Was there a way to move mouse along a line or not? Topic is solved

lkb3 wrote:
29 Feb 2024, 11:10
text
can you help me with the math? I'm not good at math. :)
by maxkill
29 Feb 2024, 10:39
Forum: Ask for Help (v1)
Topic: Was there a way to move mouse along a line or not? Topic is solved
Replies: 14
Views: 421

Re: Was there a way to move mouse along a line or not? Topic is solved

lkb3 wrote:
29 Feb 2024, 10:19
text
can you modify it to move along the 2 xy coordinates exactly (the "line" between the coordinates) in for example 40 pixels to right every time?
by maxkill
29 Feb 2024, 09:10
Forum: Ask for Help (v1)
Topic: Was there a way to move mouse along a line or not? Topic is solved
Replies: 14
Views: 421

Was there a way to move mouse along a line or not? Topic is solved

Is there a way to move the mouse on a line (having 2 xy coordinates forming a line) then move mouse only along this line exactly at specified x coordinates?
by maxkill
30 Nov 2023, 09:23
Forum: Ask for Help (v1)
Topic: Can someone please fix this drawing lines script?? Topic is solved
Replies: 8
Views: 752

Re: Can someone please fix this drawing lines script?? Topic is solved

Can I have it activate from holdingshift then left mouseclick to enable the line and then once click left button again it closes the line or something like that so I don't have to keep holding any keys down? Sure... here's one way... Replace the "line-drawing" code in your initial post with this......
by maxkill
29 Nov 2023, 21:50
Forum: Ask for Help (v1)
Topic: Can someone please fix this drawing lines script?? Topic is solved
Replies: 8
Views: 752

Re: Can someone please fix this drawing lines script?? Topic is solved

To avoid having to hold mouse button... Replace this while getKeyState("LButton", "P") With this while getKeyState("Shift", "P") Then you can let go of mouse, and simply continue to hold shift down to allow line to follow mouse. When you are satisfied with the line that is drawn, just release the s...
by maxkill
29 Nov 2023, 19:02
Forum: Ask for Help (v1)
Topic: Can someone please fix this drawing lines script?? Topic is solved
Replies: 8
Views: 752

Can someone please fix this drawing lines script?? Topic is solved

;================================================================================================================================ ; Subject: Gdip Draw shapes and lines with the mouse ; Description: Proof of concept for drawing shapes and lines with the mouse using BitBlt() ; Topic: https://www.auto...
by maxkill
02 Oct 2023, 18:13
Forum: Ask for Help (v1)
Topic: Can I zoom part of a window horizontally then zoom stretch it to edge of screen -->
Replies: 0
Views: 157

Can I zoom part of a window horizontally then zoom stretch it to edge of screen -->

Can I zoom part of a window horizontally then zoom stretch it to edge of screen, let's say I want the 2/3 of right of the window to be stretched to left side of screen (zoom up and down not needed), can this be possible using some zoom script, also with 0 laggs?

Thanks
by maxkill
01 Aug 2023, 21:11
Forum: Ask for Help (v1)
Topic: screenshot script how to fix 2nd screen wrong capture area+speed
Replies: 5
Views: 428

Re: screenshot script how to fix 2nd screen wrong capture area+speed

text Thnx But sadly couldn't do it, too hard F9:: DllCall("SetThreadDpiAwarenessContext", "ptr", -3, "ptr") pToken := Gdip_Startup() Gdip_GetDimensions(pBitmap, w, h) WinGetActiveTitle, Title title := RegExReplace(title, "[-,0/\\:*?""<>|]") ; remove these characters FormatTime, DateTime,, yyyy-MM-d...
by maxkill
01 Aug 2023, 15:28
Forum: Ask for Help (v1)
Topic: screenshot script how to fix 2nd screen wrong capture area+speed
Replies: 5
Views: 428

Re: screenshot script how to fix 2nd screen wrong capture area+speed

text Indeed it seems to work now :clap: I added the DllCall("SetThreadDpiAwarenessContext", "ptr", -3, "ptr") just under the F9:: Now I just came up with 1 more q aswell, can I crop top or bottom part of image tiny bit somehow before save? Also can it screenshot bit faster (if spamming screenshot k...
by maxkill
01 Aug 2023, 12:16
Forum: Ask for Help (v1)
Topic: screenshot script how to fix 2nd screen wrong capture area+speed
Replies: 5
Views: 428

screenshot script how to fix 2nd screen wrong capture area+speed

Hello this script works well on main screen, but on third screen it captures only a corner of the screen and not what is visible on that screen. I have 300%scaling on that screen but on main I have 100%. Any way to make it automatically save the third screen correctly :?: ( Also, less important perh...
by maxkill
03 Jul 2023, 18:39
Forum: Ask for Help (v1)
Topic: findtext not capturing correctly on extra screen, what could be the issue?
Replies: 1
Views: 207

findtext not capturing correctly on extra screen, what could be the issue?

it works fine on main screen, but on extra screen it doesn't work, any solutions? ;/* ;=========================================== ; FindText - Capture screen image into text and then find it ; https://autohotkey.com/boards/viewtopic.php?f=6&t=17834 ; ; Author : FeiYue ; Version : 8.9 ; Date : 2022-...
by maxkill
05 Feb 2023, 14:18
Forum: Ask for Help (v1)
Topic: how do I make findtext choose the first of 2 identical images Topic is solved
Replies: 7
Views: 929

Re: how do I make findtext choose the first of 2 identical images Topic is solved

wouldn't that be else if (ok.count() == 1) { ? Appears to be working great! Thanks! :thumbup: final code MouseGetPos, xx, yy sleep, 100 queryStr := "|<>0x1383B8@1.00$8.TrzzTrxzTs" ok := FindText(xx-3800, yy-2500, xx+1000, yy+2900, 0, 0, queryStr) ; mousemove if two identicle are found if (ok.count(...
by maxkill
04 Feb 2023, 17:00
Forum: Ask for Help (v1)
Topic: how do I make findtext choose the first of 2 identical images Topic is solved
Replies: 7
Views: 929

Re: how do I make findtext choose the first of 2 identical images Topic is solved

makes more sense to me this way: queryStr := "|<>0x1383B8@1.00$8.TrzzTrxzTs" ok := FindText(xx+1200, yy-2500, xx+0, yy+2900, 0, 0, queryStr) ; mousemove if two identicle are found if (ok.count() == 2) { mousemove, % ok.1.1, % ok.1.2, 1 } Very nice indeed. Any way to make it go for the first image f...
by maxkill
03 Feb 2023, 11:03
Forum: Ask for Help (v1)
Topic: how do I make findtext choose the first of 2 identical images Topic is solved
Replies: 7
Views: 929

Re: how do I make findtext choose the first of 2 identical images Topic is solved

text managed to solve it coordmode, mouse, screen MouseGetPos, xx, yy sleep, 50 Text:="|<>0x1383B8@1.00$8.TrzzTrxzTs" Text.="|<>0x1383B8@1.00$8.TrzzTrxzTs" ;same 2 images if (ok:=FindText(xx-2000, yy+2400, xx, yy-2400, 0, 0, Text)) ;if (ok:=FindText(X, Y, 0, 0, A_ScreenWidth, A_ScreenHeight, 0, 0, ...

Go to advanced search