Search found 1478 matches

by rommmcek
30 Dec 2022, 12:59
Forum: Ask for Help (v1)
Topic: Autohotkey Screensaver only works on main screen, need to work on extra screen Topic is solved
Replies: 6
Views: 604

Re: Autohotkey Screensaver only works on main screen, need to work on extra screen Topic is solved

I didn't change the code! Use this Move instead:

Code: Select all

Move:
If WinExist(wTitle) {
 SoundBeep, 1900
 WinGetPos,,, w, h
 Random, x, mon3Left, mon3Right-w
 Random, y, mon3Top, mon3Bottom-h     
 WinRestore
 WinMove,,, x, y, w, h
} Else {
 SetTimer,, Off
 SoundBeep, 1000
}
Return
by rommmcek
30 Dec 2022, 03:36
Forum: Ask for Help (v1)
Topic: Autohotkey Screensaver only works on main screen, need to work on extra screen Topic is solved
Replies: 6
Views: 604

Re: Autohotkey Screensaver only works on main screen, need to work on extra screen Topic is solved

Can't seem to find any flaw in the code. Can you describe how it works for you and what does not work as expected. My main screen is 2 What do you mean by "My main screen is 2"? Your " screen 1" is still on the far right, isn't it? Run this script and make 3 times "PrintScreen" when MsgBox tells you...
by rommmcek
29 Dec 2022, 10:38
Forum: Ask for Help (v1)
Topic: Why does this page.setrect(x,y, w,h) not work properly?
Replies: 11
Views: 754

Re: Why does this page.setrect(x,y, w,h) not work properly?

You're right, those arguments are Chromium Command Line Switches , but it seems there is no "AlwaysOnTop" switch. WinSet AlwaysOnTop,, ahk_exe chrome.exe will affect only the top most chrome window, so you have to ensure that e.g. via WinWaitActive ahk_exe chrome.exe or still better using WinTitle a...
by rommmcek
29 Dec 2022, 07:49
Forum: Ask for Help (v1)
Topic: Why does this page.setrect(x,y, w,h) not work properly?
Replies: 11
Views: 754

Re: Why does this page.setrect(x,y, w,h) not work properly?

What would be the reason for the number 96 ? For example, if the DPI is 120 , DpiScaleX would be 1.25 (120/96). So 96 [DPI] (Dots per inch) is by Microsoft definition 100% scaling. You have on first monitor 144/96=1.5 i.e.: 150% Do you know how to make it always on top? I don't know javascript, but...
by rommmcek
29 Dec 2022, 04:31
Forum: Ask for Help (v1)
Topic: Why does this page.setrect(x,y, w,h) not work properly?
Replies: 11
Views: 754

Re: Why does this page.setrect(x,y, w,h) not work properly?

This seems to work reasonably well: #include Rufaydium.ahk w := 500 h := 500 x := round((A_ScreenWidth - w)/2) y := round((A_ScreenHeight - h)/2) Chrome := new Rufaydium() Chrome.capabilities.addArg("--app=https://korean.dict.naver.com/kovidict/vietnamese/#/search?query=test") Chrome.capabilities.ad...
by rommmcek
28 Dec 2022, 16:08
Forum: Ask for Help (v1)
Topic: Why does this page.setrect(x,y, w,h) not work properly?
Replies: 11
Views: 754

Re: Why does this page.setrect(x,y, w,h) not work properly?

He has (most probably still) this monitor configuration . My DPI is 120 ppi (125%) and Rufaydium's SetRect() doesn't work for me neither. I can correct positon by a certain factor, but this would then work only for a given size (width & height). It doesn't seem to behave linear at all. @ anhnha : Tr...
by rommmcek
28 Dec 2022, 05:59
Forum: Scripts and Functions (v1)
Topic: Screen clipping
Replies: 304
Views: 132900

Re: Screen clipping

I don't see option to set to 200 in my monitor setting. Never mind, if somebody encounters problem will post it or even fix it! It does but doesn't seem to work properly in my monitors as I can't draw rectagle region across both monitors with same height. Yeh, I can imagine. To fix it would be to m...
by rommmcek
28 Dec 2022, 05:11
Forum: Scripts and Functions (v1)
Topic: Screen clipping
Replies: 304
Views: 132900

Re: Screen clipping

Good news and thanks we finally did it, although partially hardcoded (first monitor size & scales)! Would this still work if the second monitor is on the right, top, or bottom of the first monitor (just for possible case in the future)? Added to the code above cases if second monitor is on the left,...
by rommmcek
28 Dec 2022, 03:26
Forum: Scripts and Functions (v1)
Topic: Screen clipping
Replies: 304
Views: 132900

Re: Screen clipping

Try to replace hbm := CreateDIBSection(w, h, chdc) with hbm := CreateDIBSection(ws, hs, chdc).
by rommmcek
27 Dec 2022, 11:54
Forum: Scripts and Functions (v1)
Topic: Screen clipping
Replies: 304
Views: 132900

Re: Screen clipping

I edited the code above again. Try it and if it doesn't work pleas make gif again and post it here.
by rommmcek
27 Dec 2022, 10:01
Forum: Scripts and Functions (v1)
Topic: Screen clipping
Replies: 304
Views: 132900

Re: Screen clipping

From now on this cannot be fixed by coordinats. It is internal Gdi+ issue.
by rommmcek
27 Dec 2022, 09:07
Forum: Scripts and Functions (v1)
Topic: Screen clipping
Replies: 304
Views: 132900

Re: Screen clipping

Thanks for your patience!
As much as I can estimate from your gif, scaling of the dimensions is correct especially x and y coordinats, but capture itself is too small so we have to enlarge it. I'll try to do it tomorrow!

bye for now!
by rommmcek
27 Dec 2022, 06:39
Forum: Scripts and Functions (v1)
Topic: Screen clipping
Replies: 304
Views: 132900

Re: Screen clipping

I edited the code above again. Try it and if it doesn't work make PrintScreen (after capturing) and post it here.
by rommmcek
27 Dec 2022, 06:34
Forum: Scripts and Functions (v1)
Topic: Screen clipping
Replies: 304
Views: 132900

Re: Screen clipping

We should scale width and hight as well! Just a sec...
by rommmcek
27 Dec 2022, 05:57
Forum: Scripts and Functions (v1)
Topic: Screen clipping
Replies: 304
Views: 132900

Re: Screen clipping

anhnha wrote:
27 Dec 2022, 05:48
… Do you mean the first If with "the code above"? ...
The second if is for your layout, but you can copy all of them, it shouldn't affect the result.

Show your code!
by rommmcek
27 Dec 2022, 02:17
Forum: Scripts and Functions (v1)
Topic: Screen clipping
Replies: 304
Views: 132900

Re: Screen clipping

Added to the code above cases if second monitor is on the left, top or bottom of the first one. Monitors should not be off set i.e.: - top borders of both monitors should be in one line (for sec. mon. on left or right) - left borders of both monitors should be in one line (for sec. mon. on top or bo...
by rommmcek
26 Dec 2022, 10:15
Forum: Scripts and Functions (v1)
Topic: Screen clipping
Replies: 304
Views: 132900

Re: Screen clipping

x*=round(..) was obviously a Copy/Paste & quick edit blunder! I wonder how tank got any capture at all! This was a proposal from a one monitor user perspective, being on a mount stupid after some capturing successes from different regions of a monitor. From today's point of view (after anhnha disco...
by rommmcek
23 Dec 2022, 18:36
Forum: Scripts and Functions (v1)
Topic: Screen clipping
Replies: 304
Views: 132900

Re: Screen clipping

anhnha wrote:
23 Dec 2022, 18:20
... but the rectangle offset is off on the second monitor.
Off how much and in which direction?
by rommmcek
22 Dec 2022, 14:54
Forum: Scripts and Functions (v1)
Topic: Screen clipping
Replies: 304
Views: 132900

Re: Screen clipping

A few posts below is edited function.

P.s.: It's been a while since then, so odds the edited function will work for you, as it is, are slim, besides you don't describe your problem at all (didn't read posts beforehand).

Go to advanced search