Jump to content

Search the Community

Showing results for tags 'envset envupdate envget'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. I'm trying to use environment variables to store a checkbox setting between program runs. The use of EnvGet and EnvSet seems clear enough, but they don't seem to actually do anything. Adding EnvUpdate() to the code seems to make the program permanently hang (in the full version) or take 25 seconds (in the test version below), but still, the environment variable isn't set so the next time I run it it comes up blank, and running SET from a command prompt doesn't show it as existing. This happens whether I run the script from SciTE or as a compiled executable. In the full program when I ran the compiled executable including EnvUpdate, the program hung, and after killing it I was unable to delete the .exe because Windows said it's still open in Windows Error Reporting, had to restart the computer. Actually, in the full version, though I said it permanently hung it might have come back eventually, I didn't retry that as the autoit script is in turn called by another program and all of that takes a long time to set up. $printopt = EnvGet("KC2ST_PRINTOPT") MsgBox(262144, 'Debug line ~' & @ScriptLineNumber, 'Selection:' & @CRLF & '$printopt' & @CRLF & @CRLF & 'Return:' & @CRLF & $printopt) ;### Debug MSGBOX $printopt = MsgBox(4097, "choose option", "ok to print, cancel to skip") If ($printopt = 2) Then $printopt = 0 MsgBox(262144, 'Debug line ~' & @ScriptLineNumber, 'Selection:' & @CRLF & '$printopt' & @CRLF & @CRLF & 'Return:' & @CRLF & $printopt) ;### Debug MSGBOX EnvSet("KC2ST_PRINTOPT", $printopt) EnvUpdate() MsgBox(4096, "result", EnvGet("KC2ST_PRINTOPT") & @crlf & "@error = " & @error)
×
×
  • Create New...