Sign in to follow this  
Followers 0
lalitmp

My scripts not working in Windows XP

4 posts in this topic

I have created one script with AutoIt v3.0.101 and coverted it to .exe file.

It works in Windows NT4.0, Windows 2000 but its not working (hangs) in Windows XP.

Can somebody suggest me why this is happening. :ph34r:

Thanks.

Share this post


Link to post
Share on other sites



I have created one script with AutoIt v3.0.101 and coverted it to .exe file.

It works in Windows NT4.0, Windows 2000 but its not working (hangs) in Windows XP.

Can somebody suggest me why this is happening.  :ph34r:

Thanks.

<{POST_SNAPBACK}>

Would probably be helpfull if you show the script portion were its hanging on....

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Here is my script - software installation for users

; ----------------------------------------------------------------------------

;

; AutoIt Version: 3.0

; Platform: Win9x / NT / 2000

; Author: Lalit Patil (IDM-GE-BVI)

; Script Function:

; App Install

;AutoItSetOption("MustDeclareVars", 1)

;AutoItSetOption("MouseCoordMode", 0)

;AutoItSetOption("PixelCoordMode", 0)

;AutoItSetOption("RunErrorsFatal", 0)

AutoItSetOption("TrayIconDebug", 0)

AutoItSetOption("TrayIconHide", 1)

; ----------------------------------------------------------------------------

; Script starts here

; ----------------------------------------------------------------------------

#include <GUIconstants.au3>

WinMinimizeAll()

Opt("GUICoordMode", 1)

Opt("GUINotifyMode", 1)

GUICreate(" :: AppInstall by IDM-GE-BVI ::", 300,260,)

; Create the controls

$button_1 = GUISetControl("button", "I&nstall", 190, 222, 80, 30)

$group_1 = GUISetControl("group", "Select to install", 30, 83, 240, 130)

$group_2 = GUISetControl("group", "Login details", 30, 2, 240, 78)

$radio_1 = GUISetControl("radio", "Autherware player (for CBT courses)", 40, 100, 190, 20)

$radio_2 = GUISetControl("radio", "SmartForce Player (for CBT courses)", 40, 120, 190, 20)

$radio_3 = GUISetControl("radio", "Flash Player 6.0 (for Six Sigma)", 40, 140, 190, 20)

$radio_4 = GUISetControl("radio", "Append Footer", 40, 160, 200, 20)

$radio_5 = GUISetControl("radio", "Winzip 9.0", 40, 180, 190, 20)

GuiSetControl("pic", "\\printsvr\SoftDump\AppInstall\image\Install.jpg", 205, 16, 20, 20)

GUISetControlEx($radio_1, $GUI_UNCHECKED)

GUISetControlEx($button_1, $GUI_DISABLE)

;GUISetControlEx($button_1, $GUI_FOCUS + $GUI_DEFBUTTON)

GuiSetControl("label", "User: " & @UserName, 40, 20, 165, 15)

GuiSetControl("label", "Computer: " & @ComputerName, 40, 40, 165, 15)

GuiSetControl("label", "Domain: " & @LogonDomain, 40, 60, 165, 15)

; Init our vars that we will use to keep track of GUI events

$radioval1 = 0 ; We will assume 0 = first radio button selected, 2 = last button

$radioval2 = 2

GuiShow()

;$msg = GuiMsg()

; In this message loop we use variables to keep track of changes to the radios, another

; way would be to use GuiRead() at the end to read in the state of each control

While 1

; $msg = GuiMsg(0)

$msg = GuiMsg()

GUISetControlEx($button_1, $GUI_ENABLE + $GUI_FOCUS + $GUI_DEFBUTTON)

Select

Case $msg = -3

Exit

Case $msg = $button_1

; MsgBox(0, "Default button clicked", $radioval1 )

RunAsSet("username", "Domain", "password")

If $radioval1 = 0 Then

RunWait("\\printsvr\SoftDump\Authorware plugin\macro7.EXE")

ElseIf $radioval1 = 1 Then

RunWait("\\printsvr\SoftDump\SmartForce\dyncli32.exe")

ElseIf $radioval1 = 2 Then

RunWait("\\printsvr\softdump\flash player\flashplayer6_winax.exe")

ElseIf $radioval1 = 3 Then

RunWait("\\printsvr\SoftDump\Append Footer\setup.exe")

ElseIf $radioval1 = 4 Then

RunWait("\\printsvr\SoftDump\WinZip\WZ90.EXE")

Else

MsgBox(16, " :: Software Install by IDM-GE-BVI :: ", "You selected invalid option" & @LF & "The program will exit now")

EndIf

RunAsSet()

WinMinimizeAllUndo()

Exit

Case $msg = $radio_1 OR $msg = $radio_2 OR $msg = $radio_3 OR $msg = $radio_4 OR $msg = $radio_5

$radioval1 = $msg - $radio_1

EndSelect

WEnd

Share this post


Link to post
Share on other sites

Here is my script - software installation for users

<{POST_SNAPBACK}>

What does the TrayIcon tell when it is hanging ?

It should give you a hint at what statement it is hanging...


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0