JohnBailey Posted March 9, 2007 Posted March 9, 2007 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
BigDod Posted March 9, 2007 Posted March 9, 2007 (edited) send(chr(58)) oÝ÷ ØGb¶·«y§i¢ËZºÚ"µÍÛÛÛÙ[ ][ÝÔØ]HÉ][ÝË ][ÝÉ][ÝÈ ][ÝÑY]I][ÝË ][ÝÐÎÌLÝ[ ÌLÙ[K ][ÝËJB Edited March 9, 2007 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
JohnBailey Posted March 9, 2007 Author Posted March 9, 2007 send(chr(58)) thanks! I feel like a yuts. I did a search for ASCII after reading your reply and found the list. thank you BigDod A decision is a powerful thing
seandisanti Posted March 9, 2007 Posted March 9, 2007 thanks! I feel like a yuts. I did a search for ASCII after reading your reply and found the list. thank you BigDodeverybody has days like that man, no worries.
JohnBailey Posted March 9, 2007 Author Posted March 9, 2007 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
MrCreatoR Posted March 9, 2007 Posted March 9, 2007 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 Russian Community My Work... Spoiler Projects: 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 ProgramUDFs: 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 Examples: 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 ) * === My topics === * ================================================== ================================================== AutoIt is simple, subtle, elegant. © AutoIt Team
JohnBailey Posted March 9, 2007 Author Posted March 9, 2007 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") 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
seandisanti Posted March 9, 2007 Posted March 9, 2007 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.
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