Guest hooi Posted December 12, 2003 Share Posted December 12, 2003 (edited) I have an Access application (called BMSApp) which is to send out email automatically on the 15th of every month. Right now, the application automatically activates Outlook and it displays a window (window name: Microsoft Outlook) and it waits for confirmation ('Yes' button) before it sends the email. Since I'm a complete newbie to AutoIt. I need help to do two things: 1. When the Outlook window appears, wait for 5 seconds, then use AutoIt to click on the 'Yes' button automatically 2. Once my Access client application is installed, it is accessible from Start->Programs-> BMS->BMSApp I need to be able to use AutoIt to change the Target field of the Properties of the application (right-click on the Properties of BMSApp) window to a new text string. Would appreciate any help available. Thanks... Edited December 12, 2003 by hooi Link to comment Share on other sites More sharing options...
CyberSlug Posted December 12, 2003 Share Posted December 12, 2003 (edited) ; Part 1; If the Yes Button is active then this should work:;5000 milliseconds = 5 secondsSleep(5000)Send("{SPACE}"); There is an alterantive way, but it requires knowing the button index....ControlEnable("Microsoft Outlook", "", "Button1") ControlLeftClick("Microsoft Outlook", "", "Button1") ; Maybe someone else with Outlook can tell you; Part 2Could you clarify? Why do you need to change the shortcut target?It might just be easier to create a new shortcut and delete the old one. the FileCreateShortcut function does this--well you'll also need FileDelete.I'll let another person fill in the details :-) Edited December 12, 2003 by CyberSlug Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
ad777 Posted June 29, 2022 Share Posted June 29, 2022 On 12/12/2003 at 12:53 PM, Guest hooi said: I need to be able to use AutoIt to change the Target field of the Properties of the application (right-click on the Properties of BMSApp) window to a new text string. Would appreciate any help available. Thanks... Ididn't tested, I don't know if it work but you can do the following: 1-use FileRead:to read exe text data 2-use StringReplace:to change text data from FileRead I.e description:example.. 3-use FileWrite:to write text data from StringReplace as name.exe iam ِAutoit programmer. best thing in life is to use your Brain to Achieve everything you want. Link to comment Share on other sites More sharing options...
Werty Posted June 29, 2022 Share Posted June 29, 2022 I know someone who will get really mad at you now.... Some guy's script + some other guy's script = my script! Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 30, 2022 Moderators Share Posted June 30, 2022 (edited) ad777, OK, end of any flex at all for you - your next act of stupidity will result in sanctions, so best not make any. M23 P.S. And reduce the height of your signature. Edited June 30, 2022 by Melba23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts