Windows API + Hotkey

R

Rob

Hey, this is my 2nd post here and so far I am extreemly pleased about
the friendly responces that I had and im hoping that I can put a little
bit back in. This is my dilema - if thats how you spell it :) I need to
create a global hotkey E.G Winkey + Z that when pressed will hide all
internet explorer windows. I know this is possible because I have seen
this done in VB6 but I know little to nothing about using windows API
and such. The VB6 did the basics of:

Save all the locations of internet explorer
Minimizing all Internet Explorer windows (Presumibly iexplore.exe)
Hide the windows from the start menu

Then when you pressed Winket + Shift + Z all the windows came back
again the their correct locations and sizes.

Is there any way to do this in VB.net?

Thanks a lot, Rob

P.S The original source file that I reffer to a lot is at:
http://planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=10141&lngWId=1
 
R

rowe_newsgroups

Which part are you having trouble with, the key hooking or finding all
the internet explorer windows?

Thanks,

Seth Rowe
 
R

Rob

rowe_newsgroups said:
Which part are you having trouble with, the key hooking or finding all
the internet explorer windows?

Thanks,

Seth Rowe

Umm everytinhg really all I want to do is upgrade this code to vb.net
but I dont have a clue :(

If you could help I would apreciate it so much

thanks, rob

PS: Bit of a noob to vb sorry
 
R

rowe_newsgroups

Unfortunately, I don't have classic vb installed on my home pc, so I'll
have to print off the source code when I go back to work Monday. I'll
let you know if I figure anything out.

Thanks,

Seth Rowe
 
R

rowe_newsgroups

Well, I took a look at the source code and it is basically a bunch of
calls to the Windows API's. The good news is that API calling is still
allowed in .Net so you basically can use the exact same code as in the
VB6 version. Have you tried just copying and pasting the code into the
vb 2005 IDE? I have found that the easiest way to convert VB6 code -
you could try running the included upgrade wizard but I never had much
luck with it. I would guess you'll need to change a few
deprecated/replaced keywords but it shouldn't be too tough.

Also, here's some websites that will help you figure out what the API
calls do:

www.pinvoke.net
http://msdn.microsoft.com/library/d...us/winprog/winprog/windows_api_start_page.asp

By the way, what does your app actually do? Perhaps there is a better
way than dipping into the API....

Thanks,

Seth Rowe
 
R

Rob

Well my application is a application that I am developing to help
combat the constant privacy problem in the office, it shreds file etc
and I am trying to make this code so that it hides all the IE windows
when it is activated, I have tried the convert wizard and and going to
take a look at that website you provided me with.

Thanks, Rob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top