bosshunts Posted April 5, 2014 Share Posted April 5, 2014 Hello. I was wondering if was possible to make this program actually press and F key by itself. Such as, begin if HPPercent < 80 then (pressF1) end. Any help is appreciated. Thanks in advance! Quote Link to comment Share on other sites More sharing options...
Wanted Posted April 7, 2014 Share Posted April 7, 2014 Pretty sure it's Chr(112) - 126 Quote Link to comment Share on other sites More sharing options...
bosshunts Posted April 7, 2014 Author Share Posted April 7, 2014 Pretty sure it's Chr(112) - 126 112 is the letter 'p' But thank you for the format. I'll figure it out from here - - - 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. Quote Link to comment Share on other sites More sharing options...
slacky Posted April 7, 2014 Share Posted April 7, 2014 (edited) 112 is the letter 'p' But thank you for the format. I'll figure it out from here - - - 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 April 7, 2014 by slacky Quote Link to comment Share on other sites More sharing options...
bosshunts Posted April 7, 2014 Author Share Posted April 7, 2014 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. Quote Link to comment Share on other sites More sharing options...
Wanted Posted April 7, 2014 Share Posted April 7, 2014 Never trust random google ASCII tables Quote Link to comment Share on other sites More sharing options...