Jump to content

PPowerHouseK

Active Members
  • Posts

    21
  • Joined

  • Last visited

PPowerHouseK's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hell all, I have been trying to figure out to how do this for a long time now. Basically I have a autoit script with a GUI. When a button is pushed, i need the GUI to open a new GUI that has a combo box and an okay button. I want the okay button to read the data from the combo box and return control back to the main gui. When the x button is pressed on the popup gui, it should close just that gui and not the main one as well. My problem is that i cannot get the Gui to read the input from the combo, close after okay is pressed or just close with the x. Here is the part of my main script where the second GUI should pop out. Case $secondgui $who = GUICtrlRead($input) $secondgui=GUICreate("newgui",250, 250) GUISetState() $getffs=GUICtrlCreateCombo("Choice1",0, 0, 100) $rank=GUICtrlRead($getffs) $okay=GUICtrlCreateButton("Okay",50,50,-1) Switch GUIGetMsg() Case $okay WinActivate("window") Send("{ESC}") sleep(500) Send("t") sleep(300) Send("$who & $rank2) Send("{Enter}") EndSwitch Any help would be greatly appreciated.
  2. Hello all, I am trying to implement a "skin" on my script but the problem I am having is that if I put the img over the button, I can see the button, yet they do not function. I was wondering if there was a way to make the image click-through, so that the buttons will once again work. I read the help section for guictrlcreatepic but it didn't cover this topic. Thanks in advance!
  3. Hello all, I am trying to create a sort of pop out menu for my script. It will just be another gui that opens from the main one, with the push of a button. But for some reason I can't seen yo get the newly opened Gui to close. If I click the X nothing happens and using Exitloop closes both the main and the new gui. Here is what I have #include <GUIConstants.au3> GUICreate("Window") GUISetState () $button = GUICtrlCreateButton("click me", 50 , 50) While 1 Switch GUIGetMsg() Case $button GUICreate("Extra Window",300,300) GUISetState () $close = GUICtrlCreateButton("Close",50, 50) While 1 Switch GUIGetMsg() Case $close ExitLoop EndSwitch WEnd Exit EndSwitch Wend Thanks in advance!
  4. Thank you very much for your reply I have found a solution.
  5. Hello all, I am trying to get my AutoIt script to have hotkeys. Most of the script works off of the Switch function. I need to set a hotkey, that when pressed, goes to a certain case. Kind of like the GOTO function in batch, if that makes sense. Anyhow I realize that the Hotkey must be set then the function that controls it must be placed elsewhere, in my case, below my giant switch function with its many cases. I tried to place the function within the case of the switch function, however that didn't work either. I am very new to this so please bear with me. Thanks in advance.
  6. I see what you did there. Thanks, yet again! Also I just downloaded all those apps in your signature that I've been looking for, thanks for that.
  7. Thanks so much for the quick reply! So I placed the following snippet in my gui code, but for some reason the value returned no matter what is entered, is 43. ;Name field $who = GUICtrlCreateInput("Name",10,270,100) Perhaps I am making a mistake with my syntax, I am not sure.
  8. Hello all, I am pretty new with AutoIT so please bear with me. I basically need to make and inputbox on the main gui itself. I have a working version of what I need to do, but currently it uses a pop-up inputbox. I was wondering if there is a way to enter the information directly into the main gui without having another window pop up to take the user's input. Any help would be much appreciated on this. Thanks in advance.
  9. Wow, I had no idea this existed, Very Nice! This has answered additional questions for me thank you!
  10. Alright, is that the same thing as the beta installer? I installed Autoit, then installed the beta as per the Autoit 1-2-3 tutorial. Is there something else i need to install?
  11. Hello, I have heard that using #AutoIt3Wrapper_Icon=Filename.ico would replace the default icon, provided that the ico file is in the same directory as the script when you compile it. However no matter which icon file i try, it still ends up with the defauly A icon. I also gave resource hacker a try, which i have used before, but when I save, it spits out an unidentified exe that doesn't work, and has no icon. I would simply like to change my exe icon and perhaps the tray icon if possible. Any help would be greatly appreciated.
  12. That did the trick Zac, Thanks!!
  13. hmm, thank you for the help with the comparison , but this shows I am running xp , yet I am using windows 7, any ideas?
  14. Okay that information was very helpful, I just need help making this loop work, I thought I would be okay with the syntax but apparently not. $osv = @OSVersion $ost = @OSArch MsgBox(0, "Version", "This is:" & @OSVersion) ;MsgBox(0, "", "CPU architecture = " & @OSArch & @CRLF & "OS Version = " & @OSVersion) MsgBox(0, "CPU Architecture", "This runs:" & @OSArch) If $osv = WIN_XP or WIN_XPe Then MsgBox(0, "", "Now Installing Xp Version...") Break(1) ElseIf $ost = X64 Then MsgBox(0, "", "Installing Vista/7 64 bit whatever") Break(1) Else MsgBox(0,"","Installing Vista/7 32 bit whatever") EndIf
×
×
  • Create New...