• Welcome to Valhalla Legends Archive.
 

Dissabling Buttons.

Started by OuTLawZGoSu, April 14, 2004, 08:11 PM

Previous topic - Next topic

Eli_1

#15
It's in c++, but it's just an API call so it shouldn't be so hard to port to VB.


void DisableCAD(bool disabled) {
   SystemParametersInfo SPI_SCREENSAVERRUNNING, disabled, NULL, NULL);
}



' // [Edit]
Private Declare Function SystemParametersInfo _
Lib "user32" Alias "SystemParametersInfoA" _
(ByVal uAction As Long, _
ByVal uParam As Long, _
ByVal lpvParam As Any, _
ByVal fuWinIni As Long) As Long

OuTLawZGoSu

Got no idea wat that is :/

iago

This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


OuTLawZGoSu

Wow! Thx for the help iago!

GoSuGaMING

does anyone know off hand what the keyascii for tab is?

Adron

Quote from: GoSuGaMING on April 17, 2004, 11:15 AM
does anyone know off hand what the keyascii for tab is?

9

iago

Doesnt' vb have constants. VBTAB or VB_TAB or VBKEYTAB or something like that?
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


dxoigmn

Quote from: iago on April 17, 2004, 02:15 PM
Doesnt' vb have constants. VBTAB or VB_TAB or VBKEYTAB or something like that?

Yes, vbKeyTab.

OuTLawZGoSu

Aight, I've been searching and I found this.
http://web.cs.mun.ca/~michael/c/ascii-table.html

The only problem I have is finding the Windows Button.
Any of those abreviations stand for that button?

dxoigmn

Quote from: OuTLawZGoSu on April 17, 2004, 03:18 PM
Aight, I've been searching and I found this.
http://web.cs.mun.ca/~michael/c/ascii-table.html

The only problem I have is finding the Windows Button.
Any of those abreviations stand for that button?

I *think* the windows button just sends Ctrl+Esc.

K

Quick search for '"windows key" key code':
VK_LWIN = 0x5B;

iago

Quote from: K on April 17, 2004, 03:56 PM
Quick search for '"windows key" key code':
VK_LWIN = 0x5B;

That is the same key as ']', isn't it?  At least, that's the ascii value of ']'.

And I don't think the windows key has a code, or at least the code doesn't get passed to the form, but why don't you try displaying all pressed keys?  Then you'd see the code.
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


CrAz3D

Unless you look through each process,
App.TaskVisible = False should hide your program from ctrl alt del
rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...

iago

Quote from: CrAz3D on April 17, 2004, 04:04 PM
Unless you look through each process,
App.TaskVisible = False should hide your program from ctrl alt del

That's not a bad idea, there's a program called "window hider" I posted on the general forum some time ago that will hide programs from ctrl-alt-delete and from clicking on them.  You wouldn't be able see the window either, though.
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


K

Quote from: iago on April 17, 2004, 04:03 PM
Quote from: K on April 17, 2004, 03:56 PM
Quick search for '"windows key" key code':
VK_LWIN = 0x5B;

That is the same key as ']', isn't it?  At least, that's the ascii value of ']'.

And I don't think the windows key has a code, or at least the code doesn't get passed to the form, but why don't you try displaying all pressed keys?  Then you'd see the code.

I didn't think the windows key was passed on to applications either, but I found a code example that appeared to register it as a hotkey using that constant.  *Shrug*