Bullet Posted March 6, 2010 Share Posted March 6, 2010 Well, im not good with math, i want solve this problem and find the result of $label in this expression$label/100 . 1,17 = $combo/100well how can i use it in autoit?I tried to make it as an Int() and didnt work, also i tried to use it as a global variable but didnt work, i tried this:Global $label/100 * 1,17 = $combo/100but i get an error instead of the result of this math. Link to comment Share on other sites More sharing options...
Xenobiologist Posted March 6, 2010 Share Posted March 6, 2010 I guess you mean somthing like this Global $result = GuiCtrlRead($label)/100 * 1,17 Global $x = GuiCtrlRead($combo)/100 Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
trancexx Posted March 6, 2010 Share Posted March 6, 2010 I guess you mean somthing like thisGlobal $result = GuiCtrlRead($label)/100 * 1,17 Global $x = GuiCtrlRead($combo)/100Can you guess what I mean too? ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
KaFu Posted March 6, 2010 Share Posted March 6, 2010 Which one is the result and which the input? $label/100 * 1,17 = $combo/100 equals $label* 1,17 = $combo #include <GUIConstantsEx.au3> GUICreate("My GUI combo") ; will create a dialog box that when displayed is centered $combo = GUICtrlCreateCombo("1", 10, 10) ; create first item GUICtrlSetData(-1, "2|3|4|5|6", "1") ; add other item snd set a new default $label = GUICtrlCreateLabel("1.17", 10, 40) GUISetState() ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop If $msg = $combo Then GUICtrlSetData($label, Number(GUICtrlRead($combo)) * 1.17) EndIf WEnd OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
Xenobiologist Posted March 6, 2010 Share Posted March 6, 2010 Can you guess what I mean too? I can try my very best. Besides, I like the video of Chris Isaaks version more. Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
Bullet Posted March 6, 2010 Author Share Posted March 6, 2010 I guess you mean somthing like thisGlobal $result = GuiCtrlRead($label)/100 * 1,17 Global $x = GuiCtrlRead($combo)/100then to find the result of $combo need make$result = $xright? Link to comment Share on other sites More sharing options...
trancexx Posted March 6, 2010 Share Posted March 6, 2010 I can try my very best. Besides, I like the video of Chris Isaaks version more.I like it hard, if you know what I mean You'd be wrong. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
Xenobiologist Posted March 6, 2010 Share Posted March 6, 2010 (edited) then to find the result of $combo need make$result = $xright?Have a look at what KaFu wrote. Maybe in your case it would be easier to give you the answer if you describe your goal with a few sentences, instead of writing confusing Autoit source @trancexx: Uhh, I'll think about that. What you are thinking? I don't know, but I hope men don't sing the lyrics of that song, if they got to know you. Edited March 6, 2010 by Xenobiologist Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now