Jump to content

Search the Community

Showing results for tags 'func'.

  • Search By Tags

    • func ×
    Type tags separated by commas.
  • Search By Author

Content Type



Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Found 16 results

  1. The Help file is very explicit about @error being reset to zero on entry to a User Function. But it is silent (as far as I can tell) about @error on Return from a Function. So I don't understand what is happening in this code. Why does FuncR( ) return @error = 0? Why does "SetError( @error...
  2. Hi guys, I see many script for delete files older then x in this forum, i found this and i think is very useful: #AutoIt3Wrapper_Au3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 -w 7 _FilesOlder(@ScriptDir, "*.*", 7, 1) ; Look for wildcards in the Help file. ; _FilesOlder("DIRECTORY", "FIL...
  3. Hi, I wrote the below code to learn user defined functions.. jam is the function which calculates summation and division of two numbers $a, $b.. I expect the $sum and $div receives the results $r and $s respectively from the function... but the msbox in the main program doesn't display results prope...
  4. Hi I am trying to check a number of applications are up to date and install the update if required. This will run as a shutdown script, pushed out through Group Policy. I am querying various registry keys to determine if The software is actually installed The software is at the...
  5. Hi guys, Could someone please tell me what I'm doing wrong with this code? I'm trying to take user input and then run a function with the same name, but it's not calling the function. So in the below after pressing Shift+F8 I would enter the text (without quotes) "testFunc". As you can...
  6. So currently I have some code waiting for a status to change(there is different indicators to check if this status has changed) Func oneRow($count) $globaltimer = _Timer_SetTimer($gui, 60000*10, "reset") $errTimer = TimerInit() While (1)         If PixelGetColor(1117, 326) = 0xC6C6C6 Then Exi...
  7. The best example is MouseClick, where you have MouseClick($Button, [$x, $y, [..........]]) Where if X is set, Y must be set too. I do know how to make it so that X and Y are optional, but I am not sure how to get Y mandatory if X is set. I did check the help, but didn't see anything there. Thanks in...
  8. <snip> Hello , This time my script is throwing an error which does not make sense... How can I fix this? Code Snippet from the screenshot: P.S You saw it right, I am making a small handy tool for AutoIt Coders, TD
  9. Ther is no something like $pos++, and that would be easy like $array[$pos++] I cant find out what is the solution for this problem, maybe someone can help me Thank you! #include <array.au3> Local $array[1024] Local $pos = -1 $array[PosIncrease()] &= "start" For $i = 1 To 10 $array[P...
  10. Goodmorning people, I've been busy with a usefull script for work but one part is not working as I thought it would. I took the known _IsEnabled function, change 3 words to have it check an disabled checkbox status The code below is not the actual script but it demonstrates the error. If you se...
  11. Hey folks, I just explored the new helpfile and found a new Keyword (dunno if its that new, but i never saw it before) called Volatile. It was made especally for CallBack and Com event functions, so I wanted to try that out. the advantage of this Keyword is, that you can run the Dll while you can...
  12. Hello I am trying to figure out why I am getting the error: Array variable has incorrect number of subscripts or subscript dimension range is incorrect And how to fix it. Here is my code: Func mysql($branch) ; , $element) ; establish an array with too many elements Local $output[80] ; e...
  13. hello, now i have a script and need it to stop it's function when "F3" is pressed. but i don't know what's wrong check that: HotKeySet("{F2}", "MSG") HotKeySet("{F3}", "xt") Func MSG() $chk = 1 while 1 MsgBox(0, "TEST", "1") MsgBox(0, "TEST", "2") MsgBox(0, "TEST", "3") MsgBox(0, "TEST", "4...
  14. hi agian , i need to make True progressbar.. you'll say "True?? How?" xD i'll tell you. in this script: #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <ProgressConstants.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include <Crypt.au3> #Region ### S...
  15. Below is my script. Can you please tell me why I keep getting exit code 0, and the script stops? I'm expecting it to just idle in the background and await my hotkey pressing. Global $Paused HotKeySet("F7", "Cycle2") HotKeySet("F8", "Cycle1") HotKeySet("F9", "Cycle3") Func Cycle3() $Paused =...
  16. Hi, at this path "@programfilesdir\AutoIt3\SciTE\api" there's file "au3.user.calltips.api" this file add funcs to autoit okay, now i added my func. but i want make it's color blue like other funcs. how should i do this thanks.
×
×
  • Create New...