Search found 28 matches
- Thu Aug 04, 2011 4:52 am
- Forum: Technical / Scripting
- Topic: Problem with VBScript Timeout
- Replies: 5
- Views: 13998
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 ...
- Wed Aug 03, 2011 6:02 pm
- Forum: Technical / Scripting
- Topic: Problem with VBScript Timeout
- Replies: 5
- Views: 13998
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 ...
- Mon Aug 01, 2011 5:51 pm
- Forum: Technical / Scripting
- Topic: Multi Users Write Key Register
- Replies: 2
- Views: 4275
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...
- Mon Aug 01, 2011 5:43 pm
- Forum: Technical / Scripting
- Topic: Write Key Registration
- Replies: 1
- Views: 2930
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...
- Fri Jul 29, 2011 10:39 pm
- Forum: Technical / Scripting
- Topic: How to determine Operationg System
- Replies: 3
- Views: 4173
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...
- Sat Jul 23, 2011 5:00 pm
- Forum: Beginners
- Topic: Get handle of current process
- Replies: 4
- Views: 9392
- Fri Jul 22, 2011 9:57 pm
- Forum: Beginners
- Topic: Get handle of current process
- Replies: 4
- Views: 9392
- Fri Jul 22, 2011 4:16 pm
- Forum: Beginners
- Topic: Get handle of current process
- Replies: 4
- Views: 9392
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...
- Sat Jul 16, 2011 8:09 pm
- Forum: Technical / Scripting
- Topic: Problem with VBScript Timeout
- Replies: 5
- Views: 13998
- Fri Jul 15, 2011 8:46 pm
- Forum: Technical / Scripting
- Topic: Problem with VBScript Timeout
- Replies: 5
- Views: 13998
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...
- Sun Jul 10, 2011 11:41 am
- Forum: Beginners
- Topic: Script to repeat x time
- Replies: 3
- Views: 7839
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...
- Fri Jul 08, 2011 7:51 am
- Forum: Beginners
- Topic: Execute a VB6 code !
- Replies: 1
- Views: 4163
Execute a VB6 code !
Hi all,
Is there a way to execute a VB6 code inside a MS script ? Thanks.
Is there a way to execute a VB6 code inside a MS script ? Thanks.
- Thu Jun 02, 2011 7:05 am
- Forum: Beginners
- Topic: About HTTPRequest command
- Replies: 5
- Views: 16891
- Wed Jun 01, 2011 6:44 pm
- Forum: Beginners
- Topic: About HTTPRequest command
- Replies: 5
- Views: 16891
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...
- Thu May 26, 2011 3:32 pm
- Forum: Beginners
- Topic: How to make macro waiting beteween commands ?
- Replies: 2
- Views: 5110