My script doesn't work when minimizing to tray

Ask questions here, report about problems.
Post Reply
kojon
Posts: 15
Joined: Mon Mar 25, 2019 7:53 pm

My script doesn't work when minimizing to tray

Post by kojon » Tue Oct 01, 2019 6:32 am

Human Emulator Studio 7.0.30
Windows 10

The script mainly using a mouse emulation, while the window is maximized everything works as soon as I minimize to system tray (notification area) doesn't work. Any ideas?

User avatar
support
Site Admin
Posts: 146
Joined: Fri Feb 22, 2019 3:42 pm

Re: My script doesn't work when minimizing to tray

Post by support » Tue Oct 01, 2019 6:59 am

What functions do you use to emulate a click?

kojon
Posts: 15
Joined: Mon Mar 25, 2019 7:53 pm

Re: My script doesn't work when minimizing to tray

Post by kojon » Tue Oct 01, 2019 7:57 am

just like this

Code: Select all

$mouse->move_to($x,$y,"line",1200);
sleep(1);
$mouse->wheel(-5,121,234);
sleep(2);
$mouse->move_to($x+120,$y+100,"curve",2000);

User avatar
support
Site Admin
Posts: 146
Joined: Fri Feb 22, 2019 3:42 pm

Re: My script doesn't work when minimizing to tray

Post by support » Tue Oct 01, 2019 8:31 am

These functions using for mouse full emulation, it meaning they work with a real mouse. Therefore, when you minimize the program window, these functions still work, but only in the active window of any program that is open at that moment. In order for clicks and mouse movement to work in a minimized program, you need to use the functions $mouse->send_move_to and $mouse->send_wheel. And any functions with prefix send_.

kojon
Posts: 15
Joined: Mon Mar 25, 2019 7:53 pm

Re: My script doesn't work when minimizing to tray

Post by kojon » Tue Oct 01, 2019 4:59 pm

Thank you very much!

Post Reply