Jump to content

kalya

Members
  • Posts

    14
  • Joined

  • Last visited

kalya's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. thank you . solved GUICtrlSetFont(-1, 20) " for this are forums "
  2. #TheDcoder from WHICH commands ? seriously, can you help me sorry #Melba23 I posted after you .
  3. Hi all. I use a FileOpen command to open a text file ,after that I create a GUI (GUICtrlCreateEdit) and I display the first line from the .txt file with GUICtrlSetData ( controlID, data [, default] ) How can I change the size of what I want to display ?
  4. $procent it's everytime ok. i can se in MsgBox. the items from last array is not ok. Randomly is 4 or 5 more time is 3
  5. so, something it's wrong because must be only 4 items. delete function.?! i don't give up, i know for more peoples from here it's a ridiculously script
  6. my mistake, really sorry i mean 60.i'm on my phone. when i run my script usually have 3 items in the final list. but not every time so what's wrong. pls i need this script functionally
  7. from a list must extract a certain items depend for % percentage. example : if the list have 100 items and percentage are 40 % randomly extract the items and in final must have 6 items i put myself the list length and the percent so it's variable
  8. I must extract % from a variable list and then print it on desktop. the length of list must be variable and the % also
  9. Can someone tell me why I have not the same result when running this script . I mean that last posting should have 3 positions with this values . #include <GUIConstantsEx.au3> #include <Array.au3> $lista = InputBox("CLV", "greater than 9","10"," M3") if $lista < 10 Then SplashTextOn(""," error ",300, 130, -1, -1, 4, "", 15) Sleep(3000) SplashOff() Else $proc = InputBox("%", "# ________________", "70", " M2") $procent = Round($lista*$proc/100) $pr=100-$procent Local $aArray[$lista+1] For $i = 0 To $lista-1 $aArray[$i]= $i Next _ArrayDelete($aArray, 0) For $j = 1 To $procent $ran=Random(0,UBound($aArray),1) _ArrayDelete($aArray,$ran) Next MsgBox($MB_SYSTEMMODAL, "**********", _ArrayToString($aArray, ", ")) EndIf
  10. how can I loop this sequence ? $q1=Random(0,10,1) $q2=Random(0,10,1) $Form1 = GUICreate("mate", 200, 151, 247, 132) $Label1 = GUICtrlCreateLabel($q1, 24, 40, 20, 17) $Label2 = GUICtrlCreateLabel($q2, 64, 40, 20, 17) $Input1 = GUICtrlCreateInput(" ", 102, 36,20, 17,0x2000) $Label3 = GUICtrlCreateLabel("+", 44, 40, 20, 17) $Label4 = GUICtrlCreateLabel("=", 84, 40, 20, 17) until GuiCtrlRead ($Input1) <> $q1+$q2
  11. thanks
  12. what is wrong ? #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> $q1=Random(0,10,1) $q2=Random(0,10,1) $Form1 = GUICreate("mate", 200, 151, 247, 132) $Label1 = GUICtrlCreateLabel($q1, 24, 40, 20, 17) $Label2 = GUICtrlCreateLabel($q2, 64, 40, 20, 17) $Input1 = GUICtrlCreateInput(" ", 102, 36,20, 17,0x2000) $Label3 = GUICtrlCreateLabel("+", 44, 40, 20, 17) $Label4 = GUICtrlCreateLabel("=", 84, 40, 20, 17) $Button1 = GUICtrlCreateButton("OK", 100, 112, 75, 25, $WS_GROUP) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() $rez=$q1+$q2 Switch $nMsg Case $GUI_EVENT_CLOSE Exit case $Button1 if $Input1 = $rez Then MsgBox(0,"","Yes") Else MsgBox(0,"","No") EndIf Exit EndSwitch WEnd
  13. Thank you for help .You make a great job I try to do that and if i have any questions i post it here
  14. hello , My problem is : I must create a GUI where to put 2 folders with pictures and I want to randomly mix and displaying them on screen
×
×
  • Create New...