Jump to content

oozma

Active Members
  • Posts

    33
  • Joined

  • Last visited

Everything posted by oozma

  1. Thank you that did it Actually just tried removing the \ before refreshing this page. TY very much! Only thing left is the GUI closing after clicking OK. doesn't seem to close
  2. I've tried running as the script and as the compiled version. Both don't give me any .ini file. Even tried to resave to a different directory and search the entire computer for config.ini :/
  3. Ty, but I now get a second popup that you entered and the original doesn't close, and no .ini is created or written to I'm hoping for it to save to the ini, close the gui, and continue on with a script that follows. Thanks guys! Really trying to learn this but I'm out of brainpower x_x
  4. Hi, I'm trying to write this GUI to an INI when I click the OK button. Right now it doesn't do anything.. the GUI doesn't even close when I click OK. What gives? I've read through all the help files on iniwrite and don't see anything wrong Thanks for any help anyone can offer. #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> ;;LABELS $MTrainer = GUICreate("mt", 210, 265, 269, 218) $MM = GUICtrlCreateLabel("Mm:", 16, 56, 70, 17) $HS = GUICtrlCreateLabel("hs:", 32, 80, 50, 17) $R = GUICtrlCreateLabel("r:", 56, 104, 29, 17) $Ok = GUICtrlCreateButton("Ok", 56, 232, 105, 25, 0) $Max = GUICtrlCreateLabel("m:", 8, 200, 135, 17) $Hotkey = GUICtrlCreateLabel("hk", 88, 32, 38, 17) $S = GUICtrlCreateGroup("ss", 8, 8, 161, 169) ;;INPUTS $Mi = GUICtrlCreateInput("", 96, 48, 20, 21) GUICtrlSetLimit(-1, 2) $He = GUICtrlCreateInput("", 96, 72, 20, 21) GUICtrlSetLimit(-1, 2) $Re = GUICtrlCreateInput("", 96, 96, 20, 21) GUICtrlSetLimit(-1, 2) GUICtrlCreateGroup("", -99, -99, 1, 1) $Ma = GUICtrlCreateInput("", 144, 192, 40, 21) GUICtrlSetLimit(-1, 3) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Select Case $nMsg = $GUI_EVENT_CLOSE Exit Case $Ok IniWrite("\config.ini", "Variables", "$hs", GuiCtrlRead($he)) IniWrite("\config.ini", "Variables", "$mi", GuiCtrlRead($mi)) IniWrite("\config.ini", "Variables", "$r", GuiCtrlRead($re)) IniWrite("\config.ini", "Variables", "$mt", GuiCtrlRead($ma)) EndSelect WEnd
  5. Thank you much but when I compile, the start and quit hotkeys work but stop does nothing. It keeps running even after Alt+2
  6. Sorry again for a question, how about... The hotkeys of !1 and !2 don't start or stop the script. It seems to stop instantly by itself I'm assuming it's something like... no while inside of a function. Thank you again for any help someone can offer. HotKeySet ("!1","Start") HotKeySet ("!2","Stop") Func Start() While 1 Call ("hs") Call ("MM") Call ("R") WEnd EndFunc Func Stop() ExitLoop EndFunc;==> Quit Func HS() $hc = 0 Do Send (1) sleep(50) MouseClick ("Right") sleep(5000) $hc = $hc + 1 Until $hc = 1 EndFunc;==> HS Func MM() $mc = 0 Do Send(8) sleep(50) MouseClick ("Left") sleep(2200) $mc = $mc + 1 Until $mc = 3 EndFunc;==> MM Func R() Send (0) sleep(50) MouseClick ("Left") sleep(230000) EndFunc;==> Resting
  7. I love you saved me such a headache... other programs I've used are so different
  8. Hi All, First time creating an AutoIT script here. Below is a code that I've made, but I keep returning the error of: REF: missing Wend. While ^ ERROR: syntax error WEnd I've read through help and many threads, I'm not sure what I'm doing wrong... :/ Can anyone help? Thank you. While 1 = 1 call ("hs") Func HS() $hc = 0 Do Send (1) sleep(100) MouseClick("Right") sleep(5000) $hc = $hc + 1 Until $hc = 1 EndFunc Call ("MM") Func MM() $mc = 0 Do Send(8) sleep(100) MouseClick("Left") sleep(2200) $mc = $mc + 1 Until $mc = 22 EndFunc WEnd
×
×
  • Create New...