Jump to content

Recommended Posts

Posted (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 by hooi
Posted (edited)

; Part 1

; If the Yes Button is active then this should work:

;5000 milliseconds = 5 seconds

Sleep(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 2

Could 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 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!
  • 18 years later...
Posted
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  

 

none

  • Moderators
Posted (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 by Melba23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...