Pressing a Hotkey

Posts 1–5 of 5 · Page 1 of 1
Pressing a Hotkey
On a timer that starts when the program starts, i put

[highlight="vb.net"]SendKeys.Send("{HOME}")[/highlight]

But nothing happends.

I put

[highlight="vb.net"]SendKeys.Send("{ENTER}")[/highlight]

and that works.

Using

[highlight="vb.net"]SendKeys.Send(Keys.Home)[/highlight]

Types 36.

...?
Quote Originally Posted by GodHack2 View Post
[highlight="vb.net"]SendKeys.Send("{HOME}")[/highlight]
Should work just fine.

And this explains the 36:
Keys Enumeration
He just said that SendKeys.Send("{HOME}") didn't work, although it should.

And SendKeys processes a string, Key.Home is just an integer for the Home key's keycode, so it's implicitly converted to the string "36".

Try looking at the keybd_event API, I'm sure I released something using that ages ago (look up String Sender J-Deezy or something like that to find it) around that time there was a shitload of tuts on using keybd_event to send a keydown and keyup message to the computer.
Quote Originally Posted by Jason View Post


He just said that SendKeys.Send("{HOME}") didn't work, although it should.

And SendKeys processes a string, Key.Home is just an integer for the Home key's keycode, so it's implicitly converted to the string "36".

Try looking at the keybd_event API, I'm sure I released something using that ages ago (look up String Sender J-Deezy or something like that to find it) around that time there was a shitload of tuts on using keybd_event to send a keydown and keyup message to the computer.

http://www.mpgh.net/forum/33-visual-...ender-dll.html
Well. I am using an AFK bot, and sometimes it just stops working, and the hotkey is home. If it stops working and You press home again, it will start working. I will try Jasons way and see if that works.
Posts 1–5 of 5 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Talk with us