Y
Y
Yura Storchak2019-07-25 23:20:43
cmd/bat
Yura Storchak, 2019-07-25 23:20:43

How can I tell the program to load in the monitor I need in the .bat batch file, and not in the default monitor?

Hello, please tell me how to specify the program in the batch file .bat to load in the monitor I need, and not in the default monitor?
5d3a0f065fdeb262438253.png
5d3a0f0c96f11299783643.png
5d3a0f1222587506806309.png

Answer the question

In order to leave comments, you need to log in

6 answer(s)
A
Alexey S., 2019-07-25
@Winsik

Create a shortcut to launch the desired program at the desired coordinates and run the shortcut in the batch file viastart disk:\path\имя.lnk

M
Moskus, 2019-07-25
@Moskus

https://ritchielawrence.github.io/cmdow/
use the key /MOV
To find out where to move the window, you first need to arrange the windows in the desired order and run cmdow /Fto print their coordinates. And only then write these coordinates into commands cmdow /MOVfor each open window.

V
Vladimir Skibin, 2017-11-13
@Sovetkali

$('button[id="searchBtn"]').on('click', function () {
  ....
  var lang;
  $.getJSON(
    'core/lang.php', {
      word: $('input[id="searchInput"]').val()
    },
    function (data) {
      var result = JSON.parse(data);
      lang = result['lang'];

      $.get(
        'core/search.php', {
          word: $('input[id="searchInput"]').val(),
          lang: lang
        },
        function (data) {
          result = JSON.parse(data);
          console.log(result);
        },
      );
    }
  );
});

A
Alexander Pushkarev, 2017-11-13
@AXP-dev

Requests are asynchronous. Use Promises

D
Dmitry Eremin, 2017-11-13
@EreminD

It cannot be that the response from the first request has not yet arrived (and has not been processed), and you are already sending a second asynchronous request?

S
Stalker_RED, 2017-11-13
@Stalker_RED

$.getJSONworks asynchronously, and the assignment lang = result['lang']will happen only AFTER the response comes from the server and the JSON has been processed.
The call $.get()will happen much earlier, when the lang variable is still undefined.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question