Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ctrl characters in Aspect 2

Status
Not open for further replies.

Chaffers

Technical User
Jun 1, 2007
4
GB
Hi,

I was wondering if anyone can tell me how to transmit <ctrl> + <shift> + -
I see that control is 0x11, shift is 0x10, but how do I send it as if they are both pressed together?

Many Thanks in advance!
 
Something like:

Code:
sendkey CTRLSHIFT '-'

Here's an bit of code as an example (pastes data into notepad.)

Code:
proc paste_notepad
	strtoclip sTemp3	;Copy text to windows clipboard
	sendkey ALT 'E'		;Enter Edit Menu
	mspause 250		;Wait 1/4 second
	sendkey 'P'		;Paste
	sendkey 0x0d		;linefeed
	sTemp3 = ""		;Blank variable
endproc
 
Thanks for the quick reply. :)

I have tried to send control + shift + - using
sendkey CTRLSHIFT '-'

but it doesn't work :(

I read the help file a bit more on the sendkey function, and I think that termkey is probably more applicable to my situation, but still, neither works.

sendkey CTRLSHIFT '-'
and
termkey CTRLSHIFT '-'
both doesn't get the desired result.

I have tested the termkey CTRL '-' also (I realised it does the same thing), but it still doesn't work...

By testing using termkey CTRL 'U', it works and clear the line on the switch...

The CTRL '-' keystrokes send an interrupt to close the connection of switch, and maybe it is sending the CTRL '-' to the switch directly and not to the telnet shell...

Any ideas?

Thanks in advance
 
Just been playing around with the code a bit more, and then I realised that I don't need to use the sendkey or termkey functions...

Don't know what my brain is doing today, but all i needed was a transmit "^_"

Thanks for the help :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top