Page 1 of 1

My script doesn't work when minimizing to tray

Posted: Tue Oct 01, 2019 6:32 am
by kojon
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?

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

Posted: Tue Oct 01, 2019 6:59 am
by support
What functions do you use to emulate a click?

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

Posted: Tue Oct 01, 2019 7:57 am
by kojon
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);

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

Posted: Tue Oct 01, 2019 8:31 am
by support
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_.

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

Posted: Tue Oct 01, 2019 4:59 pm
by kojon
Thank you very much!