What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

How to send specific keystrokes?

Praline

Member
Joined
Aug 17, 2015
Messages
150
Reaction score
2
I want a profile to send the keys "alt F" to the bot at timed intervals. How do I do that? Help please. :)
 
Profile can't do that, routine would. I added into default combat the ESC keypress to end rest I ripped from joes. Look for my updated rest.cs in the default combat thread, then look at the original and compare. It actually required quite a bit of work just to do a keypress.
 
Thank you, wired203. I did take a look. Was hoping to not do it in the routine, but its either routine or a plugin then? Ugh :)
 
You can Always do a plugin that sends the key every few seconds.
As base you can use the plugin openlockboxes that comes with the bot.
Copy it over in the plugin and it should run
 
You can Always do a plugin that sends the key every few seconds.
As base you can use the plugin openlockboxes that comes with the bot.
Copy it over in the plugin and it should run

Thank you dear Cryo. Now all I need is someone to actually DO it for me! hahaha
I am so way over my head with all this - all I can do is look at wired's rest.cs and openlockboxes, but what I see is well.. it might as well be written is Russian or Greek. :P
 
You need to compare my rest.cs verses the default combat rest.cs to see the changes I made. That will get you in the right direction.
 
True True...
What is the reason for This? Rocket boots or what?
 
True True...
What is the reason for This? Rocket boots or what?

Oh no, nothing even that fancy. I use(d) a Razer mouse and kb, and have keys mapped to it (alt F being the most important one for me). Problem is that is seems BW does not want to play nicely with my Razer software, and I have to disable it when trying to run BW and was hoping to find an easy way to send keystrokes to BW. Did not want to do it via combat routine, because well...er..<think up any excuse for being code-impaired> :)
 
You need to compare my rest.cs verses the default combat rest.cs to see the changes I made. That will get you in the right direction.

Oh, its getting me in a direction alright...just perhaps not the right one! <grabs another G&T) <hic>
Hahah thx for trying to help wired! I am just too stupid. :(
 
You need to compare my rest.cs verses the default combat rest.cs to see the changes I made. That will get you in the right direction.

You did this:
if (Me.IsCasting) SendMessage(SWTORHWnd, (int)0x100, (IntPtr)(char)0x1b, (IntPtr)0);

So...er..(char)0x1b would be the ESC key? and if I replace that with (char)0x12 it would be the ALT key? WTH is (int)0x100 and (IntPtr) etc etc? And the F key would be 0x46. Where do I put that? And after all that, what direction would my BW go? lol
 
Back
Top