Jump to content
bosshunts

Pressing F Keys

Recommended Posts

Pretty sure it's Chr(112) - 126

112 is the letter 'p' :P

But thank you for the format. I'll figure it out from here :D

 

- - - Updated - - -

 

Pretty sure it's Chr(112) - 126

Are you sure you can use this function to press F keys? I've tried many numbers and none of them were correct.

Link to comment
Share on other sites

112 is the letter 'p' :P

But thank you for the format. I'll figure it out from here :D

 

- - - Updated - - -

 

 

Are you sure you can use this function to press F keys? I've tried many numbers and none of them were correct.

PressVKey(VK_F1) to VK_F12...

 

You can use a hex or number-format as well ($70 - $7B), instead of them constants:

$70 = 112 => F1 
$71 = 113 => F2 
... 
$79 = 121 => F10 
$7A = 122 => F11 
$7B = 123 => F12

 

Note that I am using PressVKey, and not PressKey.

 

 

FYI, all the keys F1-F12 are called function-keys.

Edited by slacky
Link to comment
Share on other sites

PressVKey(VK_F1) to VK_F12...

 

You can use a hexm or number-format as well ($70 - $7B), instead if them constants:

$70 = 112 => F1 
$71 = 113 => F2 
... 
$79 = 121 => F10 
$7A = 122 => F11 
$7B = 123 => F12

 

Note that I am using PressVKey, and not PressKey.

 

 

FYI, all the keys F1-F12 are called function-keys.

I used PressVKey(VK_F1); And it worked perfectly. Thank you very much.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...