Hi
I am writing some code that will automate a process used alot at my place of work, i dont want to get to much into the exact nature of it just in case but it basically gathers the required information into the VB program and then inserts it into a KEA 340 terminal.
I have most of the code running fine but at certain points I need to mimic the keyboard pressing the escape key or the F1 key.
According to the help files xxx.SendKeys "<Esc>" should work (or "<F1>" for the F1 key) but it doesnt.
I have used the <return> command with no problems at all but unfortunatley I cannot progress with out the Escape or F1 keys.
A sample of the code..
xxx.WaitForCursor 22, 29, 1
xxx.SendKeys Trim$(txtxxx.Text) & "<return>"
xxx.WaitForCursor 22, 37, 1
xxx.SendKeys Trim$(txtxxx.Text) & "<return>"
xxx.WaitForCursor 22, 19, 1
xxx.SendKeys Trim$(txtxxx.Text) & "<return>"
xxx.WaitForCursor 17, 20, 1
xxx.SendInput "<F1>" ' nothing happens, no errors but no progression
xxx is hiding any names that could give away the nature of program, im sure none of you care but I wouldnt want to get in trouble lol
I have tried many different variations including using the SendInput command but nothing has worked.
Any help much appretiated
Thanks
I am writing some code that will automate a process used alot at my place of work, i dont want to get to much into the exact nature of it just in case but it basically gathers the required information into the VB program and then inserts it into a KEA 340 terminal.
I have most of the code running fine but at certain points I need to mimic the keyboard pressing the escape key or the F1 key.
According to the help files xxx.SendKeys "<Esc>" should work (or "<F1>" for the F1 key) but it doesnt.
I have used the <return> command with no problems at all but unfortunatley I cannot progress with out the Escape or F1 keys.
A sample of the code..
xxx.WaitForCursor 22, 29, 1
xxx.SendKeys Trim$(txtxxx.Text) & "<return>"
xxx.WaitForCursor 22, 37, 1
xxx.SendKeys Trim$(txtxxx.Text) & "<return>"
xxx.WaitForCursor 22, 19, 1
xxx.SendKeys Trim$(txtxxx.Text) & "<return>"
xxx.WaitForCursor 17, 20, 1
xxx.SendInput "<F1>" ' nothing happens, no errors but no progression
xxx is hiding any names that could give away the nature of program, im sure none of you care but I wouldnt want to get in trouble lol
I have tried many different variations including using the SendInput command but nothing has worked.
Any help much appretiated
Thanks