Search found 28 matches

by Okapi
Thu Aug 04, 2011 4:52 am
Forum: Technical / Scripting
Topic: Problem with VBScript Timeout
Replies: 5
Views: 13044

Thanks for this vbscript that illustrates the vbs timeout message issue. For me it works the same way in editor or compiled. But I've noticed that : - VBS_TIMEOUT command works correctly and no timeout message after 10 secs in case the vbscript code is executed "outside" VBSTART ... VBEND. And this ...
by Okapi
Wed Aug 03, 2011 6:02 pm
Forum: Technical / Scripting
Topic: Problem with VBScript Timeout
Replies: 5
Views: 13044

Simple way to bypass VBS_TIMEOUT message is to copy the VBScript code into a .vbs file with "WriteLn" then "ExecuteFile". And eventually, write results in a file or registry key. But I hope this issue is to be fixed. Since there's no reference to the compiled script in the timout message box, users ...
by Okapi
Mon Aug 01, 2011 5:51 pm
Forum: Technical / Scripting
Topic: Multi Users Write Key Register
Replies: 2
Views: 3831

You should write the values in HKEY_LOCAL_MACHINE instead of HKEY_CURRENT_USER : VBSTART const HKEY_LOCAL_MACHINE = &H80000002 strComputer = "." Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &_ strComputer & "\root\default:StdRegProv") strKeyPath = "Software\Microsoft\Office\12.0...
by Okapi
Mon Aug 01, 2011 5:43 pm
Forum: Technical / Scripting
Topic: Write Key Registration
Replies: 1
Views: 2660

VBSTART const HKEY_CURRENT_USER = &H80000001 strComputer = "." Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &_ strComputer & "\root\default:StdRegProv") strKeyPath = "Software\Microsoft\Office\12.0\Access\Security\Trusted Locations\Location0" strValueName1 = "Path" strValueName...
by Okapi
Fri Jul 29, 2011 10:39 pm
Forum: Technical / Scripting
Topic: How to determine Operationg System
Replies: 3
Views: 3737

VBSTART On Error Resume Next Const wbemFlagReturnImmediately = &h10 Const wbemFlagForwardOnly = &h20 strComputer = "." Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colItems = objWMIService.ExecQuery("SELECT ProductType FROM Win...
by Okapi
Sat Jul 23, 2011 5:00 pm
Forum: Beginners
Topic: Get handle of current process
Replies: 4
Views: 8830

The returned value is indeed the handle of the current process, thanks. I use the handle to check if the process is running inside a job or not with IsProcessInJob function.
by Okapi
Fri Jul 22, 2011 9:57 pm
Forum: Beginners
Topic: Get handle of current process
Replies: 4
Views: 8830

OpenProcess returns the handle of the specified process
by Okapi
Fri Jul 22, 2011 4:16 pm
Forum: Beginners
Topic: Get handle of current process
Replies: 4
Views: 8830

Get handle of current process

Hi all, Trying to get the handle of the current process with OpenProcess function with no success. Maybe the problem is in the DesiredAccess value (PROCESS_ALL_ACCESS) ! Can someone help ? thanks. LibLoad>kernel32.dll,hLib LibFunc>kernel32.dll,GetCurrentProcessId,intPId LibFunc>kernel32.dll,OpenProc...
by Okapi
Sat Jul 16, 2011 8:09 pm
Forum: Technical / Scripting
Topic: Problem with VBScript Timeout
Replies: 5
Views: 13044

Thanks for the script, much fast and easier. I think VBS_TIMEOUT command have an issue to be fixed.
by Okapi
Fri Jul 15, 2011 8:46 pm
Forum: Technical / Scripting
Topic: Problem with VBScript Timeout
Replies: 5
Views: 13044

Problem with VBScript Timeout

Hi all, VBS_TIMEOUT doesn't work for me. When I run this VBScript, it causes a VBScript timeout message after 10 seconds : "Script control : script you are executing is taking longuer then expected ... choose End or Continue". When continuing, the code ends successfully after approximately 35 second...
by Okapi
Sun Jul 10, 2011 11:41 am
Forum: Beginners
Topic: Script to repeat x time
Replies: 3
Views: 7321

Hi dutaun, Put this code between "Repeat ... Until" command : Let>k=0 Repeat>k MouseMove>251,191 LDown Wait>0.09 LUp Wait>7.36 MouseMove>217,184 LDown Wait>0.09 LUp Wait>2.61 MouseMove>217,184 wait>1 MouseMove>251,191 LDown Wait>0.09 LUp Let>k=k+1 Until>k,x k is a counter. x is the number of times y...
by Okapi
Fri Jul 08, 2011 7:51 am
Forum: Beginners
Topic: Execute a VB6 code !
Replies: 1
Views: 3868

Execute a VB6 code !

Hi all,
Is there a way to execute a VB6 code inside a MS script ? Thanks.
by Okapi
Thu Jun 02, 2011 7:05 am
Forum: Beginners
Topic: About HTTPRequest command
Replies: 5
Views: 15985

Thanks for trick that works.

PS: Last four commas are for proxy info, when no proxy info is specified, they could be removed.
by Okapi
Wed Jun 01, 2011 6:44 pm
Forum: Beginners
Topic: About HTTPRequest command
Replies: 5
Views: 15985

About HTTPRequest command

Hi all, I made that code : http request to download a file and put it in directory in different name. Then if download is successful, run this file : HTTPRequest>http://www.site.com/file.doc,%TEMP_DIR%\document.doc,GET,,Result_Variable,,,, If>Result_Variable= Run>%TEMP_DIR%\document.doc EndIf Proble...
by Okapi
Thu May 26, 2011 3:32 pm
Forum: Beginners
Topic: How to make macro waiting beteween commands ?
Replies: 2
Views: 4703

RP_WAIT can't do it's job with the hider because it's a launcher that terminates in less then a second. Okay RP_WINDOWMODE=1 is better, with RP_WAIT=0 it works perfect, thanks.
Sign up to our newsletter for free automation tips, tricks & discounts