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
3
votes
4 answers

simulating onclick event with javascript

What i am trying to do is to put an imagebutton in div which is wider than the button itself and when the outside div is clicked, i want the image button onclick() function to be called. What i expect from below html code is, when i click the button…
3
votes
2 answers

Why does the SendMessage() function not work?

I try to send a WM_LBUTTONDOWN and WM_LBUTTONUP messages to a window( simulating mouse clicks without moving the cursor ). My program is working very good on many windows, but there are a few that don't work :( Like Registry Editor, Yahoo…
Kevin Beznev
  • 31
  • 1
  • 3
3
votes
5 answers

Is there a better way to simulate pointers in JavaScript?

I'm using dynamic scoping to simulate pointers in JavaScript as follows: var ptr = (function () { var ptr = "(" + String(function (value) { if (value === void 0) return upvalue; else upvalue = value; }) + ")"; return function…
Aadit M Shah
  • 72,912
  • 30
  • 168
  • 299
2
votes
1 answer

How to simulate data from a logit model

I have a logistic regression, and I would like to generate simulated data from the logit curve. My code is below: #Begin Code require(gld) runs<-100 num.trees<-500 p<-0.5 trial.1<-rgl(num.trees,1859.75592, 0.02179,…
jtgarcia
  • 21
  • 1
  • 3
2
votes
2 answers

Simulating input in Windows logon screen, using a driver

I'm writing an open-source remote desktop tool, similar to VNC and TeamViewer. I've noticed that TeamViewer continues capturing the screen at the Switch Users or Workstation Locked screen - and allows the remote user to type in the password and…
Jason
  • 6,878
  • 5
  • 41
  • 55
2
votes
2 answers

how to simulate a cloud environment using java

I would like to simulate a cloud computing environment for testing purpose. I would prefer to develop this environment using java. I am not sure where to start and how to start as I have never done simulation earlier on. I am aware of cloudsim but I…
bhavs
  • 2,091
  • 8
  • 36
  • 66
2
votes
1 answer

How to simulate multi-thread environment to do unit testing?

I am unit testing for an IPhone project based on XCode 4, Ocunit framework. I want to simulate a multi-thread environment for some cases? How can I implement this?
jianhua
  • 1,011
  • 1
  • 12
  • 28
2
votes
1 answer

Client Access AS400 Java wrapper

Is there free/non-free Client Access Java bases wrapper that can simulating End-User typing into Client Access Session login with popup Dialog/Window for UserName & PassWord moving to the column & row from the input file typing chars to the…
mKorbel
  • 109,525
  • 20
  • 134
  • 319
2
votes
1 answer

Haskell gloss library, how to run appendFile on model signiture for log to file?

this is the bouncing ball code. I'm trying to make 'appendFile' run on the update function, so when the ball bounces off the wall, then 'appendFile' will write the px and px values to the file "log.txt" import Graphics.Gloss import…
Newt
  • 23
  • 2
2
votes
2 answers

Print object information as toString() without toString()?

my Question is, is it possible to print out specific information from a class that provides no toString() method in JAVA? There's the rub: We provide a logger for our application (using aspectJ) which prints out the specific arguments, that were…
Thunderhook
  • 23
  • 1
  • 3
2
votes
1 answer

Unknown caller android

I am developing applicaton that listens for different user calls. One of possibilites is that unknown caller will call me (without number/ restricted number). I would like to study this case, how I can simulate such call in DDMS enviroment?
Jakub Szczygieł
  • 1,203
  • 1
  • 13
  • 26
2
votes
1 answer

How to simulate a hardware mouse click in game if it is not recognized?

I'd like to click in a game's button. I've tried with several ways, SendInput, and MouseEvent are some of them. Nevertheless I always got the same result, it doesn't work. This is the original button. And this is the button once I click on it with…
Sharki
  • 404
  • 4
  • 23
2
votes
1 answer

why I get "current step too small" error in MatCont?

I'm trying to do a bifurcation analysis of a second order dynamical system using MatCont package of MATLAB. I'm fairly new to MatCont and ODE solvers in general. The system is the following (as written in MatCont): x1' = R*x1/L + x2/L x2' = a+x2/D -…
AlePalu
  • 73
  • 1
  • 8
2
votes
3 answers

Simulate keyboard keypress with Jquery

Is it possible to simulate a keypress when I click a div? Something like: $("mydiv").click(function(){ Presskey->F5 }); Actually the key I'm trying to simulate is F11, so people could press the div and the window would fullscreen. I've searched…
alvaro
  • 25
  • 2
  • 5
2
votes
0 answers

Problem discovering control handles \ spy++

I use SPY++ to find out control handles, usually it works, it seems that on some application it doesn't work. For example, on the calc.exe in WIN7 i can find out each digit control handle (and simulate a press on it), in WIN10 calc, i cannot find…
vila
  • 21
  • 1