Search found 22 matches

by Tobias
Wed Apr 29, 2009 10:34 am
Forum: Beginners
Topic: how to get ExitWindowsEx to work properly
Replies: 2
Views: 4169

No there isn't (except for my ignorance, not being aware of this command). It is working like a charm with ShutDownWindows.

thanks Marcus.
by Tobias
Wed Apr 29, 2009 10:03 am
Forum: Beginners
Topic: how to get ExitWindowsEx to work properly
Replies: 2
Views: 4169

how to get ExitWindowsEx to work properly

Hi, I was looking for a way to shut down a PC after properly closing down a running program. As Windows functions is beyond me, I was very happy to find a post by JRL containing the following code: LibFunc>user32,ExitWindowsEx,EWEres,0,1 I've got the close-the-running-program-part working. However t...
by Tobias
Mon Feb 12, 2007 9:17 am
Forum: Technical / Scripting
Topic: Using flags (arguments) with a macro exe
Replies: 8
Views: 9541

Actually there are no spaces in the values I tested successfully with. Values that do have spaces in them, work partially. Only the part till the first space is imported correctly, anything after it is ignored. I'm not sure why, but it is sufficient for now (I tried adding more quotes, but that didn...
by Tobias
Mon Feb 12, 2007 9:02 am
Forum: Technical / Scripting
Topic: Using flags (arguments) with a macro exe
Replies: 8
Views: 9541

Marcus, I solved it. During my posting here, I also discussed this with the developers of WOW. They tried a few things and come up with the solution. For some reason I have to use the following argument: /var1=" %ON% " Note the quotes and the whitespace before and after %ON%. As only %ON% worked fin...
by Tobias
Mon Feb 12, 2007 8:19 am
Forum: Technical / Scripting
Topic: Using flags (arguments) with a macro exe
Replies: 8
Views: 9541

Marcus, I'm not sure where the question lies. I think it is Macro Scheduler, but it could be WOW. I know WOW can already send commands such as: c:\dataProcessor.exe data_file1.dat To make it more generic, %ON% replaces data_file1.dat. And that works fine too. I also know I can use arguments with mac...
by Tobias
Fri Feb 09, 2007 3:46 pm
Forum: Technical / Scripting
Topic: Using flags (arguments) with a macro exe
Replies: 8
Views: 9541

I was afraid of it. It is a little bit complicated. I have this program (let's call it WOW). WOW can send command-line commmands. These commands are macros with an argument. something like: c:\macro.exe argument1 I know I can can use: c:\macro.exe /var1=argument1 and then use var1 in the macro and t...
by Tobias
Fri Feb 09, 2007 11:12 am
Forum: Technical / Scripting
Topic: Using flags (arguments) with a macro exe
Replies: 8
Views: 9541

Using flags (arguments) with a macro exe

Hi, I've got a situation I cannot figure out myself. Hopefully someone else knows how to solve this. I am running a program from which I launch macros with flags (argument). The flag is used in the macro. So far no problem. However the flag is provided by the program launching the macro and the prog...
by Tobias
Fri Sep 08, 2006 7:01 am
Forum: Technical / Scripting
Topic: Repeat-until loop does not work
Replies: 15
Views: 18839

Hi, It seems I've got a working alternative. I've replace the Repeat with a Label tag and the Until with an If and a Goto statement. This seems to be working fine (I'm still testing though). Thanks everybody (especially JRL)! Marcus: I'm still interested in any kind of explanation you might have in ...
by Tobias
Thu Sep 07, 2006 1:42 pm
Forum: Technical / Scripting
Topic: Repeat-until loop does not work
Replies: 15
Views: 18839

I agree. I too believe the code is correct. And it works fine if you use notepad in stead of "avi2avi" and "avi to avi". For some reason the check at the end of the Repeat loop matches. So, the counter (letter L) matches the file_names_count. Looking at the watch list, reveals: L=1 file_names_count=...
by Tobias
Wed Sep 06, 2006 8:36 am
Forum: Technical / Scripting
Topic: Repeat-until loop does not work
Replies: 15
Views: 18839

Repeat-until loop does not work

Hi, I have this macro with two Repeat-Until loops. The strange thing about it is that one loop work fine, but the other not. For some reason it does not loop (it continues in the macro after executing the commands in the loop once). Does anyone have any idea why this second repeat-until loop does no...
by Tobias
Tue Jul 18, 2006 1:35 pm
Forum: Technical / Scripting
Topic: problem launching a program
Replies: 4
Views: 5765

Excellent suggestion, Marcus!!
Adding the 'change directory' command solved it.

thanks again!

(and, yes, I should not forget the WaitWindowOpen command)
by Tobias
Tue Jul 18, 2006 1:16 pm
Forum: Technical / Scripting
Topic: problem launching a program
Replies: 4
Views: 5765

The (relevant part of the) macro looks like this: run program>C:\Program Files\V One Multimedia\MS Video Maker\Kusu.exe Let>PosX=0 Let>PosY=0 GetCursorPos>Mx,My setfocus>MS Video Maker movewindow>MS Video Maker,PosX,PosY .... The first line is causing the problem. The part after 'run program>' works...
by Tobias
Tue Jul 18, 2006 7:32 am
Forum: Technical / Scripting
Topic: problem launching a program
Replies: 4
Views: 5765

problem launching a program

Hi, Another question, since my last issue was answered so quickly. ;-) I'm trying to lauch 2 programs (in different macros), using the Run Program command. For some reason both programs won't launch properly. One changes to a different mode and the other starts up, but shuts down again (I can only s...
by Tobias
Tue Jul 18, 2006 6:46 am
Forum: Technical / Scripting
Topic: Waitpixelcolor: how to handle mouse over highlights
Replies: 5
Views: 6789

Hi Guys,

I got it! Thanks for the help!
by Tobias
Mon Jul 17, 2006 3:26 pm
Forum: Technical / Scripting
Topic: Waitpixelcolor: how to handle mouse over highlights
Replies: 5
Views: 6789

The button is there. I need to get the color number of the button, but it changes when I point at it.

(thanks for the quick reply)
Sign up to our newsletter for free automation tips, tricks & discounts