Jump to content

Shift Key


Recommended Posts

Hey, I am trying to dump text into a window. This window seems to be very special from all the rest. For one, the only way I can get text into it, is by ControlSend. This isn't a big problem though.

The problem, is that if I send _ to it, it comes up as -. I have tried ascii, but then I realized this window doesn't take Alt + num codes. I have tried +- and +_ nothing, and {Lshift down} etc.

Is there any other ways of making a _? Someone who does C++ told me that there is something called VkKey and it sends the signal that windows gets from the keyboard, or something.

Help?

Link to comment
Share on other sites

what about

$string = "_"

send($string) ?

<{POST_SNAPBACK}>

wouldnt work. it would be the same as send("_").

you could try sending it as a char. (search for chr & asc)

Edited by w0uter

My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll

Link to comment
Share on other sites

  • Developers

ControlSend() has this known issue.

Search for the ControlSendPlus() uDF by pekster ....

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Well see, I would like to tell you that it all worked out except....

On my local tests, it works! However, this application is not for local use.

The application sits on a server in Texas. The only way to control the server, is via Remote Desktop Connection. When I have the window infront of me, and I execute it, it works fine. When I have the RDC minimized or disconnected, it goes back to a - instead of _

o_O

Link to comment
Share on other sites

And I see why.

In the controlsendplus, in order to get the shift key working, it uses the Send command to send shift key down and shift key up. The whole problem about that, is that when the RDC is minimized, send does not work. That is why I use control send.

I edited controlsendplus, to use controlsend instead of send, but that wont work, because controlsend cannot send the shift.

Is there a dll way to send it?

Edited by gammasts
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...