Jump to content

cheeseandcereal

Active Members
  • Posts

    25
  • Joined

  • Last visited

Recent Profile Visitors

307 profile views

cheeseandcereal's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. So I'm a bit new to the network functions of AutoIT, and I was just wondering what function(s) should I use to check for new email and then after a check, download the email into some type of file? Thanks for the help in advanced!
  2. Haha now I feel stupid! I knew there was some sort of loop that could do this for me I just couldn't remember what it was for some reason. Brain fart Thanks
  3. So I am writing a script and I am at a point where I have a variable, I want to add 1 to that variable, then do a quick process with that variable, then repeat, but when I write something as simple as this: Folder() Func Folder() $Count += 1 ;Insert quick function using $Count here If $Count < 15000 Then Folder() Else NextFunc() EndIf EndFunc Func NextFunc() ;Insert anything you want here EndFunc AutoIT will stop because "Recursion level has been exceeded - AutoIt will quit to prevent stack overflow." after about 3,898 recurrences consistently. The problem is I want to run this for 10,000-100,000 times. Is there anyway to circumvent this limitation?
  4. So I was wondering what are some good ways for switching between different GUI forms? The way I currently switch between forms is something like this: GUICtrlDelete($Form1) $Form2 = GUICreate("Title", 615, 391, 192, 124) However when I do something like this, the program itself acts like it's closing then opening a new window which doesn't look to elegant, not to mention that if you have moved your window,then do this to switch to a new form, the new window is automatically moved back to it's preset coordinates. Any ideas on how to switch between different forms a little more elegantly? (And I don't want to just switch the order of these commands, because then the window is still moved and the program acts as if it's opening up 2 windows, then closing one of them which doesn't look elegant either)
  5. Thanks for the help guys!
  6. So I was writing this program and I wanted my input box to be enabled when I checked a checkbox and disabled when the checkbox is unchecked. I replicated the problem with this code: #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 131, 103, 192, 124) $Checkbox1 = GUICtrlCreateCheckbox("Enable", 8, 8, 97, 17) $Input1 = GUICtrlCreateInput("", 24, 48, 57, 21) GUICtrlSetState(-1, $GUI_DISABLE) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch If GUICtrlRead($Checkbox1) = $GUI_CHECKED Then GUICtrlSetState($Input1, $GUI_ENABLE) ElseIf GUICtrlRead($Checkbox1) = $GUI_UNCHECKED Then GUICtrlSetState($Input1, $GUI_DISABLE) EndIf WEnd When running this code, the program functions properly but the input box flickers inbetween the enabled and disabled state. Does anyone know how I might go about fixing this problem?
  7. Thanks that worked great
  8. Hey so I was wondering if I had a file string such as "C:/example/file.exe" would there be any way to pull out the directory from that so I could set a variable to be "C:/example/" only knowing "C:/example/file.exe" automatically? So for example, If I had this script: Opt("MustDeclareVars", 1) Global $file1 Global $directory1 $file1 = FileOpenDialog ("", "", "All Files (*.*)") how would I be able to set $directory1 as the directory containing selected $file1
  9. Never mind, I figured it out, it's just @AppDataDir. The reason I was getting messed up because when I put in my directories, I forgot the "&" after putting in @AppDataDir and the rest of the path
  10. hey, so I was just doing some programming and I noticed that when typing in a path file, i can not use %appdata% for a user's specific application data (i.e. C:\Users\SomeUser\AppData\roaming) Is there some sort of substitute for autoit?
  11. Sure thing! Thank's for the suggestion and I will be sure to do that in the future!
  12. Ok, thank you for the fix on my script. As for the rules, does this mean that I can't mention the game's name (I didn't see that in the Forum rules)? And also, I realize my first couple topics were locked for obvious reasons and I can say with confidence that this is a completely different script and, as you said, just sets the environment for when I run the game. Also, just to check, were the codes in my posts after my first two topics too "perilously close to the limit of the Forum Rules"? I just want to clarify for future posts so that I don't get in any trouble or break any more rules because that's not what I'm here to do, I just want to learn! Thanks for all your help.
  13. So I have this script, and I have recreated the problem in this GUI so that anyone running windows 7 can execute this code(because it uses a windows 7 sample picture): #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form=C:UsersDad & MomDocumentsAutoit ScriptsHunter Gametype ChangerHunter client changer - Copy.kxf $Form1 = GUICreate("Adam's Minecraft Gametype Changer", 630, 346, 392, 196) $MenuItem4 = GUICtrlCreateMenu("&File") $MenuItem6 = GUICtrlCreateMenuItem("Help", $MenuItem4) $MenuItem7 = GUICtrlCreateMenuItem("Exit", $MenuItem4) $MenuItem5 = GUICtrlCreateMenu("&Change Mode") $MenuItem2 = GUICtrlCreateMenuItem("Backup and Restore", $MenuItem5) $MenuItem3 = GUICtrlCreateMenuItem("Server Gametype Changer", $MenuItem5) GUISetBkColor(0x000000) $Pic1 = GUICtrlCreatePic("C:UsersPublicPicturesSample PicturesPenguins.jpg", 0, 0, 629, 325, 0) GUICtrlSetState($Pic1, $GUI_DISABLE) $Button1 = GUICtrlCreateButton("1.1.0", 256, 88, 113, 41) $Button2 = GUICtrlCreateButton("1.0.0 with mods", 256, 144, 113, 41) $Button3 = GUICtrlCreateButton("1.0.0 without mods", 104, 144, 113, 41) $Button4 = GUICtrlCreateButton("1.8.1 Beta", 409, 88, 113, 41) $Button6 = GUICtrlCreateButton("Start Minecraft", 178, 248, 113, 41) $Button13 = GUICtrlCreateButton("1.2.0", 104, 88, 113, 41) $Group1 = GUICtrlCreateGroup("Gametypes", 96, 72, 433, 121) GUICtrlSetFont(-1, 8, 400, 0, "arial") GUICtrlSetColor(-1, 0xFFFFFF) GUICtrlCreateGroup("", -99, -99, 1, 1) $Button14 = GUICtrlCreateButton("Start Server", 336, 248, 113, 41) $Group2 = GUICtrlCreateGroup("Start Services", 168, 232, 289, 65) GUICtrlSetFont(-1, 8, 400, 0, "arial") GUICtrlSetColor(-1, 0xFFFFFF) GUICtrlCreateGroup("", -99, -99, 1, 1) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd So I have created this GUI with Koda and set the group font to clWhite color, however when running the code that Koda generates for me, the text is still black and therefor I can't see the group text. I was wondering if there was a way to change the text color for groups? Koda doesn't seem to do it properly. I have attached the Koda file I used if you wish to see it. The only thing I changed between the code that Koda generates and the code I have posted here, Is that I moved the picture and disabled it to be a background image. Any help will be greatly appreciated. Test.zip
  14. Yes, that makes sense and I think I understand it now. I was just confused because the help file said to create the picture control after the rest of the controls. Thanks for explaining that to me!
  15. Thank you SO MUCH. I was so confused because of that line in the help file that says create the picture after the other controls too. It works perfectly now. I can't thank you enough.
×
×
  • Create New...