Forum Index  ViceVersa HOME         FAQ and Knowledge Base

 FAQForum FAQ   SearchSearch Forum  RegisterRegister 
 ProfileProfile   Log inLog in 

script local_auto_end.vbs for sound
Goto page 1, 2  Next
 
Post new topic   Reply to topic     Forum Index -> Support
Author Message
karam



Joined: 31 Dec 2012
Posts: 10

PostPosted: Sun Nov 01, 2015 3:38 pm    Post subject: script local_auto_end.vbs for sound Reply with quote

Hi,
It is impossible to make and start a script. It is necessary that after synchronization there was a sound and a window: "Synchronization took place successfully".
According to the instruction connected a script, but VVEngine v2.1 (Build 2105) does not finish work. It is reported that the script is executed - Status Details.
Possibly, I incorrectly made a script.

"HomeDesk_MobHDD_Docum_auto_end.vbs"

Code:
Set WMP = WScript.CreateObject("MediaPlayer.MediaPlayer","WMP_")
WMP.Open "c:\Windows\Media\Windows Exclamation.wav"
WMP.Play
MsgBox("Synchronization took place successfully " & WScript.ScriptFullName)
WScript.Sleep 100


I ask to help.
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8763

PostPosted: Mon Nov 02, 2015 12:50 am    Post subject: Reply with quote

Hi, can you please paste the profile log ? Is the profile hanging when running this script ? thanks
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com
Back to top
karam



Joined: 31 Dec 2012
Posts: 10

PostPosted: Mon Nov 02, 2015 2:46 pm    Post subject: Reply with quote

After start of a profile in VVEngine copying was made. Worked a sound from a script (but the window of the message did not appear).
And the profile did not come to the end. Therefore stopped manually.
Did different options of a script, but result identical.
But I do not know how to attach a log file to the message.
Tried to insert file reference, located on other server, but your site did not resolve it.

Contains in the last lines of the ravine:
2015-11-01 21:52:02 : Running script c:\Program Files\ViceVersa Pro\GlobalScripts\syncr_end.vbs
2015-11-01 21:57:01 : Script timeout.
2015-11-01 21:57:01 : Script Output:
2015-11-01 21:57:01 : ‘ҐаўҐа б業 аЁҐў Windows (Microsoft R) ўҐабЁп 5.8
2015-11-01 21:57:01 : c Љ®аЇ®а жЁп Њ ©Єа®б®дв (Microsoft Corp.), 1996-2001. ‚ᥠЇа ў § йЁйҐ­л.
2015-11-01 21:57:01 : End Script Output
2015-11-01 21:57:01 : Failed deleting script temp file C:\Windows\TEMP\~scBFBB.tmp
2015-11-01 21:57:01 : Exit Code: 4. Execution canceled by user. [ERROR]
2015-11-01 21:57:01 : ************************************************************

VVEngine is started from under the user with common laws (Windows 7 rus)
The script if to start manually, works normally. And among the user with common laws.
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8763

PostPosted: Mon Nov 02, 2015 10:42 pm    Post subject: Reply with quote

Hi, messages would not appear if run from VVEngine because VVEngine runs all profiles in the background without user interaction.
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com
Back to top
karam



Joined: 31 Dec 2012
Posts: 10

PostPosted: Tue Nov 03, 2015 1:25 pm    Post subject: Reply with quote

It, of course, badly.
1. A problem also that work of the VVEngine profile does not come to the end automatically if the script stated above is connected.

How to make that after synchronization worked a script, and VVEngine successfully finished work in a profile.

2. Whether it is possible to make so that after all messages appeared. Can think up something in a script.
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8763

PostPosted: Tue Nov 03, 2015 11:33 pm    Post subject: Reply with quote

Hi, if you want the script message to appear you will need to use the VVScheduler tool (included in ViceVersa) and use the option /dialogautoexec
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com
Back to top
karam



Joined: 31 Dec 2012
Posts: 10

PostPosted: Wed Nov 04, 2015 2:16 am    Post subject: Reply with quote

Thanks for the answer.
But problems remain.
1. How to be with a problem 1 of the previous message

2. For start of my profiles I do not use VVScheduler. My profiles are started automatically after connection of USB-HDD (setup in VVEngine). As far as I know, VVScheduler cannot be configured on start of a task after connection of USB-HDD.
Whether it is possible to enter into VVEngine something similar to the option/dialogautoexec?
Back to top
karam



Joined: 31 Dec 2012
Posts: 10

PostPosted: Mon Nov 09, 2015 7:13 am    Post subject: Help Reply with quote

Hello.
Problems remained not solved. I ask to help.
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8763

PostPosted: Wed Nov 11, 2015 10:48 pm    Post subject: Reply with quote

Hi , VVEngine only runs tasks completely hidden, it does not support having dialogs in the scripts. you could send an e-mail at the and of execution instead (see ViceVersa profile settings). thanks
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com
Back to top
karam



Joined: 31 Dec 2012
Posts: 10

PostPosted: Thu Nov 12, 2015 2:13 pm    Post subject: How to be? Reply with quote

Thanks for the answer.
In that case the question 2 is removed (about a message window from a script).
But the question 1 is actual.
Why work of the VVEngine profile does not come to the end if the script only with a sound is provided in a profile.

Code:
Set WMP = WScript.CreateObject("MediaPlayer.MediaPlayer","WMP_")
WMP.Open "c:\Windows\Media\Windows Exclamation.wav"
WMP.Play
Do
   WScript.Sleep 100
Loop Until WMP.playState = 1


It would be desirable that after connection of USB-HDD the profile was started, and then there was either a sound, or a window about the end of process.
Whether VVEngine can finish for this purpose?
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8763

PostPosted: Thu Nov 12, 2015 9:56 pm    Post subject: Reply with quote

Are you running VVEngine as a service? Under which account?
Does the script work correctly when the profile is run with
ViceVersa?
thanks
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com
Back to top
karam



Joined: 31 Dec 2012
Posts: 10

PostPosted: Fri Nov 13, 2015 2:24 pm    Post subject: ViceVersa does not work Reply with quote

I have Windows 7 rus.
VVEngine is started as service.
As a rule, I work with the rights of the ordinary user.
If to start a script from the Explorer, it works normally.
If to start a script from ViceVersa, after synchronization there is a sound and ViceVersa ceases to respond. For closing of ViceVersa it is necessary to use a task manager.
ViceVersa is always started with the rights of the administrator (even if to start from under login with common laws).
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8763

PostPosted: Sun Nov 15, 2015 11:23 pm    Post subject: Reply with quote

Hi, thanks, it must be an issue with the sound in the script and running the profile (and the script) as a service (services have no console available).
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com
Back to top
karam



Joined: 31 Dec 2012
Posts: 10

PostPosted: Mon Nov 16, 2015 1:19 pm    Post subject: What's next? Reply with quote

Hi, thanks, there are any ideas to solve a problem?
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8763

PostPosted: Tue Nov 17, 2015 12:41 am    Post subject: Reply with quote

Services cannot interact with the desktop (e.g. sounds , messages, etc). If you want to have sound / messages in the end script, you should run VVEngine as a normal start-up program instead of a service. Is that a possibility in your setup? thanks
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com
Back to top
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Support All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group
Copyright © TGRMN Software. TGRMN Software products: