SendKey usage compared to SendMessage -
Hi All,
I wanna ask about the equivalent of SendKey if I will use SendMessage:
Ex.
If ctr2 <= length Then
myKeys(ctr2) = Mid$(myString, ctr2, 1)
SendKeys myKeys(ctr2)
ctr2 = ctr2 + 1
Else
I tried converting SendKey with SendMessage but nothing happens:
SendMessage myHWnd, WM_KEYDOWN, 0, myKeys(ctr2)
It didn't send keys to notepad.
I really cannot understand SendMessage and I really need your help guys... I am only a newbie in VB.
Thank you,
Gwapo
SendKey usage compared to SendMessage -
Hi All,
I wanna ask about the equivalent of SendKey if I will use SendMessage:
Ex.
If ctr2 <= length Then
myKeys(ctr2) = Mid$(myString, ctr2, 1)
SendKeys myKeys(ctr2)
ctr2 = ctr2 + 1
Else
I tried converting SendKey with SendMessage but
API sendkey/sendmessage example -
does anyone have a tutorial or example program on how to use sendkey and send message. I want to be able to send text to Notepad and mirc
login using sendkey -
Thanks in advance for any help you can give.
Am very new at this, but interested in learning quickly. I'm experimenting with opening different applications and manipulating them using sendkey. I've gotten as far as activating the apps I want. My next foray is using sendkey. How,
[2005] SendMessage question -
Well I was wondering the usage of sendmessage? Like could I use it to simulate a button press on a processes form?
Monitoring CPU Usage -
Is there an API call (or series thereof) that will allow me to monitor the CPU usage? Am I right in thinking that the SendMessage will only allow me to capture messages to windows?
Tilde Sendkey wont Execute -
I am trying to run a trainer that will access a built in console for a game. What I want it to do is, when I press the F1 key, it will execute a sendkey for the tilde key. However the sendkey will only be pushed when there is a textbox visible. If I hit F1 during a game it seems like i
Individual Process Memory Usage -
I searched through the forums and I didn't find anything except one to tell either the global memory usage or the CPU usage.
Well, I heard that this is difficult to do in Visual Basic, but I am searching to get the individual amount of memory used by a process, which is then display
Sendkey!! -
can some give me the exact coding that i will need to make it do a sendkey for enter.
[2005] SendKey -
Is There Anyway To Use A SendKey.Send (HOME) without the focus on the object. I mean is there any other way, function wich does the same thing ?
SendKey -
Hi,
I want to automate the process of logging in in a web site. The page site has a text box and a submit button, i want to use sendkey command and type some text in the text box and then simulate mouse click. Can anyone please give me any example code for sendkey function for a html
A lot of simple vb help needed. -
I need some info on the following functions/parts of vb. If you could just help me on some parts that would be great. If you could help me on all of them that would be better. TiA!
A. The LOF() function explanation/usage
B.Identifying the objects to which you will assign specific
SendMessage Help -
I am trying to do a SendMessage against a msgbox. If the msgbox has two choices such as Yes and No. How do I make it click No?
I am able to sendmessage on the Yes, but don't know how to do it to the No.
I was using FindWindow and FindWindowEx to do this with SendMessage.
An
sendkey -
please anyone explain me what is 'Sendkey'.
Thanks for help.
Need helps in Sendkey -
Hi,
I have a field in an application that I can't tab or shift+tab to get there. How can I navigate to that field using Sendkey?
Thanks,
PhiL
SendKey Problem With winXP -
I Have just bought the final release of Windows XP and when i use the SendKey command in my form at runtime i have to click the button lots of times before the command will work.
Has anyone else discovered this? If not try it.
Does anyone know how to fix this?
CPU Usage (VB6) -
how do I get the CPU usage of my program? I have searched around and found examples of how to get the total cpu usage but what i want to do is just get how much cpu my program is using.
I want to do this because I have made a program thats constantly calculating and I want to be able
sending a backspace to a textbox -
Hello
I was trying to send a backspace
can i do it using sendkey
something like sendkey asicc_value(8) since ascii value 8 is backspace?
Clearing Memory Usage Of My Application | Getting Memory Usage Of My Application -
Hmmm,,
I just looking at applications mem usage, on my Task Manager,
And noticed, all of the programs memory usage rises, as their are in use longer,
So, i was wondering,
Since unloading the app, clears the usage, etc (When done properly)
Is there a way to clear the usag
Sendkey 3 tissue issue -
I am writing a simple script for my SSIS package. My problem is that i can not automate this SSIS because when I save the file in the following script i get a YES NO Cancel pop up. I am trying to use the sendkey function to automatically choose yes to no avail.
about sendkey :( help!!! -
Hey guys,
i'm making a program which simulates keys down&up in a game.
i used sendkey() and keyboard_event,but it works in chatbox of game only.
All i want is simulating a KEY down&up in the game just like the really keyboard does. By the way, I think i should use DX_input
what makes my software increase the CPU usage -
hi every1..
i was wondering what makes my program icrease the CPU usage that much?! it takes about 20KB from memory but it increases the cpu usage to 85%! i see many other softwares that use high memory usage (up to 40KB) but with cpu usage of (2%), so what makes it increase like th
cpu usage and registry question! -
Hi!I have a situasion like this:
I know the key in the registry where is kept the cpu usage.
But the value of the cpu usage is like: 60000... or A00000 or D100000 and so on...
How can I get in percentage the cpu usage!
Thanks!
setfocus for sendkey -
I m new to vb6, i need to setfocus to a window on my desktop such as a login window or bob.txt that is already open and have sendkey fill it, how do i do this?
CTRL+P (Sendkeys) -
I have developed a pretty complex Sendkey App in VB6 for work. I use it on apps not made with VB (i.e. Word, Excel, IE etc...)
Everything seems to work pretty good except two Sendkey commands.
+ (Shift)
^ (Control)
I have tried sending "^(P)" to open print dialog in
SendMessage, FindWindow, FindWindowEx -
Do these API calls exist in VBScript? If so, can anyone show me a usage example?
I have not been able to find any examples here or on Googles.
VB 6.0: sendkey Holding a button down -
I have figured out how to use sendkey to send key presses to other apps, but how would you go about sending a key press and hold to other apps?
IE: press and hold W for 10 seconds.
Alternative to sendkey -
Hi, hopefully I'm posting in the right forum.
I'm trying to send keyboard command to an opened window.
I tried with something like that :
AppActivate "Name of the window"
Sendkey text1.text
Now, it's very basic, but it work with "common" program like
Using API instead of VB's Sendkey func -
I was wondering if anybody could help or explain how I would go about sending keys to a game using API
I can send keys right now using the Sendkey command in Visual Basic, although I cannot send keys if the game client is maximized
CPU Usage -- Any gurus -
Hi, this one may take a guru. I need to know exactly when another app finishes loading. In this case, once its CPU usage (CPU count) is 0, I know it's finished. So how can I get a process' CPU usage?
Thanks in advance.
SendMessage - Easy -
I am trying to do a SendMessage against a msgbox. If the msgbox has two choices such as Yes and No. How do I make it click No?
The msgbox I am trying to click is from Excel.
If you can generate the msgbox with a vbYesNo in Excel and from VB trying to click the No.
I am able
Sendkey ^(P) Problem -
I have a fairly neat program that runs "Sendkey" commands on other apps.
All my sendkeys work... except one.
^(P) (or any othe ^(?) command)
I know I can use %(Fp) to do the same thing, but how come "^(P)" doesn't work???
You have to use the () because
using sendkey to click a button (resolved) -
Hi,
Is it possible to use sendkey to click on a tab or button on an active application? This application didn't have hotkeys on most items so I have to use my mouse to click to activate things.
Thanks,
PhiL
problems with sendkeys and window focus -
My application automates tasks. It uses FindWindow to get the window handle and SendKey to send the keyboard strokes. Now, everything works fine, unless some other application pops up and steals window focus. If that happens, my sendkey commands go to the wrong window.
any ideas for
Slow VBF -
hello,
is it only me who is facing slower than slow VBF right now, it was not the case before, but VBF is getting slower since the forum upgrade. atleast on my PC.
even if i admit that my computer is old, AMD Athlon 850 Mhz, but other sites are running quite fast as compared to V
FindWindow With Multi Instance -
Hi All, I have been playing around with windows API FindWindow, i can use the API to find and show the other application and send a key to them (sendkey). But i got a problem, how to send key to other application if there is more than one instance of application running?
for example
need help with SendMessage [not resolved] -
hi,
i am trying to use the SendMessage API function to simulate a right-mouseclick on a notifyicon.
what is the correct syntax for sending a right-mouseclick message with SendMessage?
i know the format is SendMessage(windowhandle, msg, wParam, lParam), but i dont know what to
How do I send a mouse click similar to SendKey -
I want to send mouse clicks to an application like I do SendKey, I already designed a method to get the mouse to the properlocation on the destination, I just don't know how to send the click to it.
Make a SendKey to TerminalServer Windows... -
Hello,
I search a way to make a sendkey to a terminal Server windows.
I have found some information about RDP 5.1 and IMsRdpClientNonScriptable.
But I did'nt find example source code or somthing to help me to make that.
What I need to make :
I have a program who read a
VB6 Performance -
Anybody could help me please...
Most of my queries are long especially when generating reports. Querying is just fine except that my vb application is eating up my cpu (100% usage).
How can i execute query with minimal cpu usage (e.g 50% usage)? Just like other application like
Three different Buttons having the same hWnd handle. -
Hello,
i want to write a program for starting a foreign application (such as
Cooledit wave-editor) and sending a command to every button of this
application using "SendMessage hWnd, BM_CLICK, 0, 0 (maybe this is the
right API for this purpose but i'm not 100% sure).
Star