Jump to content

Recommended Posts

Posted

Hello,

I'm not sure exactly what I'm asking I admit, but has anyone else had any trouble with scripts that work for them, but don't seem to work for people you send them to? Just looking for any general advice about issues to watch out for. My script is:

Global $g_eventerror = 0

Global $oRemedy

Global $iSession = 0

$oMyError = ObjEvent("AutoIt.Error","MyErrFunc")

$oRemedy = ObjGet("", "Remedy.User.1")

$oRemedyForm = $oRemedy.OpenForm($iSession, "pscars01.ps.net", "Request Management", 1, True)

WinWaitActive("Microsoft Excel")

#include <Excel.au3>

$title = WinGetTitle("[active]")

$oExcel = _ExcelBookAttach ($title, "Title")

WinActivate("BMC Remedy User")

$oAccount = $oRemedyForm.GetField("Account")

$oAccount.Value = $account

Thank you very much for any suggestions you have!!

Posted

I'm not an expert, but I would guess that the ones you sent it to do not have AutoIt installed on their computers.

I believe if you open your script with SciTE editor, check the box to add constants and compile it,

your script should work.

Someone can correct me if I'm wrong...Posted Image

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...