Jump to content

nikooo1608

Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by nikooo1608

  1. Fixed it by myself. HotKeySet("{NUMPAD0}", "_theFunctionToCall") Func _theFunctionToCall() HotKeySet("{NUMPAD0}") ;reset hotkey While 1 $rd_time += 1 ConsoleWrite("testing code") If $rd_time > 200 Then HotKeySet("{NUMPAD0}", "_theFunctionToCall") ;set hotkey again before exit ExitLoop EndIf WEnd EndFunc ;==>_theFunctionToCall
  2. Hey everybody, this is my HotKeySet Code: HotKeySet("{NUMPAD0}", "_theFunctionToCall") And this is my function: Func _theFunctionToCall() While 1 $rd_time += 1 ConsoleWrite("testing code") If $rd_time > 200 Then ExitLoop EndIf WEnd EndFunc ;==>_theFunctionToCall Obviously my code is different. In my original code: in the while loop a label is changed in a gui (a kind of randomizer) .. The problem is that the script ends after about 200 milliseconds. if I call the function normal, everything is fine, but if I call the function via the hotkey, I can start it again if I just press the hotkey again. Is there any easy method to bypass this? So that you can't call the function again (via hotkey) while the function is already running? Maybe like a HotKeyReset?
  3. okay thanks a lot
  4. Details of decompiler Software is widespread everywhere! i just asked if my script is save or not.
  5. Hey, I know that it's possible to decompile any kind of script. But is it the same for the Includes? So I have a Mainscript which includes a script with personal (database connection) data.. If I compile the Main Code to exe, is it easily possible to decompile the exe and see all the code of the Includes also??
  6. I just wanted to thank you for the BEST Notifications UDF I'VE EVER SEEN!!! The Examples are like holy good. If you run the three examples you know everything about that UDF! Perfect! You can tell that you made an effort!
  7. I have an array that is sometimes full and sometimes not so full (not constant), and I want to make several variables out of this array (depending on expressions). array: $ a_test [5] variable that i want to have after some ifs: $ one = test $ two = hi $ four = welcome
  8. Like I said, I basically just want to have the Return Value of a Function as a variable name.
  9. Hey guys, I have a question, which I couldn't find anywhere in the forum. So here it is: How can I create a new variable which have a Function Return in the variable name. It sounds worse than it is. If the expression in the function is true, the function should return a value, which can then be used as a new variable with new content. Important for my project: If the expression in the function is not true, i.e. there is no return value, no variable may be created. Am I missing something? Are there easier ways? I didn't copy the whole code, because it's an bigger project. I want to end up with a couple of variables that have the return of this function in their name. Here's my code. Assign(), Eval() aren't working for me. For $a = 0 To 10 Assign(test($a), "Test Variable") Next Func test(ByRef $value) If $value = EXPRESSION "not important" Then Return $value EndIf EndFunc
×
×
  • Create New...