πŸ™‚ [Help]Methods other than SendKeys?[Solved]

Posts 16–30 of 36 Β· Page 2 of 3
Quote Originally Posted by Lolland View Post
Windows Application Programming Interfaces?

SendInput, SendMessage, keybd_event, etc.
thats what I said in the post above -.-

OT:
send input works
Quote Originally Posted by mnpeepno2 View Post
thats what I said in the post above -.-

OT:
send input works
Thanks Ill try this. Will this be able to work in game?

Quote Originally Posted by Jason View Post
I created a class library for this. I'll edit this post when I find the link.

EDIT:

http://www.mpgh.net/forum/33-visual-...ender-dll.html

There you go.
Thanks Ill make sure Ill tes tthis and give results.


Edit: I also have a question and will save space b y making another thread. Is there a way to change the progress bar to my custom gui instead of the green one? Like I cahnge to a progress bar with stripes. If this is possible it would be easier to blend it with the program.
Quote Originally Posted by Dreamer View Post
Thanks Ill try this. Will this be able to work in game?



Thanks Ill make sure Ill tes tthis and give results.


Edit: I also have a question and will save space b y making another thread. Is there a way to change the progress bar to my custom gui instead of the green one? Like I cahnge to a progress bar with stripes. If this is possible it would be easier to blend it with the program.

Override the paint method and draw a red progrss bar.
Quote Originally Posted by freedompeace View Post
Override the paint method and draw a red progrss bar.
Progressbar doesn't have a paint event, and the vista progress bar doesn't really support CreateGraphics either as it's animated and repaints every time, and seeing as you're not handling the "paint" event, it just flickers to shit.
Quote Originally Posted by Jason View Post


Progressbar doesn't have a paint event, and the vista progress bar doesn't really support CreateGraphics either as it's animated and repaints every time, and seeing as you're not handling the "paint" event, it just flickers to shit.
YES IT WAS CALLED VISTA PROGRESS BAR!
Quote Originally Posted by mnpeepno2 View Post
YES IT WAS CALLED VISTA PROGRESS BAR!
I meant the default progress bar when used in Windows Vista
Quote Originally Posted by Jason View Post


I meant the default progress bar when used in Windows Vista
oh but i think it was called the same thing tho.
Quote Originally Posted by mnpeepno2 View Post
oh but i think it was called the same thing tho.
It is haha, I remember Kevin posted the link somewhere. I'll try search for it.
I saw some tools once that could change it to red yellow or green but forgot what it was called...
For your second question, either create your own using a UserControl or something similar. Or download a custom component.
Use an image as the progress bar and stretch it as the progress increases?
Quote Originally Posted by master131 View Post
Use an image as the progress bar and stretch it as the progress increases?
Yeah, or you can use gradient colors for vector rendering as Freedom said. The advantage of using vector graphics is that they don't lose their quality.
Quote Originally Posted by Jason View Post


Progressbar doesn't have a paint event, and the vista progress bar doesn't really support CreateGraphics either as it's animated and repaints every time, and seeing as you're not handling the "paint" event, it just flickers to shit.
Uhm... MSDN says it does.

Quote Originally Posted by http://msdn.microsoft.com/en-us/library/system.windows.forms.progressbar.paint.aspx

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role not supported), Windows Server 2003 SP2
Also, to prevent flickering.. double buffer the thing?

Furthermore, you can call PBM_SETSTATE and set the state of the progress bar (green, red, yellow) in Windows Vista and above.
Find it for me

Try

The best I can find
Posts 16–30 of 36 Β· Page 2 of 3
This thread is closed for replies.

Tags for this Thread

None

Talk with us