Jump to content

Floating point error, In an example file au3


Recommended Posts

; List all processes
$list = ProcessList()
for $i = 1 to $list[0][0]
  msgbox(0, $list[$i][0], $list[$i][1])
next

; List just notepad.exe processes
$list = ProcessList("notepad.exe")
for $i = 1 to $list[0][0]
  msgbox(0, $list[$i][0], $list[$i][1])
next

I ran this, and i get the normal floatingpoint error:

Posted Image

Edited by jaenster

-jaenster

Link to comment
Share on other sites

I modified the code a bit to output items to console instead of messagebox. Everything worked fine for me as well.

Modified code:

; List all processes
$list = ProcessList()
    ConsoleWrite('List ALL processes'&@CRLF)
for $i = 1 to $list[0][0]

  ConsoleWrite($list[$i][0]& ' '& $list[$i][1]&@CRLF)
next
ConsoleWrite('================================'&@CRLF)
; List just notepad.exe processes
$list = ProcessList("notepad.exe")
    ConsoleWrite('List just Notepad processes'&@CRLF)
for $i = 1 to $list[0][0]
  ConsoleWrite($list[$i][0]& ' '& $list[$i][1]&@CRLF)
next

Edit: Just for the sake of trial and error I changed it back to messageboxes and compiled the code. It ran without error,showing the messageboxes.

Edited by Kerros

Kerros===============================================================How to learn scripting: Figure out enough to be dangerous, then ask for assistance.

Link to comment
Share on other sites

; List all processes
$list = ProcessList()
for $i = 1 to $list[0][0]
  msgbox(0, $list[$i][0], $list[$i][1])
next

; List just notepad.exe processes
$list = ProcessList("notepad.exe")
for $i = 1 to $list[0][0]
  msgbox(0, $list[$i][0], $list[$i][1])
next

I ran this, and i get the normal floatingpoint error:

Posted Image

You ran it how? With what version of AutoIt? How did the VC++ runtime get involved?

Have the newst beta and compiler, Be usefull or dont reply

The latest Beta what? The latest beta as of today (3.2.11.12) is older than the current production (3.2.12.0).

:)

Edited by PsaltyDS
Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
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
 Share

  • Recently Browsing   0 members

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