473,320 Members | 2,088 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Windows API + Hotkey

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/scr...10141&lngWId=1

Jan 16 '07 #1
7 1569
Rob
Reply Anyone?

Jan 19 '07 #2
Which part are you having trouble with, the key hooking or finding all
the internet explorer windows?

Thanks,

Seth Rowe
Rob wrote:
Reply Anyone?
Jan 19 '07 #3
Rob

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

Thanks,

Seth Rowe
Rob wrote:
Reply Anyone?
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

Jan 20 '07 #4
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
Rob wrote:
rowe_newsgroups wrote:
Which part are you having trouble with, the key hooking or finding all
the internet explorer windows?

Thanks,

Seth Rowe
Rob wrote:
Reply Anyone?

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
Jan 21 '07 #5
Rob
Thanks a lot it would mean a lot to me if you could help
rowe_newsgroups wrote:
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
Rob wrote:
rowe_newsgroups wrote:
Which part are you having trouble with, the key hooking or finding all
the internet explorer windows?
>
Thanks,
>
Seth Rowe
>
>
Rob wrote:
Reply Anyone?
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
Jan 21 '07 #6
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/de...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
Rob wrote:
Thanks a lot it would mean a lot to me if you could help
rowe_newsgroups wrote:
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
Rob wrote:
rowe_newsgroups wrote:
>
Which part are you having trouble with, the key hooking or finding all
the internet explorer windows?

Thanks,

Seth Rowe


Rob wrote:
Reply Anyone?
>
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
Jan 22 '07 #7
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

rowe_newsgroups wrote:
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/de...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
Rob wrote:
Thanks a lot it would mean a lot to me if you could help
rowe_newsgroups wrote:
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
>
>
Rob wrote:
rowe_newsgroups wrote:

Which part are you having trouble with, the key hooking or finding all
the internet explorer windows?
>
Thanks,
>
Seth Rowe
>
>
Rob wrote:
Reply Anyone?

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
Jan 22 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: jcrouse | last post by:
I have an application thats a viewer. I also have a form that is fired from a Tools/Options menu selection. In the Options form the user can select a hotkey to use to exit the main viewer...
1
by: Rune Jacobsen | last post by:
Hi all, I have some often-performed tasks in my applications that I want users to be able to specify hotkeys for. However, I don't want to hard code these hotkeys, as sooner or later some other...
3
by: =?Utf-8?B?QmlsbHkgWmhhbmc=?= | last post by:
I want to have following hotkey used in asp.net application, how to do this especially for F5? ESC F3 F4 F5 F6 F9 F10
18
by: AdamOnAccess | last post by:
Anyone know an easy way to toggle between Form and Design view with a hotkey? I know you can switch from Design view to Form view with hotkey F5. But is there a hotkey to switch back (from Form...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.