|
|
|
Page 1 of 1 |
[ 11 posts ] |
|
 Key Input : Developer's Corner
|
|
Posted: March 1st, 2003, 11:25 am
|
|
|
|
Darkness
Darkness's Reps:
|
Wasn't there a Service "KeyInput" to give some key press to DAoC ?
I not mean the V1 macro winwow, I search
for a function similar to SendKeys that
sends Keys to the game.
I thought there was a Input Service but I dont
find ir now !
best regards
Darkness[:-batman]
|
|
|
|
|
Posted: March 1st, 2003, 2:19 pm
|
|
|
|
WyvernX
WyvernX's Reps:
|
Yes there is. Actually, there are two. You can use my DU service. It has a SendKeys function that accepts a string, or characters. Also, you can send it special keys like the function keys, etc. I'll have to get out my documentation. Am working on scripting plugin that will have the documentation in it.
Also, you can use the XUWinInput service. It has sendkeys, keyUp, keyDown, etc.
|
|
|
|
|
Posted: March 4th, 2003, 2:05 pm
|
|
|
|
Darkness
Darkness's Reps:
|
Thx WyvernX. Will test it with XUnleashed.
Can you shortly tell me why SendKeys("1")
or API
Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
Call keybd_event(CByte(iASCII), 0, 0, 0)
NOT work in VB prg's with DAoC? [:-banghead]
Is there another api fkt that work or that you useing?
I have a client that only work with your RTLoger, but not as a plugin at the moment.
Its much work to redesign it into a multithread
plugin, only for 1 fkt. call to send a key to DAoC.
Perhaps you can help me.[:D]
Grettings
Darkness
|
|
|
|
|
Posted: March 4th, 2003, 2:36 pm
|
|
|
|
WyvernX
WyvernX's Reps:
|
If you want, I can help convert it into a multithread plugin. It is very easy to me, as I have much experience with multithreading.
That being said, most of the time, a conversion only requires about 5 lines of code, and the conversion is complete.
|
|
|
|
|
Posted: March 10th, 2003, 2:10 pm
|
|
|
|
Darkness
Darkness's Reps:
|
Okay get Plugin work at half the way now
But I need the docu quickly for the service.Keypress function.
I try the SendKeys way, Sendkeys("+4") for a SHIFT-4 , but it not work.
Is Shift, Ctrl, Alt implemented yet?
If yes, please tell us how it works?
grettings
Darkness
|
|
|
|
|
Posted: March 11th, 2003, 11:04 am
|
|
|
|
WyvernX
WyvernX's Reps:
|
Going from memory here.
The shift is + and the shifted chars are in brackets. So if I wanted to say"$100" I would SendKeys"+{4}100" Hope that helps.
|
|
|
|
|
Posted: March 11th, 2003, 11:37 am
|
|
|
|
Darkness
Darkness's Reps:
|
Thanx, but.... I exacly use this and it dosn't work.
Dim XU_SendKeys As XUWinInputService.XUInputBuffer
Set XU_SendKeys = New XUWinInputService.XUInputBuffer
DUService.SendKeys ("+{4}1")
Set toolbar manualy to 3 in DAoC.
It should switch toolbar from 3 to 4 and push Toolbar item 1 in DAoC,
but it not switch and push item 1 from toolbar nr 3. not so good. [:-banghead]
Please search again in your memory.
Thx
Darkness
|
|
|
|
|
Posted: March 12th, 2003, 6:38 am
|
|
|
|
WyvernX
WyvernX's Reps:
|
I will be home later this evening and I can check it out.
Also, you do not need the XUWininputService declaration, as the DUService declares one for ya.
If you are using the XUWinINputService, you can use XU_SendKeys.KeyDown(VK_SHIFT) or whatever it is, then DUService.SendKeys(1) and XU_SendKeys.KeyUp(VK_SHIFT) or whatever it is.
Eitherway, I will double check tonight.
|
|
|
|
|
Posted: March 15th, 2003, 2:21 pm
|
|
|
|
Darkness
Darkness's Reps:
|
You want to check how I can push Shift+F1 oder Enter oder ESC with DUService.
It' nice that your group implement such things like SendKeys, but it should work as
the VB sendKeys or make a little docu to explain the function.
and you must not wondering why "we" not make so much plugins here.
Mostly I think we are vb programmers and like our comforable VB with EditBoxs,
ListBox aso. Its difficult to develop with that toolset. no debuging and vor
every test I must go in game.
So please take a look at the SendKeys and I will send a link to a new plugin
from me. DAoC_ChatTrigger It presses keys if it reads keywords in chat.log.
I used RTChat logger and add that functionality to it.
At the moment I have a textfile with the "Keywords" and "Keys" that should pressed,
if Keyword is found. And wait for a EditBox to edit it ingame.
(Old V1 Macro and Trigger fkt. crashed to many times on my PC)
Greetings
Darkness
Thx.
|
|
|
|
|
Posted: March 15th, 2003, 5:23 pm
|
|
|
|
WyvernX
WyvernX's Reps:
|
I agree. I need to document the DU service badly. I'll get some more detailed documentation coming. You can test some things in the dx8test.exe file. Then just edit your chat.log yourself and add lines. THen save, and it should do something. Albeit.. not that well. The xu team is going to put multiline edit boxes next in line to be implemented... that will allow for editing text files while in the game... and for me to have editable scripts.
|
|
|
|
|
Posted: March 21st, 2003, 8:09 am
|
|
|
|
WyvernX
WyvernX's Reps:
|
Dark, I still need you to reply to my email or private message.
|
|
|
|
|
Who is online |
|
Users browsing this forum: No registered users and 5 guests |
|
|
|