Jump to content

send :


Recommended Posts

I don't know how to search the forums using one character (eg : ) , so I started a thread. My apologies if this already exists. Mods can let me know and just remove this one.

I'm wanting to figure out how to send : without having to use shiftdown shiftup. I tried send('{:}'), but that doesn't do the trick.

I'm wanting to use this when sending file save locations. Doing something like this ControlSend("Save As", "" , "Edit1", "C:\temp\file.txt") is inconsistent and sometimes will type C;\temp\file.txt

A decision is a powerful thing
Link to comment
Share on other sites

send(chr(58))
oÝ÷ ØGb¶·«y§i¢ËZºÚ"µÍÛÛÛÙ[
    ][ÝÔØ]HÉ][ÝË  ][ÝÉ][ÝÈ    ][ÝÑY]I][ÝË ][ÝÐÎÌLÝ[  ÌLÙ[K ][ÝËJB

Edited by BigDod


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
Share on other sites

everybody has days like that man, no worries.

thanks cameronsdad for the encouragement It's definitely one of those days

I'm still getting the same issue which is totally odd.

This is my exact script (striped down)

$window = "Save As"
ControlSend($window,"","Edit1","i"&chr(58)&"\Download files\testing")
A decision is a powerful thing
Link to comment
Share on other sites

If you want to set text of “Save As” window, maby you can try like this (its faster i think):

ControlSetText("Save As", "", "Edit1", "C:\temp\file.txt")

 

Spoiler

Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1

AutoIt_Rus_Community.png AutoIt Russian Community

My Work...

Spoiler

AutoIt_Icon_small.pngProjects: ATT - Application Translate Tool {new}| BlockIt - Block files & folders {new}| SIP - Selected Image Preview {new}| SISCABMAN - SciTE Abbreviations Manager {new}| AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize Program

AutoIt_Icon_small.pngUDFs: OnAutoItErrorRegister - Handle AutoIt critical errors {new}| AutoIt Syntax Highlight {new}| Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF
 
AutoIt_Icon_small.pngExamples: 
ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation Demo

Like the Projects/UDFs/Examples? Please rate the topic (up-right corner of the post header: Rating AutoIt_Rating.gif)

* === My topics === *

==================================================
My_Userbar.gif
==================================================

 

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

Link to comment
Share on other sites

If you want to set text of Save As window, maby you can try like this (its faster i think):

ControlSetText("Save As", "", "Edit1", "C:\temp\file.txt")

:whistle: I didn't even think about that for Save As windows!! I prefer SetText over Send for the speed reason AND that did it! I guess the speed was causing problems. I'd like to know why though.

A decision is a powerful thing
Link to comment
Share on other sites

:whistle: I didn't even think about that for Save As windows!! I prefer SetText over Send for the speed reason AND that did it! I guess the speed was causing problems. I'd like to know why though.

Any reason without seeing more code would just be a guess, but my guess would be that the save as window was still refreshing the explorer view when the Send() was executing and it missed the keystroke(s) because of that.
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...