Search found 116 matches

by anhnha
30 Jun 2023, 06:09
Forum: Scripts and Functions (v1)
Topic: Screen clipping
Replies: 304
Views: 132392

Re: Screen clipping

I have tested the new code with extensions, and they're quite impressive. However, I encountered an issue where the drawing region doesn't function correctly when the monitor's scaling is set to anything other than 100%. I tried the previous solution provided by rommmcek, but unfortunately, it didn'...
by anhnha
28 Jun 2023, 02:33
Forum: Scripts and Functions (v2)
Topic: Snipper - Window Snipping Tool
Replies: 125
Views: 27655

Re: Snipper - Window Snipping Tool

I uninstalled v1, installed v2, and then launched the snipping tool. However, I was disappointed to find that it does not display the rectangular region while I'm dragging it. As a result, I am unable to determine its size or confirm if it is the desired region until I complete the dragging process...
by anhnha
24 May 2023, 04:43
Forum: Scripts and Functions (v2)
Topic: Snipper - Window Snipping Tool
Replies: 125
Views: 27655

Re: Snipper - Window Snipping Tool

I uninstalled v1, installed v2, and then launched the snipping tool. However, I was disappointed to find that it does not display the rectangular region while I'm dragging it. As a result, I am unable to determine its size or confirm if it is the desired region until I complete the dragging process....
by anhnha
22 Feb 2023, 13:41
Forum: Ask for Help (v1)
Topic: How to search with chatgpt from clipboard for meaning
Replies: 5
Views: 638

Re: How to search with chatgpt from clipboard for meaning

aliztori wrote:
22 Feb 2023, 03:34
Chatgpt has a humanity detection process and I don't think this is possible now
I have seen many people used them in chrome extensions. So should it work?
https://github.com/wong2/chatgpt-google-extension#readme
by anhnha
21 Feb 2023, 21:58
Forum: Ask for Help (v1)
Topic: How to search with chatgpt from clipboard for meaning
Replies: 5
Views: 638

How to search with chatgpt from clipboard for meaning

I have been doing this to check meaning of a word or phrase.

Code: Select all

+y::
{
	Send, ^c
	Sleep 50
	Run, http://www.google.com/search?q=`%22%clipboard%`%22
	Return
}
How can I make it work with https://chat.openai.com/chat?
I don't know how to make it as a link to search.
by anhnha
28 Jan 2023, 09:02
Forum: Scripts and Functions (v1)
Topic: Screen clipping
Replies: 304
Views: 132392

Re: Screen clipping

Hello, I changed the function Gdip_BitmapFromScreen to this. You'll need to change screen heights, widths, and scales to your values. EDIT: I didn't see rommmcek's post above. That was what I used. ; Function Gdip_BitmapFromScreen ; Description Gets a gdi+ bitmap from the screen ; ; Screen 0 = All s...
by anhnha
29 Dec 2022, 10:43
Forum: Ask for Help (v1)
Topic: How can I make the chrome opened by this Rudaydium always on top?
Replies: 12
Views: 674

Re: How can I make the chrome opened by this Rudaydium always on top?

Thanks, The title works. I was worrying that all chrome windows are of the same class and also there is a chance that different windows have the same title. In my way of doing things, I try to use tools and utilities that already exist. If it doesn't exist, then I fall back to AutoHotkey. I think th...
by anhnha
29 Dec 2022, 09:52
Forum: Ask for Help (v1)
Topic: Why does this page.setrect(x,y, w,h) not work properly?
Replies: 11
Views: 731

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

Thanks. I don't know javascript, but you can use standard AutoHotkey command: WinSet AlwaysOnTop,, ahk_exe chrome.exe I don't think this is javascript thing? WinSet AlwaysOnTop,, ahk_exe chrome.exe The problem with this is that I don't want to do this for all chrome windows. I only want apply always...
by anhnha
29 Dec 2022, 07:16
Forum: Ask for Help (v1)
Topic: How can I make the chrome opened by this Rudaydium always on top?
Replies: 12
Views: 674

Re: How can I make the chrome opened by this Rudaydium always on top?

The problem with that is that it cannot distingish between two different chrome windows with one opended by Rufaydium and the other one opened manually.
by anhnha
29 Dec 2022, 06:09
Forum: Ask for Help (v1)
Topic: Why does this page.setrect(x,y, w,h) not work properly?
Replies: 11
Views: 731

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

This seems to work reasonably well:
Yes, it works now.
What would be the reason for the number 96?
Do you know how to make it always on top?
by anhnha
29 Dec 2022, 00:44
Forum: Ask for Help (v1)
Topic: How can I make the chrome opened by this Rudaydium always on top?
Replies: 12
Views: 674

How can I make the chrome opened by this Rudaydium always on top?

How can I make the chrome opened by this Rudaydium always on top? #include Rufaydium.ahk w := 500 h := 500 x := A_ScreenWidth/2 y := A_ScreenHeight/2 Chrome := new Rufaydium() Page := Chrome.NewSession() ; navigate to url Page.Navigate("https://www.autohotkey.com/") page.setrect(x,y, w,h) return #f1...
by anhnha
28 Dec 2022, 22:32
Forum: Ask for Help (v1)
Topic: Why does this page.setrect(x,y, w,h) not work properly?
Replies: 11
Views: 731

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

I see.
I forgot about scaling. I used scale of 150% and I just tried on my laptop with no scale and it works fine.
Can we add something like DPIScale to correct this as we did it the previous thread?
Can we force the chrome window starts at the center of a screen instead of top left corner?
by anhnha
28 Dec 2022, 11:20
Forum: Ask for Help (v1)
Topic: Why does this page.setrect(x,y, w,h) not work properly?
Replies: 11
Views: 731

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

It does not work as expected. The top left corner of the window is not at the point (x,y) that I gave. I wanted to center the whole window on the center of the screen but I just tested how it work by setting the top left corner at the center of the screen. If it really did move the upper-left corner...
by anhnha
28 Dec 2022, 10:24
Forum: Ask for Help (v1)
Topic: Why does this page.setrect(x,y, w,h) not work properly?
Replies: 11
Views: 731

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

Why does this page.setrect(x,y, w,h) not work properly? By setting x := A_ScreenWidth/2, y := A_ScreenHeight/2 I expect the top left corner of the window would move to the center of the screen but it it move to lower right corner. Or probably I misunderstood how it work. And another question which I...
by anhnha
28 Dec 2022, 08:11
Forum: Scripts and Functions (v1)
Topic: Screen clipping
Replies: 304
Views: 132392

Re: Screen clipping

Thanks for the help. I was happy that setting both monitors with the same scale works but now I can set it any scale I want.
by anhnha
28 Dec 2022, 05:34
Forum: Scripts and Functions (v1)
Topic: Screen clipping
Replies: 304
Views: 132392

Re: Screen clipping

Remains to test if it would work for e.g.: firstMonScale:= 150, secondMonScale:= 200 I tried firstMonScale:= 150, secondMonScale:= 100 and firstMonScale:= 150, secondMonScale:= 125 and both worked well. I don't see option to set to 200 in my monitor setting. P.s.: It would be interesting to see the...
by anhnha
28 Dec 2022, 04:37
Forum: Scripts and Functions (v1)
Topic: Screen clipping
Replies: 304
Views: 132392

Re: Screen clipping

rommmcek wrote:
28 Dec 2022, 03:26
Try to replace hbm := CreateDIBSection(w, h, chdc) with hbm := CreateDIBSection(ws, hs, chdc).
Perfect, it works now! 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)?
by anhnha
28 Dec 2022, 02:53
Forum: Scripts and Functions (v1)
Topic: Screen clipping
Replies: 304
Views: 132392

Re: Screen clipping

The capture region was bigger than drawn region last time but now it's smaller.
https://gifyu.com/image/SvS7T
by anhnha
27 Dec 2022, 09:17
Forum: Scripts and Functions (v1)
Topic: Screen clipping
Replies: 304
Views: 132392

Re: Screen clipping

I should be thanking you instead.
The x and y coordinates are correct but the region is expanding to the left and bottom so the capture region is larger than needed.
I tried it for both small and large capture regions and they're expanding the same way.
by anhnha
27 Dec 2022, 07:25
Forum: Scripts and Functions (v1)
Topic: Screen clipping
Replies: 304
Views: 132392

Re: Screen clipping

It doesn't work.
Here is the image that I recorded.
https://gifyu.com/image/SkXJ2

Go to advanced search