Sponsored Content
Full Discussion: Simulate keypress in bash
Top Forums UNIX for Beginners Questions & Answers Simulate keypress in bash Post 303019247 by Corona688 on Monday 25th of June 2018 06:52:27 PM
Old 06-25-2018
BASH is poorly suited to this, almost nothing in Windows is designed using the UNIX process model. Your bash script will be a thin wrapper around whatever external utility you find which allows you to generate arbitrary keypresses (and odds are, that utility will be flagged and deleted by your antivirus).

Why not vbscript if you're really on win10?
 

10 More Discussions You Might Find Interesting

1. Programming

keypress signals

How-to use keypress action signals in C? Is there any nice select or poll functions for that? (1 Reply)
Discussion started by: Esaia
1 Replies

2. Shell Programming and Scripting

How to trap a user keypress

Yo, I program Unix for fun- except when editing my website removed by reborg - and wanted to learn how to track, trap, and use to my advantage a user keypress. I know there is a built-in JS function that can do that, but Javascript is a client-side language, therefore not usable in Unix, and... (2 Replies)
Discussion started by: signebedi
2 Replies

3. Shell Programming and Scripting

simulate session.getMaxInactiveInterval() in bash script

hi everyone, I have a question about the java object oriented function which to simulate in bash script... here is the function "session.getMaxInactiveInterval() / 60 " got any web can read this function? coz i need to simulate to bash script... Hope someone give me a suggestion... (0 Replies)
Discussion started by: ryanW
0 Replies

4. Shell Programming and Scripting

Bash KeyPress (or Read Single Character)

Hi, I'm sorry if this has already been posted somewhere but I can't seem to find it on the forums (or anywhere on google :( ) I am writing a script where a user must enter a single character to perform an action. For example, Press Q to Quit or R to Refresh Basically I am stuggling... (5 Replies)
Discussion started by: Ste_Moore01
5 Replies

5. Programming

get keypress c++Qt

Hi i need to get the key pressed from the keyboard without focus on the application. i work under CentOS 5.5 with QtC++ 4.7 and Python Script (0 Replies)
Discussion started by: HanyM.Magdy
0 Replies

6. Programming

Tool to simulate non-sequential disk I/O (simulate db file sequential read) in C POSIX

Writing a Tool to simulate non-sequential disk I/O (simulate db file sequential read) in C POSIX I have over the years come across the same issue a couple of times, and it normally is that the read speed on SAN is absolutely atrocious when doing non-sequential I/O to the disks. Problem being of... (7 Replies)
Discussion started by: vrghost
7 Replies

7. Shell Programming and Scripting

How to simulate an execution queue with bash?

I'm running cygwin bash on windows 7 and I'm have some bat files that perform large builds and take a long time and a lot of memory. Therefor, I don't want to builds executing simultaneously (too much memory). How can I implement a queue so I can queue up multiple builds and only execute one... (2 Replies)
Discussion started by: siegfried
2 Replies

8. Shell Programming and Scripting

How to simulate ''Esc'' keystroke in a bash shel script?

I am using Ubuntu 12.4 I am running the following script: ++++++++ #!/bin/bash while ; do xdotool mousemove 248 539 click 1 & sleep 3 done +++++++++ This moves the mouse on the specified position on the screen and clicks that pauses the script for 3 seconds and repeats the... (2 Replies)
Discussion started by: alfarnume
2 Replies

9. Programming

Simulate keypress inside a non-x application...

Hey guys, I'm looking for a solution to simulate a key-combo (tab+q) inside an amiga-emulator. I've tried it with uinput and python without any success. Any help would be great. Cheers McCarthy (5 Replies)
Discussion started by: mccarthy83
5 Replies

10. Shell Programming and Scripting

Bash loop hording keypress input

I have a bash loop that waits for a single key press, then does $something depending on what $key is pressed before refreshing the screen with updated data. The problem I have is that the script will store additional key presses and chain them together causing the screen to redraw and the script... (1 Reply)
Discussion started by: DarkPhoenix
1 Replies
NDISGEN(8)						    BSD System Manager's Manual 						NDISGEN(8)

NAME
ndisgen -- generate a FreeBSD driver module from a Windows(R) NDIS driver distribution SYNOPSIS
ndisgen [/path/to/INF /path/to/SYS] DESCRIPTION
The ndisgen script uses the ndiscvt(8) utility and other tools to generate a FreeBSD loadable driver module and a static ELF object module from a Windows(R) NDIS driver, for use with the ndis(4) compatibility module. The ndisgen script is interactive and contains its own help section. Unless the paths to both files are supplied on the command line, the script will prompt the user for the .INF and .SYS files needed to generate the FreeBSD driver module. The script will also prompt for any firmware or other external files needed. SEE ALSO
ld(1), objcopy(1), ndis(4), kldload(8), ndiscvt(8) HISTORY
The ndisgen utility first appeared in FreeBSD 6.0. AUTHORS
The ndisgen utility was written by Bill Paul <wpaul@windriver.com>. BSD
April 24, 2005 BSD
All times are GMT -4. The time now is 05:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy