Questions tagged [simulate]

For issues relating to simulating a system, action, function, or behavior.

Simulation is an attempt to model a real-life or hypothetical situation so that it can be studied to see how the system works. By changing variables in the simulation, predictions may be made about the behaviour of the system. It is a tool to virtually investigate the behaviour of the system under study.

451 questions
-1
votes
1 answer

IoT Simulation: Python function to increment randomly from 0 to 100 over a few days for 50 devices

I developed a python script to send JSON messages to an IoT infrastructure. The message incl. a lot of simulated sensor values that are based on a "master" device. There is one valuepair to measure the filling degree of a container [0 - 100 %]. The…
CoolDive
  • 26
  • 1
-1
votes
1 answer

what is the best practice to simulate test payments using actual API call in JAVA

I am doing a Payment Transaction using Payeezy, here is my Payment Request Body. { "operation": "Sale", "tender": "CC", "accountNumber": "XXXXXXXXXXXX1881", "accountType": "VISA", "amount": "79", "merchantId": "HOM_EZ", "policyNumber":…
solecoder
  • 191
  • 3
  • 12
-1
votes
2 answers

Simulate hover over element jquery function

I would like to create a function in jquery which simulates onMouseOver event of a specific element on the page. And then call it with a html button like this onclick="myFunction()" I've been searching for a solution now for a while and just…
Fippe
  • 41
  • 3
-1
votes
2 answers

How do I simulate/release keyboard keys?

I need a way to simulate keyboard keys if a certain condition is met, I also need to know if it's the simulated key that's currently pressed or the real key. This needs to work outside the main application. This is how I would need it to work: …
User5152
  • 131
  • 9
-1
votes
1 answer

Run a URL through mod_rewrite using PHP

I am looking for a way to "predict" with PHP how an url will be rewritten by my htaccess file. Eg: www.domain.com/category/B/Nice-Article gets rewritten to: www.domain.com/article.php?category=B&slug=Nice-Article This all works well. I need a PHP…
Digits
  • 1,311
  • 2
  • 12
  • 21
-1
votes
4 answers

Make HTML button appear pressed with JavaScript?

How can I make an HTML button looks like pressed via JavaScript? I have a button that is sending a network message while pressed and sending another network message when released. This specific named button may be displayed on more than once in a…
ceremcem
  • 3,900
  • 4
  • 28
  • 66
-1
votes
1 answer

VB (simulate) mouse click (out of form)

I have tried to make a programm that simulates mouse clicks and react on mouse click events in Visual Basic but I can't find what i need. I have written the code what i dont know logicly and marked it pls tell me the command of code what i need.…
-1
votes
2 answers

How to Show Like Typed Key In Input Form After Simulate 'A' Key Press

This is a code for key press 'A' (65): See: http://jsfiddle.net/3xTM2/466 The problem is: Why 'A' doesn't display after clicking submit? var onclick = function(){ var e = $.Event('keypress'); e.which = 65; // Character 'A' …
riko10
  • 41
  • 1
  • 1
  • 4
-1
votes
1 answer

Is it possible to simulate Silverlight UI thread (to reproduce deadlock scenario)?

I have a library with legacy code that causes a deadlock in a Silverlight application. What makes it harder to investigate is that it's only Silverlight app that fails. When used in WPF or Windows Store application, the same code runs fine (this a…
Vagif Abilov
  • 9,835
  • 8
  • 55
  • 100
-2
votes
3 answers

How to click on an image with a hyperlink using Javascript?

The HTML of the page I wish to use for this is as follows:
r3dd3x
  • 23
  • 5
-2
votes
2 answers

Simulate someone's voice

I'm gonna create a game for mobile devices with Unity Engine which is like "Tom Talking Cat" game but with some differences. In face, I'm not gonna just do some effects on user voice. I want to simulate someone's voice. Actually I want to make user…
Mahdi
  • 73
  • 1
  • 7
-2
votes
2 answers

Trigger a mouse click on the element under the cursor

Is it possible to simulate left mouse click on the element that lies beneath the mouse cursor?
Paulius
  • 200
  • 1
  • 10
-3
votes
1 answer

Simulate an election

import random def trial_election(win_chance): if random.random() < win_chance: return 'win' else: return 'lose' region_1 = trial_election(0.87) region_2 = trial_election(0.65) region_3 = trial_election(0.17) tally = 0 for trial in…
Rose
  • 1
  • 1
-4
votes
2 answers

Making Particles Move Randomly Within A Circle

I am attempting to make plotted points move around within a circle of a known radius and center. At the moment I am able to generate points within the boundary, but now I need to make them move. I have the following script to generate the initial…
Vladamir
  • 247
  • 1
  • 3
  • 11
-4
votes
1 answer

Script as an onload script

I got a script for a popunder but the popunder just opens if you click anywhere on the website. They did it like this to avoid that AdBlocks don't block the pounder. So now the question: Could anybody help me to write the script as an onload script.…
thatsnoi
  • 1
  • 1
1 2 3
30
31