LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-21-2006, 08:11 PM   #1
stny
LQ Newbie
 
Registered: Jan 2006
Location: Hong Kong
Distribution: Fedora 4
Posts: 22

Rep: Reputation: 15
How to Simlate keyborad input in C/GTK+


I want to create a application on Fedora Core 4 and using GTK+ to make GUI. but i don't know how to simlate the keyboard.

when the button clicked, the application will simulate the keyboard to send the key to system.

Did gdk have any function to done it ?

Thanks
 
Old 06-23-2006, 07:01 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Quote:
when the button clicked, the application will simulate the keyboard to send the key to system.
Not sure what you mean by "send the key to system" here. Are you saying you are trying to code a GUI keyboard?
 
Old 06-23-2006, 07:04 PM   #3
slzckboy
Member
 
Registered: May 2005
Location: uk - Reading
Distribution: slackware 14.2 kernel 4.19.43
Posts: 462

Rep: Reputation: 30
or just snoop key presses ???
 
Old 06-26-2006, 01:03 AM   #4
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
This is sounds like what you need:
http://distro.ibiblio.org/pub/linux/...8.5-i486-1.tgz
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Simlate keyborad input in C/GTK+ stny Linux - Software 2 06-21-2006 08:13 PM
GTK & keyboard input joakim12 Programming 1 07-17-2005 07:13 AM
GTK input and timeout joakim12 Programming 1 07-15-2005 03:44 PM
gtk-gnutella Input Not Working spaaarky21 Linux - Software 3 06-27-2004 07:54 PM
mouse and keyborad used to work, but now dont cleff Linux - Software 1 06-01-2004 01:45 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration