Search found 15 matches

by kojon
Sat Nov 23, 2019 1:23 am
Forum: Support
Topic: How can I crop pictures
Replies: 4
Views: 11441

Re: How can I crop pictures

left - indent from the left edge of the picture top - indent from the top edge of the picture width - picture width height - picture height "in percent" - indicates the height and width parameters specified in percent or not. Here is such a call: crop ("1.png", "1_0x10x80x92_t.png", array (0,10,80,9...
by kojon
Sat Nov 23, 2019 12:02 am
Forum: Support
Topic: How can I crop pictures
Replies: 4
Views: 11441

Re: How can I crop pictures

Hi, you can do that using php code: function crop($file_input, $file_output, $crop = 'square',$percent = false) { list($w_i, $h_i, $type) = getimagesize($file_input); if( $type=='jpg') $type='jpeg'; if (!$w_i || !$h_i) { echo 'not possible to get length and width'; return; } $types = array('','gif',...
by kojon
Wed Oct 16, 2019 10:02 am
Forum: Support
Topic: How to run a script from the command line
Replies: 3
Views: 7412

Re: How to run a script from the command line

Human Emulator Studio must be running
And so that the script runs with the program?
by kojon
Wed Oct 16, 2019 6:42 am
Forum: Support
Topic: How to run a script from the command line
Replies: 3
Views: 7412

How to run a script from the command line

How to run a script from the command line?
by kojon
Thu Oct 10, 2019 7:47 pm
Forum: Support
Topic: save and restore cookies
Replies: 2
Views: 7014

save and restore cookies

How to save and restore a cookies correctly?
$browser->get_cookie(); - I understand saves all cookies for the current page?
$browser->set_cookie() how does it work?

Is it possible to save flash cookies and get session cookies?
by kojon
Wed Oct 09, 2019 6:39 am
Forum: Support
Topic: How to disable WebRTC
Replies: 3
Views: 7318

Re: How to disable WebRTC

What does WebSockets mean?
by kojon
Wed Oct 09, 2019 1:21 am
Forum: Support
Topic: How to disable WebRTC
Replies: 3
Views: 7318

How to disable WebRTC

Hi.

I want to disable WebRTC. How can I do it in the Human Emulator Studio?

Thanks.
by kojon
Tue Oct 08, 2019 10:04 am
Forum: Support
Topic: Self-written functions
Replies: 2
Views: 7185

Re: Self-written functions

You need to define a global variable in your function. // check page 404 function check_page_404($str) { global $error_404,$webpage,$path_bad_links,$textfile; if(!strpos($webpage->get_body(),$error_404)) return false; // add link to file with bad links $textfile->add_string_to_file($path_bad_links,t...
by kojon
Mon Oct 07, 2019 1:20 pm
Forum: Support
Topic: Get value from div
Replies: 3
Views: 7545

Re: Get value from div

If div in frame it would work?
by kojon
Wed Oct 02, 2019 3:03 pm
Forum: Support
Topic: Clear all cookies
Replies: 1
Views: 5627

Clear all cookies

Hello.

Can I clear all cookies at once?

I've found it:
$browser->clear_cookie("cookie name");
but not found like such a $browser->clear_all_cookies();

Thanks for your help.