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
4
votes
1 answer

Simulate Stylus Input

I am looking for a way to inject wacom input into a running X server. I kind of get stuck at the beginning finding any resources about this topic. There is a lot of information about how to inject keystrokes and mouse input, but thats not what i am…
Nidhoegger
  • 4,973
  • 4
  • 36
  • 81
4
votes
0 answers

Simulate FORCE TOUCH on any mac

OSX's new force touch seems like a great way to extend the functionality of an input device, however it only works with the new macbooks. Since the OS supports the feature, is there anyway to trick it into thinking that a long press is a force…
4
votes
2 answers

Simulating latency in a HTTP POST call on Linux

Use Case I am working on an enterprise level payment application (written in JAVA). I am looking to simulate latency on a HTTP POST call that is made to a bank. This will allow me to simulate different latency/unavailability scenarios that may…
Master.Aurora
  • 908
  • 2
  • 11
  • 26
4
votes
1 answer

Is it possible to simulate mouse move and mouse clicks at hidden window?

So is there a way to make my Win32 application "think" that the mouse is moving over its window and making some clicks when the actual window is hidden (i mean ShowWindow(hWnd, SW_HIDE);)? I tried to simulate mouse moving with PostMessage and…
Alexander
  • 959
  • 5
  • 11
  • 29
4
votes
5 answers

Simulate low speed connection on local network

Sometimes I want to manually test my web applications (either desktop applications calling web services or websites or RIA) to see how they behave with low speed internet connection (56 kbps for example). Is it possible to do it through network by…
Arseni Mourzenko
  • 50,338
  • 35
  • 112
  • 199
4
votes
0 answers

How can I simulate/emulate a gamepad in xCode?

Background: I have a Bluetooth gamepad which I can discover and connect to through xCode. I can communicate with it through the Control and Interrupt channel and thus I can find out which buttons on the Gamepad are being pressed. I can then map this…
Mark
  • 16,906
  • 20
  • 84
  • 117
4
votes
3 answers

Using SendMessage to simulate mouse clicks

What I need Simulate messages (mouse mainly, but keyboard too) without moving the cursor. The message goes to the focused window (at first, I want for minimized windows, but I didn't find how to do it, so I use SetForegroundWindowto focus it). What…
Doon
  • 3,339
  • 5
  • 25
  • 31
4
votes
3 answers

A Program to simulate keyboard presses

I am new to programming, I want to write a program (just for self-use) that will repeat a preset set of keyboard actions every time it is run, can anyone give me some advice? are there any applications that can do this already?
user1851200
  • 41
  • 1
  • 1
  • 2
3
votes
2 answers

How to simulate TAB key press in Silverlight when user presses ENTER with MVVM?

How would you simulate a key press in MVVM in a Silverlight project? I want to simualte the TAB key press when user presses ENTER, so it moves to the next textbox
Rumplin
  • 2,703
  • 21
  • 45
3
votes
0 answers

vimperator:plugins:firefox:javascript::Get the element at mouse position and simulate a click

Vimperator V2.4 Pre Firefox V3.6.18 Vista Home Basic I would like to get the element at mouse position and simulate a click on it in vimperator plugins. There are some functions that could simulate a mouse click, How to simulate a mouse click…
William
  • 31
  • 3
3
votes
2 answers

How to simulate PC's Esc key on android

I'm writing an app that can play flash on android, but I can't simulate ESC key, since a lot of flash games need ESC key to return to the main menu, without this key the app I made will be useless. So who could tell me how to simulate this? Can I…
Harry0310
  • 31
  • 1
  • 1
  • 2
3
votes
2 answers

javascript simulate mouse click on specific position

I need to now how to fire a mouse click event on a button automatically. I have this but doesn't work :( window.setInterval(function() { simulateClick(); }, 2000); function simulateClick() { var evt = document.createEvent("MouseEvents"); …
Oscar
  • 31
  • 1
  • 1
  • 2
3
votes
3 answers

simulate mouse cursor move in c# between two coordinates

I am trying to move mouse programatically between two coordinates. But I want to maintain the speed reliably on all fast or slow processing machines. I saw this link here. But it doesn't gurantee me the optimum, smooth, and visible speed of the…
Deku
  • 129
  • 4
  • 11
3
votes
4 answers

How to get the handle of 3rd party application's button using c#?

I am trying to generate an click event in a third party application. As a start I tried to simulate a click in calculator. Here's the code" IntPtr hwnd = IntPtr.Zero; IntPtr hwndChild = IntPtr.Zero; //Get a handle for the Calculator Application main…
Nikil
  • 369
  • 2
  • 5
  • 17
3
votes
3 answers

What C++ header can I use for these specific functions ? Linux

I am linux user and would like to use these 'keyboard_event' functions, but the header for these functions is 'windows.h' and linux doesn't have any 'windows.h', so can anyone support some alternative header for these functions, or alternative way…
Cybber
  • 61
  • 3