cod with ahk i need work it in background app or inactive app

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Uzman Üye
Katılım
21 Mar 2019
Mesajlar
154
Tepki puanı
40
Ödüller
7
Yaş
32
7 HİZMET YILI
Is it possible for someone to convert this code to work in inactive screen
confused.gif

Kod:
CoordMode, Pixel, Window
    PixelSearch, FoundX, FoundY, 0, 0, 1280, 1024, 0x00FF90, 30, Fast RGB
    If ErrorLevel = 0
        Click, %FoundX%, %FoundY%, 1
    Sleep, 500
    Click, 137, 96, Left, 1
    Sleep, 500
 
Patrick Bateman
Süper Üye
Katılım
11 Şub 2021
Mesajlar
874
Çözümler
12
Tepki puanı
142
Ödüller
6
Sosyal
5 HİZMET YILI
Is it possible for someone to convert this code to work in inactive screen
confused.gif

Kod:
CoordMode, Pixel, Window
    PixelSearch, FoundX, FoundY, 0, 0, 1280, 1024, 0x00FF90, 30, Fast RGB
    If ErrorLevel = 0
        Click, %FoundX%, %FoundY%, 1
    Sleep, 500
    Click, 137, 96, Left, 1
    Sleep, 500
mean you wanna hide it from taskbar and mini tray
if that i can share you ahk hider
 
Onaylı Üye
Katılım
2 Tem 2021
Mesajlar
57
Tepki puanı
13
Ödüller
4
Yaş
24
4 HİZMET YILI
Is it possible for someone to convert this code to work in inactive screen
confused.gif

Kod:
CoordMode, Pixel, Window
    PixelSearch, FoundX, FoundY, 0, 0, 1280, 1024, 0x00FF90, 30, Fast RGB
    If ErrorLevel = 0
        Click, %FoundX%, %FoundY%, 1
    Sleep, 500
    Click, 137, 96, Left, 1
    Sleep, 500
It is possible to modify the code to work in an inactive window or screen, but it will depend on how the inactive window or screen is implemented and what you want the code to do.

To modify the code to work in an inactive window, you will need to specify the window handle of the inactive window and use the Window command to specify that the PixelSearch and Click actions should be performed on the inactive window.

For example, you could use the WinGet command to retrieve the window handle of the inactive window and store it in a variable, and then use the Window command to specify that the PixelSearch and Click actions should be performed on the inactive window:

WinGet, hwnd, ID, ahk_class [class name] Window, %hwnd% CoordMode, Pixel, Window PixelSearch, FoundX, FoundY, 0, 0, 1280, 1024, 0x00FF90, 30, Fast RGB If ErrorLevel = 0 Click, %FoundX%, %FoundY%, 1 Sleep, 500 Click, 137, 96, Left, 1 Sleep, 500

To modify the code to work on an inactive screen, you will need to use a different approach, such as using a screen capture tool to capture an image of the inactive screen and then performing image processing on the captured image to search for the pixel with the specified color. This will require additional programming skills and may be more complex to implement.

I hope this helps! Let me know if you have any questions or need further assistance.
 
𝕄𝕒𝕤𝕥𝕖𝕣 𝕠𝕗 𝕎𝕒𝕥𝕔𝕙
Ultra Üye
Katılım
20 May 2020
Mesajlar
1,954
Tepki puanı
261
Ödüller
9
6 HİZMET YILI
It is possible to modify the code to work in an inactive window or screen, but it will depend on how the inactive window or screen is implemented and what you want the code to do.

To modify the code to work in an inactive window, you will need to specify the window handle of the inactive window and use the Window command to specify that the PixelSearch and Click actions should be performed on the inactive window.

For example, you could use the WinGet command to retrieve the window handle of the inactive window and store it in a variable, and then use the Window command to specify that the PixelSearch and Click actions should be performed on the inactive window:

WinGet, hwnd, ID, ahk_class [class name] Window, %hwnd% CoordMode, Pixel, Window PixelSearch, FoundX, FoundY, 0, 0, 1280, 1024, 0x00FF90, 30, Fast RGB If ErrorLevel = 0 Click, %FoundX%, %FoundY%, 1 Sleep, 500 Click, 137, 96, Left, 1 Sleep, 500

To modify the code to work on an inactive screen, you will need to use a different approach, such as using a screen capture tool to capture an image of the inactive screen and then performing image processing on the captured image to search for the pixel with the specified color. This will require additional programming skills and may be more complex to implement.

I hope this helps! Let me know if you have any questions or need further assistance.
wow u sure know about the code brother thanks
 
Seçkin Üye
Katılım
25 Mar 2018
Mesajlar
332
Tepki puanı
9
Ödüller
6
8 HİZMET YILI
It is possible to modify the code to work in an inactive window or screen, but it will depend on how the inactive window or screen is implemented and what you want the code to do.

To modify the code to work in an inactive window, you will need to specify the window handle of the inactive window and use the Window command to specify that the PixelSearch and Click actions should be performed on the inactive window.

For example, you could use the WinGet command to retrieve the window handle of the inactive window and store it in a variable, and then use the Window command to specify that the PixelSearch and Click actions should be performed on the inactive window:

WinGet, hwnd, ID, ahk_class [class name] Window, %hwnd% CoordMode, Pixel, Window PixelSearch, FoundX, FoundY, 0, 0, 1280, 1024, 0x00FF90, 30, Fast RGB If ErrorLevel = 0 Click, %FoundX%, %FoundY%, 1 Sleep, 500 Click, 137, 96, Left, 1 Sleep, 500

To modify the code to work on an inactive screen, you will need to use a different approach, such as using a screen capture tool to capture an image of the inactive screen and then performing image processing on the captured image to search for the pixel with the specified color. This will require additional programming skills and may be more complex to implement.

I hope this helps! Let me know if you have any questions or need further assistance.
thanks bro holy you sure know your stuff man
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Üst