Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > The IT Pro > Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Programming A discussion forum for programs and programming used in tech-related businesses.

Reply
 
LinkBack Thread Tools
Old 12-09-2006, 08:52 PM   #1 (permalink)
Registered User
 
Join Date: Aug 2006
Posts: 320
OS: XP Pro, Vista Business, Suse Linux, Win98 SE


ICE hotkey's

Ok,

I heard of this program which lets you assign multiple functions to one key using the proper syntax. The reason I ask this question is because at my college, when we schedule classes, we have to type in CRN numbers (class numbers) as fast as we can at a certain time and we have to do it FAST because it's first come first serve...Anyway, I had a Macro that did this for me, though this one kid made somthing that would type in all the numbers by the touch of a key, he used ICE hotkey or something like that. When we type are CRN numbers its 4-5 digits, tab over type another and etc... (just so you know what I mean). So does anyone know how to do this? I'm total noob so slow is good :o). I think that this would help me out a whole lot in the future. Thanks again guys, and I hope to hear from you soon.
tech-it-^ is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 12-10-2006, 09:08 PM   #2 (permalink)
Registered User
 
Join Date: Nov 2006
Location: Sydney, Australia
Posts: 207
OS: WinXP-Home


Send a message via MSN to MattBro
So, theoretically. You need something that will input your CRN number and TAB for some finite number of iterations?
MattBro is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 12-11-2006, 05:01 AM   #3 (permalink)
Registered User
 
Join Date: Aug 2006
Posts: 320
OS: XP Pro, Vista Business, Suse Linux, Win98 SE


Exactly! That is a lot better explanation.
tech-it-^ is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 12-11-2006, 05:11 PM   #4 (permalink)
Registered User
 
Join Date: Nov 2006
Location: Sydney, Australia
Posts: 207
OS: WinXP-Home


Send a message via MSN to MattBro
Is there a specific window that will retrieve this input?
MattBro is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 12-11-2006, 09:24 PM   #5 (permalink)
Registered User
 
Join Date: Aug 2006
Posts: 320
OS: XP Pro, Vista Business, Suse Linux, Win98 SE


Well, all he did is he just pushed one key and all of his numbers entered in. It was into Internet explorer. it did ***** tab ***** tab ***** tab ***** etc... Is there anyway to do this? Thanks for your help.
tech-it-^ is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 12-11-2006, 09:45 PM   #6 (permalink)
Registered User
 
Join Date: Nov 2006
Location: Sydney, Australia
Posts: 207
OS: WinXP-Home


Send a message via MSN to MattBro
There are quite a few ways of doing this. The most efficent, and the most low-level means would be to send window messages to the IE window. Therefor, emulating someone typing. This will be far more efficent than macros.

To do this, you would need to know a relatively low-level programming language such as C, pascal or even assembly.

If you would prefer me just to write it for you, that would be perfectly fine.
MattBro is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 12-12-2006, 09:43 AM   #7 (permalink)
Registered User
 
Join Date: Aug 2006
Posts: 320
OS: XP Pro, Vista Business, Suse Linux, Win98 SE


Well normally I would say yes, but you see I'm a freshman and I am going into Computer Engineering and Computer Science. I would love to learn if possible. So if you maybe had some words of advice or some hints. It would help me out just starting. Thanks man, I appreciate it.
tech-it-^ is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 12-14-2006, 08:58 AM   #8 (permalink)
Registered User
 
Join Date: Aug 2006
Posts: 320
OS: XP Pro, Vista Business, Suse Linux, Win98 SE


*bump*
tech-it-^ is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 12-16-2006, 02:32 PM   #9 (permalink)
Registered User
 
Join Date: Aug 2006
Posts: 320
OS: XP Pro, Vista Business, Suse Linux, Win98 SE


bump*
tech-it-^ is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 12-16-2006, 11:30 PM   #10 (permalink)
Manager
 
shuuhen's Avatar
 
Join Date: Sep 2004
Location: Colorado
Posts: 988
OS: Mac OS 9.1, Mac OS X 10.5.8, WinXP Pro, FreeBSD 6.0, Gentoo Linux

My System

If you already know C, you might consider learning a little C#. It hides a lot of details like memory allocation from the programmer, which makes many tasks easier.

Python may be another viable candidate for the task. If you don't know the language already, it is supposed to be quick to learn (planning on learning it myself soon, but need to find more free time). A little googling showed that some people use it to control Internet Explorer.

Try looking through the documentation for the .NET framework (I think you can find it online at Microsoft's site, or you can browse it through SharpDevelop) for anything related to Internet Explorer and/or browsers (the ASP.NET probably won't be of any use though).

Either language should be sufficient for a relatively small program and fairly easy to use.
shuuhen is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 12-19-2006, 10:19 PM   #11 (permalink)
Registered User
 
Join Date: Nov 2006
Location: Sydney, Australia
Posts: 207
OS: WinXP-Home


Send a message via MSN to MattBro
Quote:
Well normally I would say yes, but you see I'm a freshman and I am going into Computer Engineering and Computer Science. I would love to learn if possible. So if you maybe had some words of advice or some hints. It would help me out just starting. Thanks man, I appreciate it.
Well, the two function calls you'll need are;
SendMessage(...);
and
FindWindow(...);

Use FindWindow() to retrieve a handle to the IE window, which has the form you want to fill out.
And use SendMessage() to simulate keystrokes to that window.

For example:

Code:
HWND hIE = FindWindow(NULL, "Internet Explorer");

SendMessage(hIE, WM_KEYDOWN, 0x56, NULL);
Sorry for the late reply.
MattBro is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 12-21-2006, 02:21 PM   #12 (permalink)
Registered User
 
Join Date: Aug 2006
Posts: 320
OS: XP Pro, Vista Business, Suse Linux, Win98 SE


thank you! No worries on the late response, though what are you using to do this? Thank you!
tech-it-^ is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 12-21-2006, 03:36 PM   #13 (permalink)
Registered User
 
Join Date: Nov 2006
Location: Sydney, Australia
Posts: 207
OS: WinXP-Home


Send a message via MSN to MattBro
C/c++.
MattBro is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 12-26-2006, 12:18 PM   #14 (permalink)
Registered User
 
Join Date: Aug 2006
Posts: 320
OS: XP Pro, Vista Business, Suse Linux, Win98 SE


sorry for my late response, I'm trying to learn the basics. Right now I'm trying to learn Python. Is there any other type of command you can issue me for this programming language? Thanks man.
tech-it-^ is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 12-27-2006, 07:15 PM   #15 (permalink)
Registered User
 
Join Date: Nov 2006
Location: Sydney, Australia
Posts: 207
OS: WinXP-Home


Send a message via MSN to MattBro
Well, any language can access the function's I suggested. They are part of the Windows API, and therefor are part of the kernel itself.

Specifically, you'll need to link to: kernel32.dll, ntdll.dll and user32.dll

As these libraries contain the function's you are looking for.
MattBro is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 12-27-2006, 07:25 PM   #16 (permalink)
Registered User
 
Join Date: Nov 2006
Location: Sydney, Australia
Posts: 207
OS: WinXP-Home


Send a message via MSN to MattBro
Actually, after browsing Pythons documentation it may not be possible. Python is not actually a programming language, it's an interpreted language.

I suggest you try C/C++. For an example:

Code:
#include <windows.h>

void main()
{
     hwndIE = FindWindow(NULL, "The IE Window's Name Which Contains The Form You Want To Fill Out");

     if(hwndIE)
     {
           // Input your CRN (Presuming it's "1234")
           SendMessage(hwndIE, WM_KEYDOWN, 0x31, 0x1L); // The '1' key.
           SendMessage(hwndIE, WM_KEYDOWN, 0x32, 0x1L); // The '2' key.
           SendMessage(hwndIE, WM_KEYDOWN, 0x33, 0x1L); // The '3' key.
           SendMessage(hwndIE, WM_KEYDOWN, 0x34, 0x1L); // The '4' key.
           SendMessage(hwndIE, WM_KEYDOWN, 0x09, 0x1L); // The TAB key.

           // Close the window handle.
           CloseHandle(hwndIE);
      }
}
MattBro is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 12-28-2006, 12:57 AM   #17 (permalink)
Registered User
 
Join Date: Aug 2006
Posts: 320
OS: XP Pro, Vista Business, Suse Linux, Win98 SE


wow... ha this may be super basic for you, but for a guy just learning, this is definitely something I have to study up on more. So not possible with python? I heard t hat that was a really good language to learn at first if your just getting started with programming. What about you? I mean, you say C/C++, but is that for a person learning the basics. Thanks for everything man.
tech-it-^ is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 12-28-2006, 05:00 PM   #18 (permalink)
Registered User
 
Join Date: Nov 2006
Location: Sydney, Australia
Posts: 207
OS: WinXP-Home


Send a message via MSN to MattBro
Well, once you know C++ every other language just falls into place. I started by learning Java, which was a bit of a mistake as half-way through learning I dropped it and learnt C++. Then returned to Java a year later and learnt it in a matter of hours.

I would suggest C, and not C++, as it's a procedural language which is a far more easier concept to grasp than those upheld in C++.

Every language pretty much is based on the same concepts as the others, the main difference is just syntax.
MattBro is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 12-29-2006, 08:53 AM   #19 (permalink)
Registered User
 
Join Date: Aug 2006
Posts: 320
OS: XP Pro, Vista Business, Suse Linux, Win98 SE


alright, well thank you very much. That helps me out a lot. Thanks for everything.
tech-it-^ is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 03:54 AM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85