pop up box?

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
guest1234

pop up box?

Post by guest1234 » Tue Sep 28, 2004 7:10 pm

Hi. When i open one of my macros i made, i want it to start by showing a box that says START and REG. The start button starts the macro, and the REG button goes to a website. IS this possible to do in ms? Ca someone make up a code to do that? THNX

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Tue Sep 28, 2004 8:52 pm

That can be done with Macro Scheduler by using Dialog features.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

guest1234

Post by guest1234 » Wed Sep 29, 2004 12:39 am

i cant seem to understand the dialog thing

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Sun Oct 03, 2004 1:36 pm

Hi,

Here's a simple macro that does just what you want:


//Simple dialog with Start and Reg buttons
Dialog>Selector
Caption=Selection
Top=218
Width=190
Left=132
Height=79
Button=Start,8,8,75,25,1
Button=Reg,88,8,75,25,2
EndDialog>Selector

//Show the dialog and determine which button pressed
Show>Selector,choice
If>choice=1,runmacro
If>choice=2,gowebsite

//Put your macro code in the following subroutine
SRT>runmacro
MessageModal>Your macro code goes here!
END>runmacro

//This subroutine opens a website
SRT>gowebsite
VBSTART
Sub OpenPage(URL)
Dim IE
Set IE = CreateObject("InternetExplorer.Application")
IE.visible = 1
IE.navigate URL
End Sub
VBEND
VBRun>OpenPage,http://www.mjtnet.com/
END>gowebsite


Hope this helps ...
MJT Net Support
[email protected]

guest1234

Post by guest1234 » Wed Oct 06, 2004 6:33 pm

THNX

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts