Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

calculation

$
0
0
Hi for all

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("autoitscript", 302, 153, 192, 124)
$Label1 = GUICtrlCreateLabel("1", 40, 32, 18, 17)
$Input1 = GUICtrlCreateInput("", 80, 32, 121, 21)
$Label2 = GUICtrlCreateLabel("2", 40, 72, 10, 17)
$Input2 = GUICtrlCreateInput("", 80, 64, 121, 21)
$Button1 = GUICtrlCreateButton("collect", 96, 97, 81, 31)
GUISetState(@SW_SHOW)
$Input=GUICtrlRead($Input1) * GUICtrlRead($Input1)
$text=$Input2 / $Input
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
  Case $GUI_EVENT_CLOSE
   Exit
  case $Button1
   MsgBox(0,"",$text)
EndSwitch
WEnd


If user put 168 in INPUT1,, what is script that input 1 becomes 1,68
Another example: If you will put 172 in input1--- automatically it will be 1,72
If user put 77.3 in Input 2 ,, what is script that input 2 becomes 77 without  ,3

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>