shaidyn
-
Posts
14 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by shaidyn
-
-
Hi there, folks,
I'm making a little macro to launch various versions of an application I have. I'd like to set the default choice of the multiple choice menu to B. I've read the help file and the FAQ and the forum post, and they all say the same thing: Variable set string %T[1]% to B and you're golden.
The problem is, I've done that (or at least I think I have) and it's not working. Here's my macro:
<VARIABLE SET STRING Option="\x00" Destination="%T[1]%" Value="B" NoEmbeddedVars="FALSE"/>
<MULTIPLE CHOICE MENU Style="\x00" Result="\x00" Dest="%version%" Title="Policy Manager Launcher" Prompt="Which version of CA Policy Manager would you like to launch?" Options="9.1\r\n9.2\r\n9.3" Left="Center" Top="Center" Monitor="0" Width="443" Height="296" OnTop="TRUE" Columns="Auto"/>
<SWITCH Variable="%version%"/>
<CASE Value="B"/>
<ACTIVATE OR LAUNCH Title="CA API Gateway - Policy Manager 9.2.00" Exact_Match="FALSE" Wildcards="FALSE" Path="C:\\Program Files (x86)\\CA Technologies\\CA API Gateway Policy Manager 9.2.00.6809\\CA API Gateway Policy Manager.exe" Mode="\x00" Default_Path="TRUE" Wait="1" Wait_For_Program="12"/>
<END CASE/>
<END SWITCH/>If I've missed something simple, which I hope, please let me know. If not, I'd love some help getting the multiple choice menu to have the second option, 9.2, pre-selected.
Thanks
-
Hi there, folks,
I have a macro that opens applications using the "Program Launch" command, and it works fine.
I took one of said applications and made a shortcut for it, with the same name.
I opened the Program Launch command window, rebrowsed to the location, and selected the shortcut. It changed the name to "Notepad.exe.lnk". When I run the macro, I get the following error:
The following error was encountered:
The program could not be launched "[File Path]\Notepad.exe.lnk"
I know the file is there, and I know the shortcut and application both work. I can run the macro pointing at the application, but not the shortcut.
Can macro express not launch shortcuts?
Thanks.
-
It's not in a web browser, so I'm not sure what it could be. Here's a picture of the error:
Everything else on my machine doesn't seem to have a problem.
-
Hi there,
I'm trying to make a macro using a control variable. I lauch the utility, drag the purple X over the window, and it fills in something like this in the details:
> .
- [Program]
When I hit okay to save the control details to the variable, it says "You must first select a control. Please correct."
How do I grab a control if the program's developers didn't give it a name?
-
Very much a noob question, but I can't figure it out.
If I want macro express to press a button, it's easy as pie, I use text type. However, how can I make macro express hold one key down for a length of time? For example, how would I hold down the k button for 5 seconds?
Thanks!
-
Closing the ME window worked perfectly. Thank you for the help!
-
Hi there! If I have macro express running in the background, and am playing world of warcraft, pressing F1 brings up the Macro express help. Suspending macro express does not stop this. Any ideas?
-
I'm considering using macro express (one of my favourite tools) to interact with a number of online games I play. The purpose is not so much to cheat, as it is to challenge myself.
Does anyone have any experience with such? Are there issues with lag, with controls, windows, that sort of thing? And since the program simply sends signals to mouse and keys same as the input devices themselves would, I wouldn't expect that it's detectable. Anybody come into any trouble?
I mostly play wow, but a little warhammer too, nwo.
-
??
I'm not looking for a number as a variable..
this a example is purely for example sake.
i have an online form with many fields that I am filling our online. the information that will go into the forms are contained in a comma separated text file, which happens to be an Excel csv file.
for example, lets say I have 5 fields.
the 1st field is for a Name the 2nd field is for some thing age, the 3rd is for something else the ... so on and so on..
the csv file loads every time the form filling starts at field 1 (Name Field).. and every time the form filling starts it loads the variables again but moves to the next row in the csv..
row A of the csv is T1 row 2 of the csv is T2 so on and so on
each field in the form is assigned a variable and the variable is derived from the csv file..
I want T1 T2 and T3 to be names in the csv, (the names are already filled in csv) and currently the form takes the name from the T1 variable in the csv and puts it in the Name field of the form
I want to assign the Name field a random value of T1 T2 or T3 how do i do it
HERE IS HOW THE FILE IS NOW, and work great!
THIS IS THE FILE FORMAT I WANT TO USE
The Macro will RANDOMLY choose one of the names from each line in -- other words it will randomly choose T1, T2, or T3 and assign it to the Name Filed in the form..
I tried to be as illustrative as possible..
here is the current command text
Variable Set Integer %N1% from Prompt
Variable Modify Integer: %N1% = %N1% - 1
Repeat Prompt Start (Prompt for repeat count at macro play time)
Variable Modify Integer: %N1% = %N1% + 1
// HERE IS WHERE WE LOAD "T" VARIABLES
ASCII File Begin Process: "form_file.csv" (Comma Delimited Text )
ASCII File End Process
Web Site: www.whatever.com [internet Explorer - Wait to load]
Window Maximize: Current Window
Wait For Window Title: "form page"
Delay 1 Seconds
// TYPE OUT NAME
Text Type: %T1%<TAB>
Delay 1 Seconds
// TYPE OUT AGE
Text Type: %T2%<TAB>
Delay 1 Seconds
// TYPE JOB TITLE
Text Type: %T3%<TAB>
///////////////////////////////////////////////
THIS IS WHAT I WANT
Variable Set Integer %N1% from Prompt
Variable Modify Integer: %N1% = %N1% - 1
Repeat Prompt Start (Prompt for repeat count at macro play time)
Variable Modify Integer: %N1% = %N1% + 1
// HERE IS WHERE WE LOAD "T" VARIABLES
ASCII File Begin Process: "form_file.csv" (Comma Delimited Text )
ASCII File End Process
Web Site: www.whatever.com [internet Explorer - Wait to load]
Window Maximize: Current Window
Wait For Window Title: "form page"
Delay 1 Seconds
// TYPE OUT NAME
Text Type: %T1% OR %T2% OR %T3% (<<-- **RANDOMLY CHOOSE**) <TAB>
Delay 1 Seconds
// TYPE OUT AGE
Text Type: %T4%<TAB>
Delay 1 Seconds
// TYPE JOB TITLE
Text Type: %T5%<TAB>
T1 is already my variable I use for my names as you can see...
I want to modify and make T2 and T3 variable for names too
i know i would have to bump the current T2 and T3 variables up a number but that is besides the point..
Once I fill the T2 and T3 fields with names.. i want the Macro to randomly choose T1 or T2 or T3 to be used to fill in the name field of my form..
\\\\\\\\\\\\\\\\\\\
ok thats as descriptive as i can be..
keep in mind this form filling scenario with names and age job description i just made up for a example..
THANK YOU
Chris
Text Type: %T1% OR %T2% OR %T3% (<<-- **RANDOMLY CHOOSE**) <TAB>
This is how I'd accomplish this.
Set Integer N90 random, 0-2.
If variable N90=0
Text type T1
End if
If variable N90=1
Text type T2
End if
If variable N90=2
Text type T3
End if
But I'm a psycho for logic commands, so it could just be me.
-
Hi there peoples,
I run macro express 3.4b, build one, 3.4.2.1 (this is from the About option).
I'm not sure what my OS is, but it's not 95 and it's not Vista, it's somewhere in between.
Recently, whenever I click on 'all categories' to view my whole list of macros, the program crashes. It gives me a little box that says 'fatal' error and asks me to report the error. But I can't fix it, I can't make it go away, and I really need to be able to view and organize all my macros.
Has anybody else come across this error? Is there any way to fix it?
-
Hi there!
I know I can make a macro that goes off as soon as a window title is on top, or a specific control has focus. however, is it possible to make a macro, that is scheduled to go off, when a window pops up, but is hidden behind other windows.
I have a program that asks for prompts, but those prompts don't steal focus. I wand a macro that will note as soon as one of them shows up, go to it, hit enter, and then go back to what I was doing.
Is that possible?
-
Hmmm, it seems like I've opened quite the can of worms. Thanks so much for the information so far, it looks like my macro building is about to move to the next level.
One thing that I'm missing is how to make macro express recognize the hex line breaks so that I can modify them as I see fit.
I want to turn this:
Tom
Dick
Harry
into this:
Tom,Dick,Harry
What I have right now is this:
Clipboard Copy
Variable Set String %T1% from Clipboard
Wait Left Mouse Click
Text Type: %T1%
<CLIPC><TVAR2:01:03:><WAITLM:000><TEXTTYPE:%T1%>
Somewhere in that I need it to recognize the carriage returns and turn them into commas. I'm a bit lost still. Any advice?
-
Hey there!
This is my first post, so my apologies if this topic has been widely discussed.
I have a macro that I want to copy a list of names, and then remove all the carriage returns with commas, so that it can be brough into an existing excell spreadsheet without heavy modification.
Right now I highlight the text, run the macro, and it copies it into the clipboard, then assigns it to %T1%. I've tried a few things, but all I can do is remove the CR/LF, I can't get the macro to insert commas where the CRs used to be.
It's late and I'm tired, but I hope there's a way to do this.
Multiple Choice Menu Default Value Not Working
in Macro Express and Macro Express Pro
Posted
Much obliged. I suppose I thought the %version% variable didn't exist until line two, so I couldn't reference it in line one. Thanks for the pointer. It works smoothly now.