quote:
Originally posted by Tobiaz
Thank you! I will have a look at it tomorrow.
Edit: Thank you! Now I can change my nickname...
My Problem now is to change it every Minute?
I know to use a Timer... but how can I do this without a Timer?
Thank you again
You can't do it without a timer. What I suggest is take a look at this thread
Matty's reply to Showing Form without vbModal in VB? For the programmers out there... .
Now you will want to have a Form with a Timer on it that is used to set the name every minute. (Timer's interval would be 60000).
Next on the Initialize of the Plugin you would call the ShowWindow Form1.hWnd, SW_SHOWNOACTIVATE (this will show the window but not give it the focus).
Next on Form_Load() you want to have the window repositioned and made smaller so it cant be seen.
(For this in design time you need to change the borderstyle = 0)
And in the Form_Load() code put
me.height=0: me.top=0
me.width=0: me.left=0
And obviously your code to change name will be in the timer.