Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/11/2019 in all areas

  1. Melba23

    Keyloggers

    The Forum Rules specifically mention that "keyloggers" are a prohibited subject on this forum. Of late we have had several threads locked because they have strayed (usually unwittingly) into keylogger territory. Here is a reminder of what Jon (the site owner) has set out as the basis for acceptability: "how to check for a few keys being pressed is one thing" We are not going to define "a few" in absolute terms, but if you post any code which checks for the best part of the keyboard you can be absolutely sure that you are in breach of the rules, that your thread will be locked, and that sanctions may follow. So please do not post such scripts - we do not want to be heavy-handed, but after this announcement your excuses had better be very good ones! M23
    2 points
  2. Skysnake, You use function variables this way: Global $MyFuncVar = MyFunc $MyFuncVar( 123 ) Func MyFunc( $i ) ConsoleWrite( $i & @CRLF ) EndFunc This applies to both common functions and callback functions. No need to use Call().
    1 point
  3. hello @Sanjeevi, welcome to the AutoIt forum. first - your topic title is correct. AutoIt indeed does not directly support DevExpress controls. second - when you post code to this forum, please use the code tags (the icon looking like < > in the toolbar). third - disregard the UAC thing. as long as you have #RequireAdmin at the top of your script, UAC prompt is triggered before the script even begins, so the entire script is already elevated. and finally - google "autoit devexpress" yields some interesting results, especially this article from the DevExpress support forum, stating that DevExpress might support UIAutomation (which AutoIt does support, with an additional UDF pinned to the top of the "Example Scripts" forum). this article also mentions their "Coded UI Test Extension", which i know nothing about but might be useful to you.
    1 point
  4. @toto22 Just edit the first post and add "Solved" to the title
    1 point
  5. Something like: FileWrite($sFileName, StringStripWS(_ArrayToString($aOldSymbols, @CRLF), 3))
    1 point
  6. @toto22 Taking a look at the _FileWriteFromArray() function, seems that the @CRLF is always added at the end of the file, both for one dimensional and two dimensional array: FileWrite($hFile, $a_Array[$x] & @CRLF) FileWrite($hFile, $s_Temp & @CRLF)
    1 point
  7. @gcue Edited the previous post \w is used when you want to "capture" a word character, which is in the range [a-zA-Z0-9_]; \W is used when you want to capture anything that is NOT a word character. When you need to "capture" digits only, then use \d, and nothing else
    1 point
  8. Hi @Sanjeevi, and welcome to the AutoIt forums Could you please post your code?
    1 point
  9. Melba23

    Keyloggers

    Previously when code which was (or could very easily be converted to) a keylogger has appeared on the forum I have limited my actions to deleting the code and warning the poster. I even went to the trouble to post the above announcement so there could be no doubt as to the fact that such code was not permitted here. Yesterday I had to remove code which checked the entire keyboard and lit up the pressed key on a "virtual keyboard" GUI. Note that the post above talks of "code which checks for the best part of the keyboard" - that is exactly what this code did and with the addition of a few lines it could easily have been turned into a crude, but entirely workable, keylogger. The poster is now enjoying a short holiday - and the same fate awaits anyone else who posts similar code in future. The prohibitions in the Forum rules are there to keep this forum clean and to protect the reputation of AutoIt - which is in the interests of us all. Please use your brains and do not post code which flouts the spirit, if not the exact letter, of the rules. If you do then do not complain if you are moderated and warned. M23
    1 point
×
×
  • Create New...