Sign in to follow this  
Followers 0
metis

Los Function

6 posts in this topic

Msgbox(0,"","Start LOS")

;start losu
Msgbox(0,"","1") ;1
Msgbox(0,"","2") ;2
Msgbox(0,"","3") ;3
;End losu

Msgbox(0,"","END LOS")

I need Results

3,2,1 ; 2,3,1 ; 1,3,2 etc...

Share this post


Link to post
Share on other sites



You are not helping anyone here. You neglected to say how you are getting and storing those values.


George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

Please Help

Share this post


Link to post
Share on other sites

I aready told you we need more information. You didn't give us anything to work with. What you may be looking for is storing all of the values in an array and then using _ArrayPermute(). There is no way to know for sure from your post.


George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

i need Similar to this code

$var = 0
For $i = 1 To 3 Step +1
While 1
$los = Random(1,3,1)
If $los <> $var Then ExitLoop
WEnd
   Switch $los
Case 1
$var = 1
MsgBox(0,"","1")
Case 2
$var = 2
MsgBox(0,"","2")
Case 3
$var = 3
MsgBox(0,"","3")
EndSwitch
Next

This me code. UP code does not work of me code

ME CODE :

$var = 0
For $i = 1 To 3 Step +1
While 3
$los = Random(1,3,1)
If $los <> $var Then ExitLoop
WEnd
   Switch $los
   Case 1
      $var = 1
         if (GUICtrlRead($Checkbox1) = $GUI_CHECKED) Then
$Input1P1 = GUICtrlRead($Input1)
$Input1bO = GUICtrlRead($Inputa21)
   $input1P2 =  InputBox($Input1P1,$Input1P1)
   $pyt += 1
   if $input1P2 = $Input1bO Then
      $pkt +=1
   Else
      MsgBox(0,"Błąd","Błędna Odpowiedz")
   EndIf
EndIf
Case 2
   $var = 2
      if (GUICtrlRead($Checkbox2) = $GUI_CHECKED) Then
$Input2P1 = GUICtrlRead($Input2)
$Input2bO = GUICtrlRead($Inputa22)
   $pyt += 1
   $input2P2 =  InputBox($Input2P1,$Input2P1)
   $pyt += 1
   if $input2P2 = $Input2bO Then
      $pkt +=1
   Else
      MsgBox(0,"Błąd","Błędna Odpowiedz")
   EndIf
EndIf
Case 3
   $var = 3
 if (GUICtrlRead($Checkbox3) = $GUI_CHECKED) Then
    $Input3P1 = GUICtrlRead($Input3)
    $Input3bO = GUICtrlRead($Inputa23)
      $input3P2 =  InputBox($Input3P1,$Input3P1)
         $pyt += 1
      if $input3P2 = $Input3bO Then
         $pkt +=1
         Else
         MsgBox(0,"Błąd","Błędna Odpowiedź")
         EndIf
      EndIf
         
EndSwitch
Next



Msgbox(0, "YOUR PKT" , "YOU "&$pkt&"pkt of "&$pyt)

Share this post


Link to post
Share on other sites

Hello metis,

i am native geman speaking, so it's difficult for me. i don't really know what you mean but maybe this is the func to solve your problem:

_ArrayCombinations

Gibt ein Array mit den Kombinationen eines Elementsatzes von einem ausgewählten Array zurück

Ps.: warum postet du nicht im Deutschen Forum, wäre für uns beide einfacher,

mfg autoBert

Share this post


Link to post
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
Sign in to follow this  
Followers 0