Answer the question
In order to leave comments, you need to log in
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?
Answer the question
In order to leave comments, you need to log in
Create a shortcut to launch the desired program at the desired coordinates and run the shortcut in the batch file viastart disk:\path\имя.lnk
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 /F
to print their coordinates. And only then write these coordinates into commands cmdow /MOV
for each open window.
$('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);
},
);
}
);
});
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?
$.getJSON
works 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 questionAsk a Question
731 491 924 answers to any question