Sign in to follow this  
Followers 0
Fabi

Write a "TAB" into an Input-box

4 posts in this topic

Hello everybody

I have a problem with writing a Tab into an Input. Is it possible to write a tab. I tried it with several functions. I have to create a textline with Tabs between but everytime i send it to the input it doesn't work. Here are the functions i tried:

ControlSetText ( "title", "text", controlID, "new text" & "{TAB}")

ControlSetText ( "title", "text", controlID, "new text" & {TAB} )

ControlCommand ( "title", "text", controlID, "TabRight", "" )

Has somebody an idea to solv my problem?

Thanks

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Hello everybody

I have a problem with writing a Tab into an Input. Is it possible to write a tab. I tried it with several functions. I have to create a textline with Tabs between but everytime i send it to the input it doesn't work. Here are the functions i tried:

ControlSetText ( "title", "text", controlID, "new text" & "{TAB}")

ControlSetText ( "title", "text", controlID, "new text" & {TAB} )

ControlCommand ( "title", "text", controlID, "TabRight", "" )

Has somebody an idea to solv my problem?

Thanks

Hi,

Have you tried it without the & in between the string and the tab key command.

You might also try using ControlSend

ControlSend ( "title", "text", controlID, "this is my text here {TAB} notice that you can use the tab command in the string and it gets sent as if the tab key was pushed" )
oÝ÷ Ø@ÈL¬¶×¬µçmçèZ0x¡×®²)à
í®Rzwm Ú-zjwb·
+çZºÚ"µÍ[  ][ÝÛÝY^I][ÝÊBÛY
Ì
BÛÛÛÙ[
    ][ÝÕ[]YHÝY   ][ÝË  ][ÝÉ][ÝËMK  ][ÝÕÈÈÝ^ÑST^ÕPKKKIÍÒSSQVÑST^ÕP^ÕPKKKIÍÑUSTTSSQV   ][ÝË
B

Not sure if ControlID's are the same on different machines (i assume they are :D ) but it should run notepad, wait 3 seconds then send that text to it where each line gets further indented with each TAB press

Cheers

Edited by fu2m8

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

are u trying to tab to a different control like a button or the next input box or send a tab as in a big space?

..

if for a space then u could use @TAB.

if your using it to tab to another control.. the window you might be trying to tab on. might not accept tabs. not all windows do.

Edited by CHRIS95219

Share this post


Link to post
Share on other sites

Thanks for zour suggestions

But the problem is that a Tab in the User-Interface means to go to an other element.

I solved the Problem with a routin that seems to be silly, but it works.

Here is the script:

ClipPut ("Tab" & " " & "Test")

$TESTTEXT=ClipGet()

ControlSetText("", "", 45, $TESTTEXT)

The Space between the two strings is a Tab. So In the User Interface appear little lines that are Tabs. When I copy the line and paste it into an Excel File it is seperated.

Thanks for all

Fabi

Share this post


Link to post
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
Sign in to follow this  
Followers 0