Pressing a Hotkey
Pressing a Hotkey
[highlight="vb.net"]SendKeys.Send("{HOME}")[/highlight]
Should work just fine.
And this explains the 36:
http://msdn.microsoft.com/en-us/libr...(v=vs.71).aspx
Should work just fine.
And this explains the 36:
http://msdn.microsoft.com/en-us/libr...(v=vs.71).aspx
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.
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.
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.
This thread is closed for replies.
