gunnagitcha Posted July 30, 2007 Share Posted July 30, 2007 so i have this script so far expandcollapse popup#include <IE.au3> Global $Paused HotKeySet("{ESC}", "Terminate") HotKeySet("{PAUSE}", "TogglePause") WinMinimizeAll() Func Terminate() Exit 0 EndFunc Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('KnightFight is currently "Paused"',0,0) WEnd ToolTip("") EndFunc ; Create a browser window and navigate to knightfight $oIE = _IECreate() _IENavigate($oIE, "http://world5.knightfight.co.uk/?ac=loginpage") $oIE = _IEAttach ("KnightFight") ; get pointers to the login form and username and password fields $o_form = _IEFormGetObjByName($oIE, "regform") $o_login = _IEFormElementGetObjByName($o_form, "user") $o_password = _IEFormElementGetObjByName($o_form, "password") $o_server = _IEFormElementGetObjByName($o_form, "server") _IELoadWait ($oIE) $oIE = _IEAttach ("KnightFight") ; Set field values and submit the form _IEFormElementOptionselect($o_server, "world5.knightfight.co.uk") sleep(500) $oIE = _IEAttach ("KnightFight") _IEFormElementSetValue($o_login, "account") _IEFormElementSetValue($o_password, "password") _IEFormSubmit($o_form) _IELoadWait ($oIE) while 1 ; Clicks mission and selects an opponent $oIE = _IEAttach ("KnightFight") _IELinkClickByText ($oIE, "Mission") $oForms = _IEFormGetCollection ($oIE,2) $oElement = _IEFormElementGetCollection($oForms,2) $oElement2 = _IEFormElementGetCollection($oForms,3) $oElement3 = _IEFormElementGetCollection($oForms,4) _IEFormElementOptionselect($oelement, "<=") _IEFormElementSetValue($oelement2, "4") _IEFormElementOptionselect($oelement3, "1") _IEFormSubmit($oforms) ; Attacks! $oIE = _IEAttach ("KnightFight") $oForms2 = _IEFormGetCollection ($oIE,0) $oElement = _IEFormElementGetCollection($oForms,1) _IEFormSubmit($oforms2) $oIE = _IEAttach ("KnightFight") _IELinkClickByText ($oIE, "Estate") _IELinkClickByText ($oIE, "Pray at the altar") $sText = _IEPropertyGet($oIE,"innertext") while StringRegExp($sText, 'Your prayers have been answered; your health increased by 0 points!') = 0 $oForms3 = _IEFormGetCollection ($oIE,0) $oElement4 = _IEFormElementGetCollection($oForms3,3) _IELoadWait ($oIE) _IEFormSubmit($oforms3) $sText = _IEPropertyGet($oIE,"innertext") wend sleep(330000) wend exit and i want to run it in a gui with start, pause, and end buttons. also i'd like to find a way for it to display some sort of counter on the side so that after every attack loop it would tell how many enemies it has gone through, and a way to keep track of gold gained/lost. the only thing ive been able to find that relates to the gold is this <script type="text/javascript">document.all.gold.innerHTML = "152";document.all.edelsteine.innerHTML = "2";</script> ive written scripts before but never any GUI's and have no clue where to start any help is appreciated Link to comment Share on other sites More sharing options...
Zedna Posted July 30, 2007 Share Posted July 30, 2007 About GUI look at Autoit Helpfile: function GUICtrlCreateButton and it's exampleAlso look at Koda form designer Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
gunnagitcha Posted July 30, 2007 Author Share Posted July 30, 2007 (edited) About GUI look at Autoit Helpfile: function GUICtrlCreateButton and it's example Also look at Koda form designer ok i used that and this is how far ive gotten, but when i click the buttons they dont do anything expandcollapse popup#include <GUIConstants.au3> #include <IE.au3> #Include <Misc.au3> Global $oIE #Region ### START Koda GUI section ### Form=c:\documents and settings\nord\my documents\gui\forms\form1.kxf _IEErrorHandlerRegister () $oIE = _IECreateEmbedded () $Form1 = GUICreate("KnightFight", 1271, 970, -5, -1) GUISetIcon("D:04.ico") $GUIActiveX = GUICtrlCreateObj($oIE, 5, 4, 1073, 969) $GroupBox1 = GUICtrlCreateGroup("", -24, 9, 1073, 969) GUICtrlCreateGroup("", -99, -99, 1, 1) $Button1 = GUICtrlCreateButton("Start", 1136, 16, 73, 25, 0) GUICtrlSetOnEvent(-1, "Start") $Button2 = GUICtrlCreateButton("Pause", 1136, 56, 75, 25, 0) GUICtrlSetOnEvent(-1, "TogglePause") $Button3 = GUICtrlCreateButton("Close", 1136, 96, 75, 25, 0) GUICtrlSetOnEvent(-1, "Terminate") $List1 = GUICtrlCreateList("", 1072, 232, 161, 70) GUICtrlSetData(-1, "Attacks:|Gold Lost:|Gold Won:") GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif") $Combo1 = GUICtrlCreateCombo("Level", 1080, 480, 145, 25) GUICtrlSetData(-1, "1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30") $Combo2 = GUICtrlCreateCombo("Allignment", 1080, 536, 145, 25) GUICtrlSetData(-1, "Neutral|Knight of Light|Horde of Darkness") $Combo3 = GUICtrlCreateCombo("Level Difference", 1080, 576, 145, 25) GUICtrlSetData(-1, "Exact|Higher than or Equal to|Less than or Equal to") GUISetState(@SW_SHOW) _IENavigate($oIE, "http://world5.knightfight.co.uk/?ac=loginpage") #EndRegion ### END Koda GUI section ### Func Terminate() Exit 0 EndFunc Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('KnightFight is currently "Paused"',0,0) WEnd ToolTip("") EndFunc Func Start() ; Create a browser window and navigate to knightfight $oIE = _IECreate() _IENavigate($oIE, "http://world5.knightfight.co.uk/?ac=loginpage") $oIE = _IEAttach ("KnightFight") ; get pointers to the login form and username and password fields $o_form = _IEFormGetObjByName($oIE, "regform") $o_login = _IEFormElementGetObjByName($o_form, "user") $o_password = _IEFormElementGetObjByName($o_form, "password") $o_server = _IEFormElementGetObjByName($o_form, "server") _IELoadWait ($oIE) $oIE = _IEAttach ("KnightFight") ; Set field values and submit the form _IEFormElementOptionselect($o_server, "world5.knightfight.co.uk") sleep(500) $oIE = _IEAttach ("KnightFight") _IEFormElementSetValue($o_login, "account") _IEFormElementSetValue($o_password, "password") _IEFormSubmit($o_form) _IELoadWait ($oIE) while 1 ; Clicks mission and selects an opponent $oIE = _IEAttach ("KnightFight") _IELinkClickByText ($oIE, "Mission") $oForms = _IEFormGetCollection ($oIE,2) $oElement = _IEFormElementGetCollection($oForms,2) $oElement2 = _IEFormElementGetCollection($oForms,3) $oElement3 = _IEFormElementGetCollection($oForms,4) _IEFormElementOptionselect($oelement, "<=") _IEFormElementSetValue($oelement2, "5") _IEFormElementOptionselect($oelement3, "1") _IEFormSubmit($oforms) ; Attacks! $oIE = _IEAttach ("KnightFight") $oForms2 = _IEFormGetCollection ($oIE,0) $oElement = _IEFormElementGetCollection($oForms,1) _IEFormSubmit($oforms2) $oIE = _IEAttach ("KnightFight") _IELinkClickByText ($oIE, "Estate") _IELinkClickByText ($oIE, "Pray at the altar") $sText = _IEPropertyGet($oIE,"innertext") while StringRegExp($sText, 'Your prayers have been answered; your health increased by 0 points!') = 0 $oForms3 = _IEFormGetCollection ($oIE,0) $oElement4 = _IEFormElementGetCollection($oForms3,3) _IELoadWait ($oIE) _IEFormSubmit($oforms3) $sText = _IEPropertyGet($oIE,"innertext") wend sleep(330000) wend EndFunc While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $List1 Case $Combo1 EndSwitch WEnd Edited July 30, 2007 by gunnagitcha Link to comment Share on other sites More sharing options...
cramaboule Posted July 30, 2007 Share Posted July 30, 2007 Hum,... Sir, Me neither ! 1 year ago I never made any GUI with autoit ! today I've made maby 20 scripts with GUI... I simply looked at the help ! While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case ..... do somthing here EndSwitch WEnd etc... etc... etc... My Autoit programs: MAC Address - - Delete Temp Files - - Ping Test - - Play Video with VLC full screen dual monitors - - Set IP - - Pics Converter - - AutoUpdater - - CPU Usage - - Ending Script Nicely - - GDI+ GUI crossfades (slide transitions) - - Beamer - - Search and Search in Files - - Silent Ninite Others: Export Icons into Dll - - My website Link to comment Share on other sites More sharing options...
gunnagitcha Posted July 30, 2007 Author Share Posted July 30, 2007 alright ive gotten the buttons to work except for one small thing. whenever i press start it runs the main script but if i try to press close after that nothing happens. also i was wondering how to make it so that after Wins: or Losses: how i would be able to make it display the values for $wins and $losses. and where the combo things are (level, alignment, level difference) how would i make it change this part of the script whenever a different option is selected the first one is level difference exact is "=" less than or equal is "<=" greater than or equal is ">=" the second one is the level which is 1-30 and the thrid is alignment neutral is "0" knight of light is "1" horde of darkness is "2" expandcollapse popup_IEFormElementOptionselect($oelement, "<=") _IEFormElementSetValue($oelement2, "5") _IEFormElementOptionselect($oelement3, "1")oÝ÷ ÚØb²+-ì!¢W¬r¸©µ«¢+Ø¥¹±Õ±ÐíU% ½¹ÍѹÑ̹ÔÌÐì(¥¹±Õ±Ðí%¹ÔÌÐì(I¥½¸MQIP-½U$ÍÑ¥½¸½É´õèÀäÈí½Õµ¹Ñ̹ÍÑÑ¥¹ÌÀäÈí¹½ÉÀäÈíµä½Õµ¹ÑÌÀäÈíÕ¤ÀäÈí½ÉµÌÀäÈí½É´Ä¹á)=ÁÐ ÅÕ½ÐíU%=¹Ù¹Ñ5½ÅÕ½Ðì°Ä¤(ÀÌØí½%ô}% Éѵ ¤(ÀÌØí½É´ÄôU% ÉÑ ÅÕ½Ðí-¹¥¡Ñ¥¡ÐÅÕ½Ðì°ÄÈÜÄ°äÜÀ°´Ô°´Ä¤)U%MÑ%½¸ ÅÕ½ÐíèÀй¥¼ÅÕ½Ðì¤(ÀÌØíU%Ñ¥Ù`ôU% Ñɱ ÉÑ=¨ ÀÌØí½%°Ô°Ð°ÄÀØÀ°äÔä¤)}%9Ù¥Ñ ÀÌØí½%°ÅÕ½Ðí¡ÑÑÀ輽ݽɱԹ¹¥¡Ñ¥¡Ð¹¼¹Õ¬¼ýõ±½¥¹ÁÅÕ½Ðì¤(ÀÌØíɽÕÁ ½àÄôU% Ñɱ ÉÑɽÕÀ ÅÕ½ÐìÅÕ½Ðì°´Èаä°ÄÀÜÌ°äØä¤(%U% Ñɱ ÉÑɽÕÀ ÅÕ½ÐìÅÕ½Ðì°´ää°´ää°Ä°Ä¤(ÀÌØí ÕÑѽ¸ÄôU% Ñɱ ÉÑ ÕÑѽ¸ ÅÕ½ÐíMÑÉÐÅÕ½Ðì°ÄÄÌØ°ÄØ°ÜÌ°ÈÔ°À¤(%U% ÑɱMÑ=¹Ù¹Ð ´Ä°ÅÕ½ÐíMÑÉÐÅÕ½Ðì¤(ÀÌØí ÕÑѽ¸ÌôU% Ñɱ ÉÑ ÕÑѽ¸ ÅÕ½Ðí ±½ÍÅÕ½Ðì°ÄÄÌØ°äØ°ÜÔ°ÈÔ°À¤(%U% ÑɱMÑ=¹Ù¹Ð ´Ä°ÅÕ½ÐíQɵ¥¹ÑÅÕ½Ðì¤(ÀÌØí1¥ÍÐÄôU% Ñɱ ÉÑ1¥ÍÐ ÅÕ½ÐìÅÕ½Ðì°ÄÀÜÈ°ÈÌÈ°ÄØÄ°ÜÀ¤)U% ÑɱMÑÑ ´Ä°ÅÕ½ÐíÑÑÌéñ]¥¹Ìéñ1½ÍÍÌèÅÕ½Ðì¤)U% ÑɱMѽ¹Ð ´Ä°ÄÀ°ÐÀÀ°À°ÅÕ½Ðí5LM¹ÌMÉ¥ÅÕ½Ðì¤(ÀÌØí ½µ¼ÄôU% Ñɱ ÉÑ ½µ¼ ÅÕ½Ðí1Ù°ÅÕ½Ðì°ÄÀàÀ°ÐàÀ°ÄÐÔ°ÈÔ¤)U% ÑɱMÑÑ ´Ä°ÅÕ½ÐìÅðÉðÍðÑðÕðÙðÝðáðåðÄÁðÄÅðÄÉðÄÍðÄÑðÄÕðÄÙðÄÝðÄáðÄåðÈÁðÈÅðÈÉðÈÍðÈÑðÈÕðÈÙðÈÝðÈáðÈåðÌÀÅÕ½Ðì¤(ÀÌØí ½µ¼ÈôU% Ñɱ ÉÑ ½µ¼ ÅÕ½Ðí±±¥¹µ¹ÐÅÕ½Ðì°ÄÀàÀ°ÔÌØ°ÄÐÔ°ÈÔ¤)U% ÑɱMÑÑ ´Ä°ÅÕ½Ðí9ÕÑɱñ-¹¥¡Ð½1¥¡Ññ!½É½É¹ÍÌÅÕ½Ðì¤(ÀÌØí ½µ¼ÌôU% Ñɱ ÉÑ ½µ¼ ÅÕ½Ðí1Ù°¥É¹ÅÕ½Ðì°ÄÀàÀ°ÔÜØ°ÄÐÔ°ÈÔ¤)U% ÑɱMÑÑ ´Ä°ÅÕ½ÐíáÑñ!¥¡ÈÑ¡¸½ÈÅհѽñ1ÍÌÑ¡¸½ÈÅհѼÅÕ½Ðì¤)U%MÑMÑÑ¡M]}M!=¤(¹I¥½¸9-½U$ÍÑ¥½¸()Õ¹Qɵ¥¹Ñ ¤(á¥ÐÀ)¹Õ¹)Õ¹MÑÉÐ ¤($ì ÉÑɽÝÍÈÝ¥¹½Ü¹¹Ù¥ÑѼ¹¥¡Ñ¥¡Ð(ÀÌØíÝ¥¹ÌôÀ(ÀÌØí±½ÍÍÌôÀ(ìÐÁ½¥¹ÑÉÌѼѡ±½¥¸½É´¹ÕÍɹµ¹ÁÍÍݽɥ±Ì(ÀÌØí½}½É´ô}%½ÉµÑ=© å9µ ÀÌØí½%°ÅÕ½ÐíɽɴÅÕ½Ðì¤(ÀÌØí½}±½¥¸ô}%½Éµ±µ¹ÑÑ=© å9µ ÀÌØí½}½É´°ÅÕ½ÐíÕÍÈÅÕ½Ðì¤(ÀÌØí½}ÁÍÍݽÉô}%½Éµ±µ¹ÑÑ=© å9µ ÀÌØí½}½É´°ÅÕ½ÐíÁÍÍݽÉÅÕ½Ðì¤(ÀÌØí½}ÍÉÙÈô}%½Éµ±µ¹ÑÑ=© å9µ ÀÌØí½}½É´°ÅÕ½ÐíÍÉÙÈÅÕ½Ðì¤)}%1½]¥Ð ÀÌØí½%¤(ìMÐ¥±Ù±Õ̹ÍÕµ¥ÐÑ¡½É´)}%½Éµ±µ¹Ñ=ÁÑ¥½¹M±Ð ÀÌØí½}ÍÉÙÈ°ÅÕ½ÐíݽɱԹ¹¥¡Ñ¥¡Ð¹¼¹Õ¬ÅÕ½Ðì¤)ͱÀ ÔÀÀ¤)}%½Éµ±µ¹ÑMÑY±Õ ÀÌØí½}±½¥¸°ÅÕ½Ðí½Õ¹ÐÅÕ½Ðì¤)}%½Éµ±µ¹ÑMÑY±Õ ÀÌØí½}ÁÍÍݽɰÅÕ½ÐíÁÍÍݽÉÅÕ½Ðì¤)}%½ÉµMÕµ¥Ð ÀÌØí½}½É´¤)}%1½]¥Ð ÀÌØí½%¤)Ý¡¥±Ä(ì ±¥Ìµ¥ÍÍ¥½¸¹Í±Ñ̸½ÁÁ½¹¹Ð)}%1¥¹ ±¥ åQáÐ ÀÌØí½%°ÅÕ½Ðí5¥ÍÍ¥½¸ÅÕ½Ðì¤(ÀÌØí½½ÉµÌô}%½ÉµÑ ½±±Ñ¥½¸ ÀÌØí½%°È¤(ÀÌØí½±µ¹Ðô}%½Éµ±µ¹ÑÑ ½±±Ñ¥½¸ ÀÌØí½½ÉµÌ°È¤(ÀÌØí½±µ¹ÐÈô}%½Éµ±µ¹ÑÑ ½±±Ñ¥½¸ ÀÌØí½½ÉµÌ°Ì¤(ÀÌØí½±µ¹ÐÌô}%½Éµ±µ¹ÑÑ ½±±Ñ¥½¸ ÀÌØí½½ÉµÌ°Ð¤(}%½Éµ±µ¹Ñ=ÁÑ¥½¹M±Ð ÀÌØí½±µ¹Ð°ÅÕ½Ðì±ÐìôÅÕ½Ðì¤(}%½Éµ±µ¹ÑMÑY±Õ ÀÌØí½±µ¹ÐÈ°ÅÕ½ÐìÔÅÕ½Ðì¤(}%½Éµ±µ¹Ñ=ÁÑ¥½¹M±Ð ÀÌØí½±µ¹ÐÌ°ÅÕ½ÐìÄÅÕ½Ðì¤(}%½ÉµMÕµ¥Ð ÀÌØí½½ÉµÌ¤(ìÑÑÌÌÌì(ÀÌØí½½ÉµÌÈô}%½ÉµÑ ½±±Ñ¥½¸ ÀÌØí½%°À¤(ÀÌØí½±µ¹Ðô}%½Éµ±µ¹ÑÑ ½±±Ñ¥½¸ ÀÌØí½½ÉµÌ°Ä¤(}%½ÉµMÕµ¥Ð ÀÌØí½½ÉµÌȤ((ÀÌØíÍQáÐô}%AɽÁÉÑåÐ ÀÌØí½%°ÅÕ½Ðí¥¹¹ÉÑáÐÅÕ½Ðì¤(¥MÑÉ¥¹IáÀ ÀÌØíÍQáаÌäí]¥¹¹Èè½Õ¹ÐÌäì¤ôÄQ¡¸($ÀÌØíÝ¥¹ÌôÀÌØíÝ¥¹Ì¬Ä(±Í%MÑÉ¥¹IáÀ ÀÌØíÍQáаÌäí]¥¹¹Èè½Õ¹ÐÌäì¤ôÀQ¡¸($ÀÌØí±½ÍÍÌôÀÌØí±½ÍÍ̬Ä($¹%(}%1¥¹ ±¥ åQáÐ ÀÌØí½%°ÅÕ½ÐíÍÑÑÅÕ½Ðì¤(}%1¥¹ ±¥ åQáÐ ÀÌØí½%°ÅÕ½ÐíAÉäÐÑ¡±ÑÈÅÕ½Ðì¤(ÀÌØíÍQáÐô}%AɽÁÉÑåÐ ÀÌØí½%°ÅÕ½Ðí¥¹¹ÉÑáÐÅÕ½Ðì¤(Ý¡¥±MÑÉ¥¹IáÀ ÀÌØíÍQáаÌäíe½ÕÈÁÉåÉÌ¡Ù¸¹ÍÝÉìå½ÕÈ¡±Ñ ¥¹ÉÍäÀÁ½¥¹ÑÌÌÌìÌäì¤ôÀ($$ÀÌØí½½ÉµÌÌô}%½ÉµÑ ½±±Ñ¥½¸ ÀÌØí½%°À¤(ÀÌØí½±µ¹ÐÐô}%½Éµ±µ¹ÑÑ ½±±Ñ¥½¸ ÀÌØí½½ÉµḬ̤̀($%}%1½]¥Ð ÀÌØí½%¤($%}%½ÉµMÕµ¥Ð ÀÌØí½½ÉµÌ̤($$ÀÌØíÍQáÐô}%AɽÁÉÑåÐ ÀÌØí½%°ÅÕ½Ðí¥¹¹ÉÑáÐÅÕ½Ðì¤(ݹ(ͱÀ ÌÌÀÀÀÀ¤(ݹ)¹Õ¹(()]¡¥±Ä(ÀÌØí¹5ÍôU%Ñ5Í ¤)MÝ¥Ñ ÀÌØí¹5Í) ÍÀÌØíU%}Y9Q} 1=M)á¥Ð() ÍÀÌØí1¥ÍÐÄ) ÍÀÌØí ½µ¼Ä)¹MÝ¥Ñ )]¹ Link to comment Share on other sites More sharing options...
cramaboule Posted July 31, 2007 Share Posted July 31, 2007 but if i try to press close after that nothing happens.Well you need to make sure that your script read your GUI again in a while 1 and have a exit !!!look at the HELP for thatFor the rest I do not undesrtand very well what you want !Anyway good luck ! My Autoit programs: MAC Address - - Delete Temp Files - - Ping Test - - Play Video with VLC full screen dual monitors - - Set IP - - Pics Converter - - AutoUpdater - - CPU Usage - - Ending Script Nicely - - GDI+ GUI crossfades (slide transitions) - - Beamer - - Search and Search in Files - - Silent Ninite Others: Export Icons into Dll - - My website Link to comment Share on other sites More sharing options...
gunnagitcha Posted July 31, 2007 Author Share Posted July 31, 2007 Well you need to make sure that your script read your GUI again in a while 1 and have a exit !!!look at the HELP for thatFor the rest I do not undesrtand very well what you want !Anyway good luck !i have no idea how to do that haha, where and what would i put Link to comment Share on other sites More sharing options...
enaiman Posted July 31, 2007 Share Posted July 31, 2007 This thread is the perfect example on how to get the others to do your work - without any headaches ... for you. What did you do so far? Got the first script from somewhere (someone else wrote it) and created a GUI using Koda but you don't have even the slightest idea on how a GUI works ... and you don't even bother to try to learn something. My suggestion? Try first to build small scripts and try to understand what's happening (there are many-many places where you can get help). Work a couple of days with small scripts and read the command descriptions ... and come back to this script - you will see that suddenly you can make improvements. Sorry for being so harsh but continuing this way (to ask for everything) you won't learn anything, you will have finally the script working (thanks to many kind people here) and your AutoIt knowledge will be the same as before (and you know how big is it). I have finally to give you a little credit for at least posting some code and doing some work in creating the interface. SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :) Link to comment Share on other sites More sharing options...
gunnagitcha Posted August 1, 2007 Author Share Posted August 1, 2007 This thread is the perfect example on how to get the others to do your work - without any headaches ... for you.What did you do so far?Got the first script from somewhere (someone else wrote it) and created a GUI using Koda but you don't have even the slightest idea on how a GUI works ... and you don't even bother to try to learn something.My suggestion? Try first to build small scripts and try to understand what's happening (there are many-many places where you can get help). Work a couple of days with small scripts and read the command descriptions ... and come back to this script - you will see that suddenly you can make improvements. Sorry for being so harsh but continuing this way (to ask for everything) you won't learn anything, you will have finally the script working (thanks to many kind people here) and your AutoIt knowledge will be the same as before (and you know how big is it).I have finally to give you a little credit for at least posting some code and doing some work in creating the interface.ok, first off asshole i wrote that script myself. i dont know much yes but i did write that script. although i have absolutely know knowledge in writing a GUI so what do you know? i came to the Graphical User Interface (GUI) Help and Support forums for what else? help and support. ive worked for a few days trying to understand how a gui works and ive gotten a few basics down but you know i kinda need some help from others to get past the basics. i joined these forums at about the same time you did, ive gotten past the "small scripts" but ive never bothered with a GUI. i came here to ask "the many kind people here" for some help. this script started as just a few commands to automate a webpage, but i wanted to see what results were coming from it so i figured i would dig deeper in the autoit world. instead of criticizing something you assumed how about try and share some of the mass knowledge of autoit scripting you have and help me out. i'm running off of idiotic trial and error at the moment Link to comment Share on other sites More sharing options...
enaiman Posted August 1, 2007 Share Posted August 1, 2007 Well ... this asshole (me) won't help you ... reason?You don't even try to think a little or to learn something.reason for saying it?To create a GUI it is enough to look into Help file at GUICtrlCreateButton - this is the example given there:#include <GUIConstants.au3>GUICreate("My GUI Button") ; will create a dialog box that when displayed is centeredOpt("GUICoordMode",2)$Button_1 = GUICtrlCreateButton ("Run Notepad", 10, 30, 100)$Button_2 = GUICtrlCreateButton ( "Button Test", 0, -1)GUISetState () ; will display an dialog box with 2 button; Run the GUI until the dialog is closedWhile 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $Button_1 Run('Notepad.exe') ; Will Run/Open Notepad Case $msg = $Button_2 MsgBox(0, 'Testing', 'Button 2 was pressed') ; Will demonstrate Button 2 being pressed EndSelectWendand the examples can go on ... Look into the Help file ... or you're too lazy to read it?Useless to argue with you ... SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :) Link to comment Share on other sites More sharing options...
gunnagitcha Posted August 1, 2007 Author Share Posted August 1, 2007 (edited) Well ... this asshole (me) won't help you ... reason?You don't even try to think a little or to learn something.reason for saying it?To create a GUI it is enough to look into Help file at GUICtrlCreateButton - this is the example given there:and the examples can go on ... Look into the Help file ... or you're too lazy to read it?Useless to argue with you ...no, i did read it, and i read just about every other part of it but some parts i dont understand. i figured out most of it which is how i came up with the script i have now. but the thing is i still cant grasp a bunch of it so i asked for help, its like going to school and learning from a teacher, i'm not the genius kid that teaches himself calculus i'm sorry.edit* also sorry about the asshole comment it just felt like an insult when youre telling me i didnt write my own script when i worked for like 2 hours just to get all the bugs out of it lol, i read up on it and used other scripts for guidance. Edited August 1, 2007 by gunnagitcha Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now