Search found 24 matches

by IanSmith
Tue Jan 20, 2009 3:32 pm
Forum: General Discussion
Topic: Building an application around MacroScheduler?
Replies: 4
Views: 7006

I wrote a number of applications for a large bank in the UK a couple of years ago. I was a problem solver for a large roll out, and I used MS to extract security certificates (the problem in the testimonials section), remote into machines to audit data volumes and a number of other wee tasks. I foun...
by IanSmith
Mon Aug 07, 2006 9:44 am
Forum: Technical / Scripting
Topic: Identical code giving errors...
Replies: 3
Views: 5702

Hi Marcus,

You were right - I had placed a 1 as a return var for a writeln...I'll be slapping myself later.

Many thanks, Ian
by IanSmith
Fri Aug 04, 2006 12:05 pm
Forum: Technical / Scripting
Topic: Identical code giving errors...
Replies: 3
Views: 5702

Eye thangoo. I'm out of the office till Monday, but I'll give that a shot.

Take care, Ian
by IanSmith
Fri Aug 04, 2006 9:10 am
Forum: Technical / Scripting
Topic: Identical code giving errors...
Replies: 3
Views: 5702

Identical code giving errors...

Hi all, I have to say I'm scoobied with this one. I've revisited some code from a year ago, and two identical loops are giving very different results... Loop one is this: let>clear1=1 repeat>clear1 let>extcount[%clear1%]=0 let>size[%clear1%]=0 add>clear1,1 writeln>c:\datacheck\progress.txt,null,Clea...
by IanSmith
Mon May 08, 2006 3:21 pm
Forum: Technical / Scripting
Topic: INvoking Run As in XP
Replies: 2
Views: 4170

INvoking Run As in XP

Hello all, Quick question; has anyone had any luck invoking Run As from a command line? I need to open a control panel applet (.cpl) with elevated privileges. I know that you cannot pass the password directly, and have to enter that into a dialogue box, but I'm looking for a way to start the journey...
by IanSmith
Tue Mar 07, 2006 9:38 am
Forum: Technical / Scripting
Topic: How can I detect an inactive (grey-ed out) menu?
Replies: 10
Views: 12128

It will depend on how fast your window will usually open (I've had the same problem in the past). Let's say your ALT+V window pops up very quickly - you would only need a timeout of one second to spot whether nothing happened; if the button was not greyed out the window will pop up and the script co...
by IanSmith
Fri Feb 03, 2006 9:20 am
Forum: General Discussion
Topic: How to defeat Shift-Esc
Replies: 10
Views: 16392

Morning Dick, Fair point :) However, the users only know about Shift+Escape if they hover the mouse over the flashing cog and wait. If they have the nous to do that, they probably have the knowledge to bring up task manager and kill it that way. Take care, Ian (In Devil's Advocate mode, it would app...
by IanSmith
Thu Feb 02, 2006 10:31 am
Forum: General Discussion
Topic: How to defeat Shift-Esc
Replies: 10
Views: 16392

One thing that pops to mind; some users might not have access to task manager, or stop process...

Take care, Ian
by IanSmith
Mon Jan 23, 2006 5:04 pm
Forum: Beginners
Topic: How to close window using GetWindowText
Replies: 5
Views: 8310

Bob, is Finished the name of the window, or the text he's looking for? If it's just the text wwo won't help (although I defer to your greater knowledge...) Things to think about; is the cursor an hourglass when the app is running? If so, you could use the WaitCursorChanged (wcc) command to test for ...
by IanSmith
Thu Jan 19, 2006 9:55 am
Forum: Enhancement Suggestions
Topic: Error trapping
Replies: 5
Views: 12263

Yay! The second request was a follow on from the first. At the moment, my current script is a nudge under 600 lines, and I got an error. In order to find the line that caused the error I had to step through many of those hundreds of lines to get to the nasty bit (which is a tad tedious, and even wor...
by IanSmith
Wed Jan 18, 2006 4:20 pm
Forum: Enhancement Suggestions
Topic: Error trapping
Replies: 5
Views: 12263

Error trapping

Morning all, I'm not sure if this has been covered, but today's coding expedition popped these suggestions into my head: Error messages give the line number of the error. It's fun and games stepping through several hundred lines of code to find the bit that fell over. If the error message had giving...
by IanSmith
Fri Jan 06, 2006 10:48 am
Forum: Enhancement Suggestions
Topic: Debugging Ideas
Replies: 6
Views: 11970

Hi Marcus,

Can I second the request for a 'start from the start' button? I know we can jump to the top of the script, but when you are working with an eight hundred line script and no wheel mouse it can be a pain :)

Take care, Ian
by IanSmith
Tue Dec 13, 2005 9:28 am
Forum: Technical / Scripting
Topic: if soundwave.wav plays then send character/test>
Replies: 10
Views: 13051

Woo - sorry if an offhand comment caused offence; I was reminded of the bloke earlier this year who asked someone to write a macro for free to change gear in a driving game he was playing...

Take care, Ian
by IanSmith
Mon Dec 12, 2005 3:13 pm
Forum: Technical / Scripting
Topic: if soundwave.wav plays then send character/test>
Replies: 10
Views: 13051

The crudest way to do this would be to monitor the last access time of the wav file - but be aware that this has an accuracy of one minute...if you are trying to get a script to play a game for you it might be better to learn to play the game! Anyway, you could try this is a loop: Run>cmd.exe /c dir...
by IanSmith
Wed Nov 23, 2005 11:01 am
Forum: Technical / Scripting
Topic: Minimise all windows
Replies: 5
Views: 6920

Thanks for that - ironically I remember discussing this at the time...

Thanks, Ian
Sign up to our newsletter for free automation tips, tricks & discounts