AutoFun Posted November 18, 2018 Share Posted November 18, 2018 Let's say i do have a variable which on every execution will add +1 and send key by key the result. Example (might be wrong or wright i am pretty much a begginer) Func Test() Local $z= 1 $z +1 Send ($z) Endfunc Can someone give me an example or tell me where i am doing wrong? I checked a lot of options online, none of them worked, and i am stuck for 4 hours with this. Much appreciated! Link to comment Share on other sites More sharing options...
Developers Jos Posted November 18, 2018 Developers Share Posted November 18, 2018 (edited) Welkom @AutoFun, As you can see in your script, you are resetting $z to 1 each time you call the func Test. Post something runable so we understand what you are doing and what isn't working, so we can better assist. Jos Edited November 18, 2018 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
caramen Posted November 19, 2018 Share Posted November 19, 2018 (edited) Local $z= 1 While (1) Test () Sleep(50) WEnd Func Test() $z += 1 Send ($z) EndFunc Maybe somthing like that ? As Jos said we cannot do more without more code from you. Edited November 19, 2018 by caramen My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki 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