It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I've got a project, where I need to use hotkeys, that would work globally through the whole Windows OS. Now, from my knowledge I only know how to read Key events on current form. How would I go about programming a hotkey utility? And what would be the best language for it?
Thanks
For C#/.Net and a low-level hook (using Interops), have a look at Stephen Toubs example here (complete with source):
Low-Level Keyboard Hook in C#
For a more complete example (also C#/.Net and Interops), but with everthing neatly contained in a separate class, including trapping key presses using normal Events on the client side, check this out (the link to the actual source is in the blog text, a bit tricky to spot):
Global hotkeys with .NET
are you looking for something like this. even vhen the program is not active it should respond for a key press.
in windows,
#include<windows.h>
if(GetAsyncKeyState(0x41)){
//do somethong here
}
note: refer virtual key stats http://msdn.microsoft.com/en-us/library/ms927178.aspx
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
As the question suggests I would like to know what all the differences in the way unix systems and windows systems see and format paths. I write a lot of code that needs to run on both platforms and problems with paths crop up often. Just out of interest I am also planning on writing my own converter.
I realize this question: Difference between windows and unix paths exists but its been solved and the focus was solving the dudes actual problem.
This wiki link will help you figure out the differences: https://en.wikipedia.org/wiki/PATH_(variable)
In short the Paths on both Unix and Windows are used for locating executables with two notable difference among these two:
Superuser on Unix systems don't add current directory as a rule, this is as mentioned to stop accidental execution of commands from current directory.
On Windows some graphical programs don't show up on command line as they are supposed to be run from a GUI.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
how do i find out the available methods of an object in VBScript? i'm dealing with a CAD program that uses a scripting language based on VBscript but it doesn't have an object browser. i'm trying to script a 3rd party plugin and the developers are being reticent. thanks!!
VBScript is not able to give you an overview of available methods for an object. Also the other way around it is not possible to do a kind of HasMethod on an object. So you need to get your information elsewhere.
My first try would be to find documentation from the internet because with some luck you get also a good description and some examples about what the methods are doing.
Secondary you could try to load the object library as a reference in VBA for an MS Office application (Word, Excel etc.). Then you can peek the methods as soon as you create a variable as that object or use the object browser of VBA.
(Assuming you do not have access to Visual Studio. When you have access to it, it would be even easier to use VS.)
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I want to write a simple applet to put in a tray. Let's say it will be for gnome taskbar or tint2. My applet should show system temperature or any other simple information by probing at a fixed amount of time /proc or maybe providing this info by clicking on the applet itself, I still have not decided.
My knowledge is limited, since I don't know where to start. What I need is some little info, on the difficulty of the matter, provided I'm fairly ok with bash, but that's it.
Where do I start and what should I read first? There should be gui, then is it gtk, qt or something else? Maybe somebody got a good link or just your opinion will be a good start for me.
Assuming you mean GNOME 2, you could start reading the document Gnome applets with Python. You will get the idea behind applets and how to do it with Python. For tin2 the API might be totally different.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
When I'm in QTP and am automating a Gmail session a lot of the pages are dynamic. I need the line of code that will enable me to use keyboard shortcut keys within any of the gmail UI's.
There are several ways to simulate keyboard action from QTP, this article describes some of them. Especially check out DeviceReplay.
From the linked post:
Set obj = CreateObject("Mercury.DeviceReplay")
Window("Notepad").Activate
obj.PressKey 63
Note: The PressKey method uses the appropriate ASCII or IBM Scan Code value for the key. "63" is the IBM Scan Code value for F5.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I was just wanting to go ahead and make an OS. Because working on projects makes one's knowledge quite good enough. I know I will have to study OS inside-out before actually trying to implement one on my own. I also know I wouldn't be able to implement something right from square one. So I searched the internet for something to work upon. The most common option that I found was to work upon existing Linux distro and contribute to it.
But I found some more interesting options. Would like your suggestions on what to choose for and work upon.
LFS: http://www.linuxfromscratch.org/lfs/
PintOS: http://www.scs.stanford.edu/10wi-cs140/pintos/pintos_1.html#SEC1
Cosmos: http://www.gocosmos.org/index.en.aspx
I would get around 6 months time to work upon it. But before I start off with it, I want to do my research work properly and finalize what and how to work.
Drop in your suggestions on what should I use to work on. :)