Fabi Posted June 8, 2006 Posted June 8, 2006 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
fu2m8 Posted June 8, 2006 Posted June 8, 2006 (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 ) 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 June 8, 2006 by fu2m8
cppman Posted June 8, 2006 Posted June 8, 2006 (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 June 8, 2006 by CHRIS95219 Miva OS Project
Fabi Posted June 8, 2006 Author Posted June 8, 2006 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now