Arclite86 Posted March 23, 2015 Posted March 23, 2015 when i try to run the script on my desktop pc I suddently get allot of error but when i run it on my laptop it runs perfect and im using the same version v3.3.12.0 versi this are the errors that i get from my desktop pc but not on my laptop expandcollapse popup"C:\Users\joesoef\Desktop\addmefast.au3"(46,17) : warning: $oIE: possibly used before declaration. _IELoadWait($oIE) ~~~~~~~~~~~~~~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1703,4) : error: syntax error local ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1703,4) : error: Statement cannot be just an expression. local ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1731,1) : error: missing EndSwitch. EndSelect ^ "C:\Users\joesoef\Desktop\addmefast.au3"(1700,7) : REF: missing EndSwitch. Select ~~~~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1731,1) : error: missing Wend. EndSelect ^ "C:\Users\joesoef\Desktop\addmefast.au3"(1570,14) : REF: missing Wend. Switch $nMsg ~~~~~~~~~~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1731,1) : error: syntax error EndSelect ^ "C:\Users\joesoef\Desktop\addmefast.au3"(1731,1) : error: Statement cannot be just an expression. EndSelect ^ "C:\Users\joesoef\Desktop\addmefast.au3"(1738,4) : error: syntax error local ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1738,4) : error: Statement cannot be just an expression. local ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1740,1) : error: syntax error Case ^ "C:\Users\joesoef\Desktop\addmefast.au3"(1740,1) : error: Statement cannot be just an expression. Case ^ "C:\Users\joesoef\Desktop\addmefast.au3"(1744,4) : error: syntax error Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1744,4) : error: Statement cannot be just an expression. Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1748,4) : error: syntax error Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1748,4) : error: Statement cannot be just an expression. Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1752,4) : error: syntax error Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1752,4) : error: Statement cannot be just an expression. Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1756,4) : error: syntax error Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1756,4) : error: Statement cannot be just an expression. Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1760,4) : error: syntax error Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1760,4) : error: Statement cannot be just an expression. Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1766,1) : error: syntax error EndSelect ^ "C:\Users\joesoef\Desktop\addmefast.au3"(1766,1) : error: Statement cannot be just an expression. EndSelect ^ "C:\Users\joesoef\Desktop\addmefast.au3"(1773,4) : error: syntax error local ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1773,4) : error: Statement cannot be just an expression. local ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1775,1) : error: syntax error Case ^ "C:\Users\joesoef\Desktop\addmefast.au3"(1775,1) : error: Statement cannot be just an expression. Case ^ "C:\Users\joesoef\Desktop\addmefast.au3"(1779,4) : error: syntax error Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1779,4) : error: Statement cannot be just an expression. Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1783,4) : error: syntax error Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1783,4) : error: Statement cannot be just an expression. Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1787,4) : error: syntax error Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1787,4) : error: Statement cannot be just an expression. Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1791,4) : error: syntax error Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1791,4) : error: Statement cannot be just an expression. Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1795,4) : error: syntax error Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1795,4) : error: Statement cannot be just an expression. Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1799,4) : error: syntax error Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1799,4) : error: Statement cannot be just an expression. Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1804,1) : error: syntax error EndSelect ^ "C:\Users\joesoef\Desktop\addmefast.au3"(1804,1) : error: Statement cannot be just an expression. EndSelect ^ "C:\Users\joesoef\Desktop\addmefast.au3"(1811,4) : error: syntax error local ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1811,4) : error: Statement cannot be just an expression. local ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1813,1) : error: syntax error Case ^ "C:\Users\joesoef\Desktop\addmefast.au3"(1813,1) : error: Statement cannot be just an expression. Case ^ "C:\Users\joesoef\Desktop\addmefast.au3"(1817,4) : error: syntax error Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1817,4) : error: Statement cannot be just an expression. Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1821,4) : error: syntax error Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1821,4) : error: Statement cannot be just an expression. Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1825,4) : error: syntax error Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1825,4) : error: Statement cannot be just an expression. Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1829,4) : error: syntax error Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1829,4) : error: Statement cannot be just an expression. Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1833,4) : error: syntax error Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1833,4) : error: Statement cannot be just an expression. Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1841,1) : error: syntax error EndSelect ^ "C:\Users\joesoef\Desktop\addmefast.au3"(1841,1) : error: Statement cannot be just an expression. EndSelect ^ "C:\Users\joesoef\Desktop\addmefast.au3"(1848,4) : error: syntax error local ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1848,4) : error: Statement cannot be just an expression. local ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1850,1) : error: syntax error Case ^ "C:\Users\joesoef\Desktop\addmefast.au3"(1850,1) : error: Statement cannot be just an expression. Case ^ "C:\Users\joesoef\Desktop\addmefast.au3"(1854,4) : error: syntax error Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1854,4) : error: Statement cannot be just an expression. Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1858,4) : error: syntax error Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1858,4) : error: Statement cannot be just an expression. Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1862,4) : error: syntax error Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1862,4) : error: Statement cannot be just an expression. Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1866,4) : error: syntax error Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1866,4) : error: Statement cannot be just an expression. Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1870,4) : error: syntax error Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1870,4) : error: Statement cannot be just an expression. Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1875,1) : error: syntax error EndSelect ^ "C:\Users\joesoef\Desktop\addmefast.au3"(1875,1) : error: Statement cannot be just an expression. EndSelect ^ "C:\Users\joesoef\Desktop\addmefast.au3"(1882,4) : error: syntax error local ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1882,4) : error: Statement cannot be just an expression. local ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1884,1) : error: syntax error Case ^ "C:\Users\joesoef\Desktop\addmefast.au3"(1884,1) : error: Statement cannot be just an expression. Case ^ "C:\Users\joesoef\Desktop\addmefast.au3"(1888,4) : error: syntax error Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1888,4) : error: Statement cannot be just an expression. Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1892,4) : error: syntax error Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1892,4) : error: Statement cannot be just an expression. Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1896,4) : error: syntax error Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1896,4) : error: Statement cannot be just an expression. Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1900,4) : error: syntax error Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1900,4) : error: Statement cannot be just an expression. Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1904,4) : error: syntax error Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1904,4) : error: Statement cannot be just an expression. Case ~~~^ "C:\Users\joesoef\Desktop\addmefast.au3"(1909,1) : error: syntax error EndSelect ^ "C:\Users\joesoef\Desktop\addmefast.au3"(1909,1) : error: Statement cannot be just an expression. EndSelect ^ "C:\Users\joesoef\Desktop\addmefast.au3"(1920,2) : error: syntax error EndSwitch ^ "C:\Users\joesoef\Desktop\addmefast.au3"(1920,2) : error: Statement cannot be just an expression. EndSwitch ^ "C:\Users\joesoef\Desktop\addmefast.au3"(1921,1) : error: Statement cannot be just an expression. WEnd ^ "C:\Users\joesoef\Desktop\addmefast.au3"(1800,16) : error: input7(): undefined function. Call("input7") ~~~~~~~~~~~~~~~^ C:\Users\joesoef\Desktop\addmefast.au3 - 92 error(s), 1 warning(s) !>23:08:32 AU3Check ended. Press F4 to jump to next error.rc:2 +>23:08:32 AutoIt3Wrapper Finished. >Exit code: 2 Time: 2.206
JohnOne Posted March 23, 2015 Posted March 23, 2015 details of computers and OS, scite version, au3check version etc.. is needed since you wont post your code. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Arclite86 Posted March 23, 2015 Author Posted March 23, 2015 (edited) details of pc: processor: intel® pentium® dual cpu E2180 @ 2.000GHZ 2.00GHZ installed memory: 4.00 gb (3.37 GBusbale) system type 64-bit operation system scite-lite: Version 3.4.1 Jun 1 2014 18:45:52 by Neil Hodgson. autoit version: v3.3.12.0 (also installed on laptop) I downloaded the same version on the download page (v3.3.12.0) this is the part of the script were the most errors come from: expandcollapse popup$input1read = GUICtrlRead($input1) Select local $input1read = 1 Case $input1read = 1 Call("input1") GUICtrlSetData($input16,$hokje0) Case $input1read = 2 Call("input2") GUICtrlSetData($input16,$hokje1) Case $input1read = 3 Call("input3") GUICtrlSetData($input16,$hokje2) Case $input1read = 4 Call("input4") GUICtrlSetData($input16,$hokje3) Case $input1read = 5 Call("input5") GUICtrlSetData($input16,$hokje4) Case $input1read = 6 Call("input6") GUICtrlSetData($input16,$hokje5) EndSelect $input2read = GUICtrlRead($input2) Select local $input2read = 1 Case $input2read = 1 Call("input1") GUICtrlSetData($input17,$hokje0) Case $input2read = 2 Call("input2") GUICtrlSetData($input17,$hokje1) Case $input2read = 3 Call("input3") GUICtrlSetData($input17,$hokje2) Case $input2read = 4 Call("input4") GUICtrlSetData($input17,$hokje3) Case $input2read = 5 Call("input5") GUICtrlSetData($input17,$hokje4) Case $input2read = 6 Call("input6") GUICtrlSetData($input17,$hokje5) EndSelect $input3read = GUICtrlRead($input3) Select local $input3read = 1 Case $input3read = 1 Call("input1") GUICtrlSetData($input18,$hokje0) Case $input3read = 1 Call("input2") GUICtrlSetData($input18,$hokje1) Case $input3read = 2 Call("input3") GUICtrlSetData($input18,$hokje2) Case $input3read = 3 Call("input4") GUICtrlSetData($input18,$hokje2) Case $input3read = 4 Call("input5") GUICtrlSetData($input18,$hokje3) Case $input3read = 5 Call("input6") GUICtrlSetData($input18,$hokje4) Case $input3read = 6 Call("input7") GUICtrlSetData($input18,$hokje5) EndSelect $input4read = GUICtrlRead($input4) Select local $input4read = 1 Case $input4read = 1 Call("input1") GUICtrlSetData($input19,$hokje0) Case $input4read = 2 Call("input2") GUICtrlSetData($input19,$hokje1) Case $input4read = 3 Call("input3") GUICtrlSetData($input19,$hokje2) Case $input4read = 4 Call("input4") GUICtrlSetData($input19,$hokje3) Case $input4read = 5 Call("input5") GUICtrlSetData($input19,$hokje4) Case $input4read = 6 Call("input6") GUICtrlSetData($input19,$hokje5) EndSelect $input5read = GUICtrlRead($input5) Select local $input5read = 1 Case $input5read = 1 Call("input1") GUICtrlSetData($input20,$hokje0) Case $input5read = 2 Call("input2") GUICtrlSetData($input20,$hokje1) Case $input5read = 3 Call("input3") GUICtrlSetData($input20,$hokje2) Case $input5read = 4 Call("input4") GUICtrlSetData($input20,$hokje3) Case $input5read = 5 Call("input5") GUICtrlSetData($input20,$hokje4) Case $input5read = 6 Call("input6") GUICtrlSetData($input20,$hokje5) EndSelect $input6read = GUICtrlRead($input6) Select local $input6read = 1 Case $input6read = 1 Call("input1") GUICtrlSetData($input21,$hokje0) Case $input6read = 2 Call("input2") GUICtrlSetData($input21,$hokje1) Case $input6read = 3 Call("input3") GUICtrlSetData($input21,$hokje2) Case $input6read = 4 Call("input4") GUICtrlSetData($input21,$hokje3) Case $input6read = 5 Call("input5") GUICtrlSetData($input21,$hokje4) Case $input6read = 6 Call("input6") GUICtrlSetData($input21,$hokje5) EndSelect EndSwitch WEnd Edited March 23, 2015 by Arclite86
Sori Posted March 23, 2015 Posted March 23, 2015 Can you post the full code? The errors say that pieces are missing, it's possible that something earlier in the code is causing an issue later. If you need help with your stuff, feel free to get me on my Skype. I often get bored and enjoy helping with projects.
Solution JohnOne Posted March 23, 2015 Solution Posted March 23, 2015 I'd first try moving local $input1read = 1 outside of your select block. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Arclite86 Posted March 23, 2015 Author Posted March 23, 2015 (edited) this is the full script expandcollapse popup#include <MsgBoxConstants.au3> #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <GUIListBox.au3> #include <WindowsConstants.au3> #include <staticConstants.au3> #include <IE.au3> #include <String.au3> #include <Excel.au3> #include <Array.au3> #include <FileConstants.au3> #Region ### START Koda GUI section ### Form= $Form1_1 = GUICreate("Form1", 477, 291, 293, 182) $start = GUICtrlCreateButton("start", 72, 16, 65, 41) $go = GUICtrlCreateButton("go", -8, 16, 73, 41) GUICtrlCreateLabel("", 16, 72, 4, 4) $Input1 = GUICtrlCreateInput("Input1", 0, 64, 41, 21) $Input2 = GUICtrlCreateInput("Input2", 0, 88, 41, 21) $Input3 = GUICtrlCreateInput("Input3", 0, 112, 41, 21) $Input4 = GUICtrlCreateInput("Input4", 0, 136, 41, 21) $Input5 = GUICtrlCreateInput("Input5", 0, 160, 41, 21) $Input6 = GUICtrlCreateInput("Input6", 0, 184, 41, 21) $Input16 = GUICtrlCreateInput("", 48, 64, 145, 21) $Input17 = GUICtrlCreateInput("", 48, 88, 145, 21) $Input18 = GUICtrlCreateInput("", 48, 112, 145, 21) $Input19 = GUICtrlCreateInput("", 48, 136, 145, 21) $Input20 = GUICtrlCreateInput("", 48, 160, 145, 21) $Input21 = GUICtrlCreateInput("", 48, 184, 145, 21) $random = GUICtrlCreateInput("random", 144, 24, 57, 21) $randombutton = GUICtrlCreateButton("Random", 208, 24, 57, 25) $test = GUICtrlCreateButton("test", 272, 24, 57, 25) GUISetState(@SW_SHOW) $test2 = GUICtrlCreateButton("test2", 336, 24, 57, 25) #EndRegion ### END Koda GUI section ### func input1 () func input2 () func input3 () func input4 () func input5 () func input6 () func liking() While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit case $test2 MouseMove(324,42) MouseClick("left") sleep(500) Send("website") sleep(500) Send("{ENTER}") case $test Global $oIE =_IECreate ("website") _IELoadWait($oIE) sleep(2000) MouseMove(1184,62) MouseClick("left") _IELoadWait($oIE) MouseMove(390,66) MouseClick("left") ;~ ;;;;;;Call("input1") _IELoadWait($oIE) _IELoadWait($oIE) sleep(1400) MouseMove(209,70) MouseClick("left") sleep(500) MouseMove(209,70) MouseClick("left") sleep(500) MouseMove(324,42) MouseClick("left") sleep(500) Send("website") sleep(500) Send("{ENTER}") Call("input1") sleep(1400) MouseMove(323,66) MouseClick("left") sleep(900) Call("liking") Case $randombutton $random2 = Random(32,100,1) GUICtrlSetData($random,$random2) $random3 = GUICtrlRead ($random) sleep($random3) case $go Call("shuffle") case $start Global $oIE =_IECreate ("website") _IELoadWait($oIE) sleep(2000) MouseMove(1184,62) MouseClick("left") _IELoadWait($oIE) MouseMove(390,66) MouseClick("left") ;~ ;;;;;;Call("input1") _IELoadWait($oIE) _IELoadWait($oIE) sleep(1400) MouseMove(209,70) MouseClick("left") sleep(500) MouseMove(209,70) MouseClick("left") sleep(500) MouseMove(324,42) MouseClick("left") sleep(500) Send("website") sleep(500) Send("{ENTER}") Call("input1") Call("liking") $hokje0 = ("name1") $hokje1 = ("name2") $hokje2 = ("name3") $hokje3 = ("name4") $hokje4 = ("name5") $hokje5 = ("name6") $input1read = GUICtrlRead($input1) Select local $input1read = 1 Case $input1read = 1 Call("input1") GUICtrlSetData($input16,$hokje0) Case $input1read = 2 Call("input2") GUICtrlSetData($input16,$hokje1) Case $input1read = 3 Call("input3") GUICtrlSetData($input16,$hokje2) Case $input1read = 4 Call("input4") GUICtrlSetData($input16,$hokje3) Case $input1read = 5 Call("input5") GUICtrlSetData($input16,$hokje4) Case $input1read = 6 Call("input6") GUICtrlSetData($input16,$hokje5) EndSelect $input2read = GUICtrlRead($input2) Select local $input2read = 1 Case $input2read = 1 Call("input1") GUICtrlSetData($input17,$hokje0) Case $input2read = 2 Call("input2") GUICtrlSetData($input17,$hokje1) Case $input2read = 3 Call("input3") GUICtrlSetData($input17,$hokje2) Case $input2read = 4 Call("input4") GUICtrlSetData($input17,$hokje3) Case $input2read = 5 Call("input5") GUICtrlSetData($input17,$hokje4) Case $input2read = 6 Call("input6") GUICtrlSetData($input17,$hokje5) EndSelect $input3read = GUICtrlRead($input3) Select local $input3read = 1 Case $input3read = 1 Call("input1") GUICtrlSetData($input18,$hokje0) Case $input3read = 1 Call("input2") GUICtrlSetData($input18,$hokje1) Case $input3read = 2 Call("input3") GUICtrlSetData($input18,$hokje2) Case $input3read = 3 Call("input4") GUICtrlSetData($input18,$hokje2) Case $input3read = 4 Call("input5") GUICtrlSetData($input18,$hokje3) Case $input3read = 5 Call("input6") GUICtrlSetData($input18,$hokje4) Case $input3read = 6 Call("input7") GUICtrlSetData($input18,$hokje5) EndSelect $input4read = GUICtrlRead($input4) Select local $input4read = 1 Case $input4read = 1 Call("input1") GUICtrlSetData($input19,$hokje0) Case $input4read = 2 Call("input2") GUICtrlSetData($input19,$hokje1) Case $input4read = 3 Call("input3") GUICtrlSetData($input19,$hokje2) Case $input4read = 4 Call("input4") GUICtrlSetData($input19,$hokje3) Case $input4read = 5 Call("input5") GUICtrlSetData($input19,$hokje4) Case $input4read = 6 Call("input6") GUICtrlSetData($input19,$hokje5) EndSelect $input5read = GUICtrlRead($input5) Select local $input5read = 1 Case $input5read = 1 Call("input1") GUICtrlSetData($input20,$hokje0) Case $input5read = 2 Call("input2") GUICtrlSetData($input20,$hokje1) Case $input5read = 3 Call("input3") GUICtrlSetData($input20,$hokje2) Case $input5read = 4 Call("input4") GUICtrlSetData($input20,$hokje3) Case $input5read = 5 Call("input5") GUICtrlSetData($input20,$hokje4) Case $input5read = 6 Call("input6") GUICtrlSetData($input20,$hokje5) EndSelect $input6read = GUICtrlRead($input6) Select local $input6read = 1 Case $input6read = 1 Call("input1") GUICtrlSetData($input21,$hokje0) Case $input6read = 2 Call("input2") GUICtrlSetData($input21,$hokje1) Case $input6read = 3 Call("input3") GUICtrlSetData($input21,$hokje2) Case $input6read = 4 Call("input4") GUICtrlSetData($input21,$hokje3) Case $input6read = 5 Call("input5") GUICtrlSetData($input21,$hokje4) Case $input6read = 6 Call("input6") GUICtrlSetData($input21,$hokje5) EndSelect EndSwitch WEnd Edited March 23, 2015 by Arclite86
SanCon Posted March 23, 2015 Posted March 23, 2015 I would also recommend declaring all variables by using: Opt("MustDeclareVars", 1) When I worked at Sony, we created a program using AutoIt! which automated some of our testing. Program worked fine in 99% of computers. Due to some bad practice, we were declaring variables on the fly. Once we switched to "Must Declare Variables" the issue we experienced (the program would complain at random that variables were being used before being declared) went away. Hope that helps.
JohnOne Posted March 23, 2015 Posted March 23, 2015 (edited) One error will cause the next. repo.. $var = 0 Select Local $var2 = 1 ; move this it has no place there. Case $var = 2 MsgBox(0, 0, 0) EndSelect Edited March 23, 2015 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Arclite86 Posted March 23, 2015 Author Posted March 23, 2015 I would also recommend declaring all variables by using: Opt("MustDeclareVars", 1) When I worked at Sony, we created a program using AutoIt! which automated some of our testing. Program worked fine in 99% of computers. Due to some bad practice, we were declaring variables on the fly. Once we switched to "Must Declare Variables" the issue we experienced (the program would complain at random that variables were being used before being declared) went away. Hope that helps. could you please give me an example how to use this function sir, by the way there are some screenshots from the problem:
Arclite86 Posted March 23, 2015 Author Posted March 23, 2015 strange i think i fixed al the bugs by just deleting the: "local $inputread = 1"
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