Most voted "script" questions
Scripts are "scripts" followed by computer systems and bring information that is processed and transformed into actions performed by a main program. Sounds complicated, but it’s not.
Learn more…372 questions
Sort by count of
-
0
votes2
answers101
viewsSelect with checkbox
Guys, my question is, would I make a query in mysql bank and play instead of cities ? <html> <head> <title></title> <link…
-
0
votes1
answer190
viewsAdd expect variable
I would like to create a shell script connecting on the controller SPECK to insert the macAddres of customers, using expect, I really need to create a script to automate the process. Variables…
-
0
votes1
answer149
viewsJquery Chosen not returning value
How to make the Chosen display value of the search. It is not showing the options within select. HTML <select id="habilidades" name="habilidades[]" multiple class="input col-lg-10 chosen-select…
-
0
votes1
answer32
viewsRun script only when the screen is off
Talk guys, I’m trying to automate mobile routines with an app I made and to make it more effective I’m trying to implement a script for it to run whenever the mobile screen is off. For example: if…
-
0
votes0
answers31
viewsProblem in generating the plots in dynamic inputs
I’m trying to recreate the code below based on one that I analyzed, but it’s not working. I think there is an error in the structure! I need a help. <script> function start() { var select_prog…
-
0
votes1
answer524
viewsHow to put space before the SET/P variable in Batch?
I intend to set the variable in the middle of the screen, but I can’t place it! |____não_funciona____|set /p variável=um |____funciona____|%variável% Thanks in advance!…
-
0
votes0
answers31
viewsHow to allow <script> tag in Slick.js
Hi, I’m using the Slick.js carousel, and I was wondering if anyone knows how to allow the tag to appear on the carousel content. Demo of Slick.js Example of how I want to use: Standard Slick code:…
-
0
votes0
answers28
viewsI can’t use onkeydown accurately
I have the following fields: When I inform the discount in %, it must automatically calculate the Discount in R$, and the result in the total liquid, and when I inform in the Discount R$, it gives…
-
0
votes0
answers54
viewsInclude one more condition to run Script
$outracondicao = 'S'; $script = new TElement('script'); $script->type = 'text/javascript'; $script->add("$(document).ready(function(){ window.setTimeout(function(){ var results = new…
-
0
votes0
answers39
viewsSend form to two locations and redirect
I need the script to send my form to two places and after sending to the reply page. <script type="text/javascript"> function EnviaForm2() { document.getElementById('formnewsletter').action =…
-
0
votes1
answer304
viewsDoubt - SQL Server Dates
In the script below when one task is completed the other will open on the first working day of the following month. Example: Task 10 was completed on the day 18-11-2016, then another will be…
-
0
votes1
answer1024
viewsScript for postgres bank
I created this script to clear the bank table and reset id's. It works, but not in the right way It runs and authenticates on psql. but instead of running the commands sql it only opens the psql. If…
-
0
votes2
answers1790
viewsButton to open/close content
Hello guys I’m new here and also with programming... well I have several div with different contents and are with hidden, I would like that when you click a button continue reading it closes and…
-
0
votes1
answer47
viewsHow to change the CSS in this case?
Good morning everyone! Being very objective. I want to change the CSS of two different pages at the same time, with an on/off button on one of them, and make this change in all of them, but I have…
-
0
votes1
answer40
viewsUpdate the first input when inserting
I have this form: <form name="form1" class="teste" class="form-validate" id="feedback_form1"> <div class="campo"> <fieldset> <h1> <legend> <center>…
-
0
votes2
answers5048
viewsRun . BAT in the background on Windows startup
How can I run this BAT script in the background or invisible or without window? I added .bat in Startup, it shows the terminal running, but I don’t want to show any window, I’ve used conversion tool…
-
0
votes1
answer63
viewsHow to import files using REGEX?
Good afternoon Everybody, all right? I have a question in regex in python. I want to create a script to open files without informing its format may be pdf, txt, jpg, png, among others... However, I…
-
0
votes0
answers90
viewsJavascript does not load when linking it in the script tag
I created a js class to decrease the lines and not have many scripts, so I created the 'main.js', to put all js, which would then be linked from the src script. only that when I Linko, nothing…
-
0
votes1
answer26
viewsArray size in a JSON in Shell Script
I would like to take the size of a vector in a JSON in the scriipt shell but I’m only able to get the size of each vector string, that is, for the example : #!/bin/bash j='{"Nomes": { "nome":…
-
0
votes1
answer64
viewsHow to use JSON
I have a link to an API (https://api.tibiadata.com/v2/characters/Norkx.json) I was wondering if there’s any way I could get "name":"Norkx", "Sex": "Fri", "Vocation": "Royal Paladin", "level":407,…
-
0
votes0
answers61
viewsCreating a Method to make the character go up to Coord Mouse Course
Good morning guys, I’m wanting to create a method to make the character walk up to the mouse coordinates, this method will be done on the server, so I made him receive the mouse coordinates, only…
-
0
votes0
answers42
viewsHow to insert MOD 1000000007 into Python code
I understand that MOD 10 9 +7 is used when decimal values are extremely large. And to simplify is applied the: %10 9+7. However, I would like to understand the range of values in which MOD 10 9+7 is…
-
0
votes2
answers131
viewsLoad with Ant and EAP task 7x "Caused by: java.lang.Noclassdeffounderror: javax/xml/Ws/Soap/Soapfaultexception"
I compile a script using the ant task, the load and the application platform JBOSS EAP 7, below follows my source code: <taskdef resource="cargo.tasks"> <classpath> <fileset…
-
0
votes2
answers249
viewsWhy does the window.open script not work with the "no" command?
I noticed that it works to replace the "no" command with "yes" in the window.openscript. However, it seems that "no" and "0" are not interpreted at all. I have tried to put "Hidden" and nothing…
-
0
votes0
answers31
viewsProblems with animation
There is an animation in the game that of the attacking character with the sword, ah sword and an image behind the character, the code draws like this. but my real problem is with Index, when the…
-
0
votes1
answer55
viewsShell Script for Postgresql Download
I am writing a code in Shell Script to download the source code of the last updated version of Postgresql checking the current version automatically. So based on that I did the following: created…
-
0
votes0
answers18
viewsMonitor newly loaded tags
my scenario is the following, I have a menu (class="menu") where any link that is clicked on it opens in a div ( div id="content") the problem is that the links that open inside the content div even…
-
0
votes1
answer43
viewsHow do I make a script not work in the Opera browser?
I want my script to work in all browsers, except for in Opera. What do I have to add to my code to block its operation in Opera? The script I use is: <script> function openWindow() {…
-
0
votes1
answer189
viewsGlobal Variable with Typescript
So... I’m making a code in Typescript in which I need to use a variable from another script, I’ll make it clear below: <script type="text/javascript"> var global = "Variável…
-
0
votes1
answer381
viewsZabbix and Telegram, sending alerts via script
Hello, I have configured a script to send alerts to Telegram group/user, but I do not receive alerts. When I test the script is sent normally. I configured the script in Zabbix, stating the…
-
0
votes1
answer461
viewsSays it saves to mysql but not saved to the database
Form: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head>…
-
0
votes1
answer521
viewsError using Javascript window.history.back()
Hello, I’m having trouble using the method window.history.back() in Javascript, the same has the functionality to return to the previous page of my application, the problem is that I have a POST…
-
0
votes1
answer76
viewsReferencing scripts on different PHP pages
I have the following structure: |- /root |-- /services |--- /criminal records |-- /view |--- Dashboard.php |--- php menu. |--- /registers |---- /people |----- Include_people.php |-- /scripts |-- js…
-
0
votes1
answer87
viewsProblem with Python script
Guys, I have a slight problem with a script I created in Python. print("Agora eu vou dizer algo para você.") idade = int(input("Me diga sua idade.")) if idade < 18 print("Me desculpe, você não…
-
0
votes1
answer45
viewsGNU Parallel - Using File with Variable Data within a Script
I would like some help with GNU Parallel. Is it possible to read variables from a file and pass these variables into a bash script via Parallel? For example: I have a file called dados.txt…
-
0
votes2
answers42
viewsRename new files without interfering with old ones
I need to rename some files .srt, but if I do it in the current way it will impact the old files. I have several subtitle files that I’ve already edited for pt-BR.srt, but with the addition of new…
-
0
votes1
answer40
viewsHow not to kill a subprocess opened by another python file?
I would like from a script in python to run a program I developed in python as well. However I would like to terminate my script but not the program I opened by it. I’m opening my program for a…
-
0
votes1
answer31
viewsCompares selected input file size with PHP disk_free_space
I need a javascript script to compare the selected file sizes on input with the disk_free_space (in my case disk_free_space('D:')") of PHP, but it has to be before sending to the page that uploads,…
-
0
votes1
answer209
viewsCopy by Javascript and HTML Tag
I have four HTML files and within them have several tables <table>. I am trying to put at the end of each of these files a code to copy only the tables, so that later I can paste in excel and…
-
0
votes1
answer75
viewsCookie problem
I would like my script to verify the existence of the informed Cookie and if it did not exist enter,. My code is this: $protocol = (strpos(strtolower($_SERVER['SERVER_PROTOCOL']),'https') === true)…
-
0
votes1
answer112
viewsHow to take the variable ID of a form in ajax
I need to know how to submit the form id, which varies according to the post ID, which would be something like myForm'. $id. ' to be able to treat each form itself. The form is sent through the…
-
0
votes2
answers331
viewsScript vbs to restart a service if it is "stoppered"
I created a vbs script to restart the service if it is stopped. However it does not work, I tried to do a by . bat more without including in the schedules tasks. Set objWMIService =…
-
0
votes2
answers258
viewsHow to validate if a login is valid inside . bat
Dear I have the following script that allows only digits up to 07 characters, the same being letters only. Is it possible for some validation to accept certain logins ? For example I just want to…
-
0
votes1
answer1734
viewsHow to insert <script> in angular? Simple HTML works!
Guys, my . html Component is like this: <script> window.onload = function () { var chart = new CanvasJS.Chart("chartContainer", { animationEnabled: true, title:{ text: "Monthly Expenses,…
-
0
votes0
answers55
viewsAjax request with PHP does not recognize scripts
I am creating a code, where I send a form with ajax and return the result obtained in a PHP(comment.php) file, but this file ignores the linked scripts on the page where the form is contained…
-
0
votes0
answers252
viewsWrite to a Shell Script file
I have a problem writing a line in a file using Shell Script. I’ve tried using sed and echo, but in both I don’t have the expected behavior. Using the sed: sed -i -e 'export…
-
0
votes1
answer52
viewsHow to use Olliders in Unity?
I’m creating a little basketball game, but I’m having trouble making the points system in this case (2 and 3). Right now I’m trying with Colliders and I’m having a hard time putting the two…
-
0
votes1
answer66
viewsHow to create a function that creates a new page in google Sheets
How do I do a function that I can perform in the spreadsheet that generates a page with the given name? Because in the example below I am getting the error: Exception: You do not have permission to…
-
0
votes1
answer29
viewsError in R script syntax
all right? I reckon so Please, I can’t move forward by writing this command: flt <- filter(grade.ac,st_contains(ac,grade.ac,sparse = (FALSE)) The R informs: "Unmatched Opening Bracket "(" ...…
-
0
votes0
answers99
viewsUpdate comments without loading page
For each post, I have a feedback form. What I need to do is pass the form ID to the script, in order to handle the comment in the respective POST. But to pass the value to the div process, I would…