Jump to content
Sign in to follow this  
mrmacadamia

What do you use if ctrl+a couldn't work

Recommended Posts

mrmacadamia

What do you use if you can't select some text in order to replace new one in some applications?

I want create some script to automate install some application.

I have this one application to install. But I'm stuck when the application ask me whether to install in default dir or different dir.

I want to choose different directory so i had to put the full path to replace the given path.

So I should delete the given path first then put the new path.

The problem is that, unlike other application that i tried, I can't select the whole text whether I use double click on my mouse, or using ctrl + A hotkey.

I could use {TAB} to select the text but maybe there is different approach.

thanks

Share this post


Link to post
Share on other sites
martin

What do you use if you can't select some text in order to replace new one in some applications?

I want create some script to automate install some application.

I have this one application to install. But I'm stuck when the application ask me whether to install in default dir or different dir.

I want to choose different directory so i had to put the full path to replace the given path.

So I should delete the given path first then put the new path.

The problem is that, unlike other application that i tried, I can't select the whole text whether I use double click on my mouse, or using ctrl + A hotkey.

I could use {TAB} to select the text but maybe there is different approach.

thanks

If TAB works then why not use it? You could also try something like

Send("{HOME}")
Send("+{END}")
Send("{DEL}")

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites
FireFox

@martin

I do not know if it's for SciTE but your code only select one line, so I have made one in order to select all text (not Ctrl+A of course)

Maybe I'm totally wrong because he's speaking about selecting whole text and your example is what he wants...

Anyway,

Send("{HOME}")
Send("{PGUP}")
Send("+{PGDN}")
Send("{DEL}")

Cheers, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
martin

@martin

I do not know if it's for SciTE but your code only select one line, so I have made one in order to select all text (not Ctrl+A of course)

Maybe I'm totally wrong because he's speaking about selecting whole text and your example is what he wants...

Anyway,

Send("{HOME}")
 Send("{PGUP}")
 Send("+{PGDN}")
 Send("{DEL}")

Cheers, FireFox.

You're right, I was only thinking in a (single) straight line :D

I would have suggested this otherwise

Send ("^{HOME}")
Send("+^{END}")
Send("{DEL}")

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites
SmOke_N

Something wrong with:

ControlSetText()?


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
martin

Something wrong with:

ControlSetText()?

Not a lot I shouldn't think :D .


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites
mrmacadamia

If TAB works then why not use it? You could also try something like

Send("{HOME}")
Send("+{END}")
Send("{DEL}")

thank you anyway...I just wanna know is there any alternative ways to do it.

I guess I'll use TAB like you said. >_<

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  

×