[Help] Pressing Print screen?[Solved]

Posts 16–24 of 24 · Page 2 of 2
Quote Originally Posted by 'Bruno View Post
he is pspiso lol not kallisti
someone besides caeu/gfx members knowz ma name...

owyeah ma coding is general works for more then 5 languages that vb denies it is not my problem /

C,C++,C#,Lua,Sharepoint :/ all the same. k half of vb can be applied read it a bit in a sharepoint book.

owyeah seems like the vb wantz to but out my sendkeys dont work / it even gibs me a hard time translating the code in C++ from ma pspgame.need to delete and edit to much to run it. but i know it can work C# = fully compatible.

yay im kallisti my new C4D fractal is done loading...ahw i like screwing arround as a intern here @ ma job woot woot.
Quote Originally Posted by Kuro Tenshi View Post

someone besides caeu/gfx members knowz ma name...

owyeah ma coding is general works for more then 5 languages that vb denies it is not my problem /

C,C++,C#,Lua,Sharepoint :/ all the same. k half of vb can be applied read it a bit in a sharepoint book.

owyeah seems like the vb wantz to but out my sendkeys dont work / it even gibs me a hard time translating the code in C++ from ma pspgame.need to delete and edit to much to run it. but i know it can work C# = fully compatible.

yay im kallisti my new C4D fractal is done loading...ahw i like screwing arround as a intern here @ ma job woot woot.
Cool story bro.

Quote Originally Posted by Jason View Post


Cool story bro.

Thanx(dr.Obvious )
i do or not
im bored everyone still is dead on msn and such /

hmm how would nathanael react to this
On topic

If you haven't compiled your code, please don't post it, half of the time there's an error.
VB doesn't use the VK_ for keys
It can....... Virtual keys can be used in vb , in fact part of the MPGH sdk uses VK_
Unless I misinterpreted your statement.

Code:
VK_SNAPSHOT
[php]
Declare Function keyboardevent Lib "user32" Alias "keybd_event" _
(ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Integer, _
ByVal dwExtraInfo As Integer) As Integer

Const VK_Snapshot As Integer = &H2C

keyboardevent(VK_Snapshot, 0)

yada yada
[/php]


We use the same Virtual Keys for System Wide Keyboard Hooks.


Virtual Key list
http://msdn.microsoft.com/en-us/library/ms927178.aspx

Virtual Keys (hardware specific)
http://msdn.microsoft.com/en-us/library/aa452679.aspx


Quote Originally Posted by NextGen1 View Post


It can....... Virtual keys can be used in vb , in fact part of the MPGH sdk uses VK_
Unless I misinterpreted your statement.

Code:
VK_SNAPSHOT
[php]
Declare Function keyboardevent Lib "user32" Alias "keybd_event" _
(ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Integer, _
ByVal dwExtraInfo As Integer) As Integer

Const VK_Snapshot As Integer = &H2C

keyboardevent(VK_Snapshot, 0)

yada yada
[/php]


We use the same Virtual Keys for System Wide Keyboard Hooks.


Virtual Key list
Virtual-Key Codes

Virtual Keys (hardware specific)
Manufacturer-specific Virtual-Key Codes


Yes, but you could also call it "asdaffasdasd" and it would do the same thing as it's not included in VB and you just declared it as a constant there before using it

Quote Originally Posted by lolland
If you haven't compiled your code, please don't post it, half of the time there's an error.
/me never compile mine

EDIT:
[php]
If Keys.PrintScreen = &H2C Then
MsgBox("match")
Else
MsgBox("not a match")
End If
[/php]

"Match" popped up. Just use the "Keys" class instead of individually declaring each constant
k, so we all are sharing stuff... but where is nathaneal nao :>
@ VK keys i knew it... long time ago i made a proper hotkey controlled thing with VK_NUMPAD'*' :/

i only get VB in like the 5/6th semester of my school and then its just for industrial programming, ( already have made the 5th semester project working in C so i cheat abit forward in my class also @ C# i get another course >:3 might even skip a year because of this /)
Quote Originally Posted by Kuro Tenshi View Post
k, so we all are sharing stuff... but where is nathaneal nao :>
@ VK keys i knew it... long time ago i made a proper hotkey controlled thing with VK_NUMPAD'*' :/
[php]
Private Const OMGTHISISTHESCREENSHOTKEY = &H2C

SendKeys.Send(OMGTHISISTHESCREENSHOTKEY)
[/php]

Just 'cos you define it doesn't mean it's actually included in VB automatically.
Oh. Everyone seems just right in the codes..
I tested the codes in VB.. thanks for it.. I'm now using it for screenshots of my computer..
(as my print screen is really broken...)

Sorry to the person who posted the C++ code but I don't yet study that language.. but I still saved it if I will start learning tat language.

Thanks to all who want to help me here..

*Solved
Posts 16–24 of 24 · Page 2 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us