Search Results

Showing results 1 to 17 of 17
Search took 0.01 seconds.
Search: Posts Made By: Bomber686
Forum: Visual Basic 4 / 5 / 6 Feb 16th, 2007
Replies: 1
Views: 6,465
Posted By Bomber686
I found it.... Turns out you declare the function different

Option Explicit
Private Declare Function RegSetValueEx Lib "advapi32.dll" Alias "RegSetValueExA" (ByVal hkey As Long, ByVal...
Forum: Visual Basic 4 / 5 / 6 Feb 7th, 2007
Replies: 1
Views: 6,465
Posted By Bomber686
Hi all,

I have this code

Option Explicit
Private Declare Function RegOpenKey Lib "advapi32.dll" Alias "RegOpenKeyA" (ByVal hkey As Long, ByVal lpSubKey As String, phkResult As Long) As Long...
Forum: Visual Basic 4 / 5 / 6 Apr 4th, 2006
Replies: 7
Views: 4,088
Posted By Bomber686
I've found this:

http://www.microsoft.com/whdc/device/input/w2kscan-map.mspx

This is an interesting approach, it seems to work. It needs a reboot to work tho. So if I was to use it in an...
Forum: Visual Basic 4 / 5 / 6 Apr 4th, 2006
Replies: 7
Views: 4,088
Posted By Bomber686
My head hurts! :sad:

It looks as though the ctrl,alt,del event on these domain PC's stops the PC from reporting to any running app, thus the 0 handle. Which means that once this event starts,...
Forum: Visual Basic 4 / 5 / 6 Apr 4th, 2006
Replies: 7
Views: 4,088
Posted By Bomber686
I've used this code:

Private Declare Function GetForegroundWindow Lib "user32" () As Long
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)

Private Sub Form_Load()...
Forum: Visual Basic 4 / 5 / 6 Apr 4th, 2006
Replies: 7
Views: 4,088
Posted By Bomber686
The way the blocktest process works is fine on my XP none domain machine at home but the machines at work are domain machines and the ctrl,alt,del event produces a security box. I've tried adjusting...
Forum: Visual Basic 4 / 5 / 6 Apr 3rd, 2006
Replies: 7
Views: 4,088
Posted By Bomber686
You did say about this problem........... Looks like I could use this approach tho, thanks. I've report on what happens when I play with it tomorrow.

Thanks again
Forum: Visual Basic 4 / 5 / 6 Apr 3rd, 2006
Replies: 7
Views: 4,088
Posted By Bomber686
Hi,

I am using the blockinput API call, which blocks keyboard and mouse events while active. The only thing is by pressing ctrl, alt, del you unblock inputs. What I was thinking is to just...
Forum: Visual Basic 4 / 5 / 6 Apr 3rd, 2006
Replies: 9
Views: 2,806
Posted By Bomber686
I've used the block input approach and found that the vb app needs to be running for the block to work. So what I've done is this:

I've created a batch file which can be used as the users logon...
Forum: Visual Basic 4 / 5 / 6 Apr 3rd, 2006
Replies: 9
Views: 2,806
Posted By Bomber686
What a nightmare......It turns out that the PC's I need to stop the hardware on are all using PS2 ports and the mahine needs to reboot to uninstall a PS2 device. I'm using USB at home and that works...
Forum: Visual Basic 4 / 5 / 6 Apr 1st, 2006
Replies: 2
Views: 2,927
Posted By Bomber686
Forum: Visual Basic 4 / 5 / 6 Apr 1st, 2006
Replies: 2
Views: 2,927
Posted By Bomber686
Hi,

I wish to run a vb app which queries the registry and returns a result. I then want to use that result to set a variable value which I can use in DOS. A batch file runs the vb app, when the...
Forum: Visual Basic 4 / 5 / 6 Apr 1st, 2006
Replies: 9
Views: 2,806
Posted By Bomber686
I've played some more and sort the Findwindow API usage but I've had to put a sleep back in. The addition of a sleep is because the app unloads b4 its sent the keys. Does anyone know what the...
Forum: Visual Basic 4 / 5 / 6 Apr 1st, 2006
Replies: 9
Views: 2,806
Posted By Bomber686
I've never used the Findwindow API call so any assistance would be greatfully received. I've added this into my code:

Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal...
Forum: Visual Basic 4 / 5 / 6 Apr 1st, 2006
Replies: 9
Views: 2,806
Posted By Bomber686
I have had a play around with the code and found this;

If I unistall the device then I stop the hardware. You can do this for both the mouse and the keyboard. If you do it this way on reboot the...
Forum: Visual Basic 4 / 5 / 6 Apr 1st, 2006
Replies: 9
Views: 2,806
Posted By Bomber686
I have found this code:

Set WshShell = CreateObject("WScript.Shell")
WshShell.Run "devmgmt.msc"
While WshShell.AppActivate("Device Manager") = False
Wend
WshShell.AppActivate "Device Manager"...
Forum: Visual Basic 4 / 5 / 6 Apr 1st, 2006
Replies: 9
Views: 2,806
Posted By Bomber686
Hi,

I want to be able to stop hardware devices and I was wondering if it was possible and how you go about doing it.

I'll explain the plan;
I am making an automated install account. Users on...
Showing results 1 to 17 of 17

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC