Jump to content

Search the Community

Showing results for tags 'AutoIt'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • Forum
  • AutoIt

Calendars

  • Community Calendar

Found 478 results

  1. Hey there! Is there a way to detect movement only for 1 specific window? HWnd is not really working, it still detects movement in all the windows within the region This is my script: ;Checksum actual HotKeySet("{f2}", 'exit_') MsgBox(0, '', '0') Beep(500, 2000) $Hwnd = WinActive('') while 1 $Checksum = PixelChecksum(211, 650, 1094, 914, 1, $Hwnd) If PixelChecksum(211, 650, 1094, 914, 1, $Hwnd) <> $Checksum Then For $i = 1 To 100 Beep(1000, 50) Next MsgBox(0, '', 'New message!', 1) EndIf WEnd Func exit_() Beep(500, 1000) Exit 0 EndFunc I just want to check whenever a message comes because the app i use doesn't give notifications properly. Any help is really appreciated!
  2. Can you please see whats wrong im doing in the below code? i can read few registry entry but not all for eg, i am able to get value of "Shell" Key from the registry path but not AutoAdminLogon which has the value of "1", is there any change i have to do to read numeric values? Global $shello = RegRead ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","Shell" ) ConsoleWrite("This is Hello"& $shello) above command returns proper value , but same command with AutoAdminLogon returns null as shown in below ? infact registry has the value of 1. Global $shello = RegRead ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","AutoAdminLogon" ) ConsoleWrite("This is Hello"& $shello)
  3. Hello, I've been searching on how to select the first row in my database which includes a time column based on the latest start_time date for today's date. This is my current code: Local $iCurrentDate = _Now() Local $sqlHandle = _dbOpen($sDbPath) Local $aResult, $iRows, $iCols _SQLite_GetTable2d($sqlHandle, "SELECT start_time FROM " & $srawDb & " ORDER BY datetime(start_time) DESC LIMIT 1", $aResult, $iRows, $iCols) _ArrayDisplay($aResult) _dbClose($sDbpath) What it does is it gets the first row entry in the database however it does not select the latest start_time entry in the database, it always select the first row. I've tried changing DESC to ASC to see if that will do it but the issue still remains. Any thoughts on this? Thanks in advance. *EDIT The date format in the database is by MM/DD/YYYY HH:MM:SS.
  4. Hello, I Have clicked on save as option to save a file, while doing that I need to rename a file appending with sysdate. I have searched in google find the below one line of code: FileMove("C:\somefile.txt", "C:\somefile1.txt"), When I am trying to append with sysdate. It is not happening. Please help me out with the small issue.
  5. hey i would like to know if its possible to take a string like this $string = "onethousandninehundredeightyfive" and convert it into: $string = "one thousand nine hundred eighty five" i have something going on here but its no use $string = "onethousandninehundredeightyfive" Global $array[9] = ['one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine'] Global $array1[19] = ['onethousand', 'twothousand', 'threethousand', 'fourthousand', 'fivethousand', 'sixthousand', 'seventhousand', 'eightthousand', 'ninethousand','tenthousand','hundred', 'twohundred', 'threehundred', 'fourhundred', 'fivehundred', 'sixhundred', 'sevenhundred', 'eighthundred', 'ninehundred'] MsgBox(0, 0, AddSpaces($string)) Func AddSpaces($string) Local $finalStr $length = StringLen($string) For $x = 0 To $length Local $trim = StringTrimRight($string, $x) For $h = 0 To 18 If $trim = $array1[$h] Then $finalStr = $finalStr & " " & $trim $string = StringTrimLeft($string, $h) $length = StringLen($string) EndIf Next For $z = 0 To 8 If $trim = $array[$z] Then $finalStr = $finalStr & " " & $trim $string = StringTrimLeft($string, $z) $length = StringLen($string) EndIf Next Next Return $finalStr EndFunc ;==>AddSpaces
  6. This udf right here converts 700 into Seven Hundred, is there a way to reverse it so it would do from text into numbers?
  7. AutoIt SDL2 Wrapper

    Hello, I have recently finished my wrapper of SDL2 for Autoit. I've made a couple of example programs as well. I plan to make a few more. You can get it here. https://github.com/gAndy50/AuotIt_Wrappers Any feedback is appericated, thanks.
  8. Read Text by Image

    Hey There! So, what i need to do is an app that can read text in a image (I.e. a png that has text saying "This is a png" and return the text to a variable) I'm pretty much a newbie on AutoIt, my purpose is doing that but i don't know any function that can Any help is much appreciated
  9. How can i exit from a procedure in auto Func test() if x=o then     return endif endFunc
  10. Hi Small question. I trying to find all index in an array with value higher than 7. How can that be possible?
  11. Could someone help me create or give an idea of how to do a incrementing for loop that would do this: https://i.imgur.com/YFUt47H.gifv I'm having a hard time figuring it out :S
  12. I have a script that just adds some keyboard shortcuts for things like displaying the current song and artist, moving the window to the side so it won't pop up in my way, and play/pause, next song, previous song (these are the only 3 to still work since they don't need the window handle.) In some update recently, Spotify's window class swapped from "[CLASS:SpotifyMainWindow]" to "[CLASS:Chrome_WidgetWin_0]". Using the new class in my controls doesn't seem to work, I've tried getting the window handle from the process handle (_GetHwndFromPID($PID)) but that seems to fail as well. Does anybody have some idea of a way I could get this script working again? edit: seems like discord has the same window class name, so could be some issue with this? Still not sure of a way to solve the issue though, I added a function to get the handle of the active window and can just use that now, but it was able to find it on its own before on spotify startup or script startup which would be preferred. Thanks!
  13. Hello I would like to Run Outlook macros from Autoit every 1 hour, below script unable to run macros. While 1 $Minute = Random(1,59,1) Do Sleep(1000) Until @Min = $Minute ; do whatever ; Since we want it to run randomly once an hour, we need to calculate how much time is left before the hour is up, and sleep that length of time. $s = ((60 - $Minute) * 60) * 1000 Sleep($s) $oOApp = ObjCreate("Outlook.Application") $oOApp.Run("SaveAttachments") ; Run Outlook Macros WEnd
  14. Hello, I'm having an issue on the _IEImgClick function. It basically opens a specified webpage and should click on the image. However, I'm having an error upon running the code. IE.au3 T3.0-2 Warning from function _IEImgClick, $_IESTATUS_NoMatch Below is my current code at the moment. ; Click on IMG by src sub-string #include <IE.au3> Local $oIE = _IE_Example("basic") _IEImgClick($oIE, "autoit_6_240x100.jpg", "src") _IEQuit($oIE) It is an example from the AutoIT help file, I'm not sure why it is stating that error tho as it should be fine. Any of you came up with a solution to this? Thanks in advance.
  15. I've a Server and a Client. The Client send's the result of _ScreenCapture_Capture("") . But it doesnt works when i try to Show it in a gui at the Server. Can you please paste a Little bit code how i can send a HBITMAP Handle via TCPSend() and how i can recv it correctly? Thanks for your help^^ PS: Sorry for bad english, i'm from germany^^
  16. Hello, Is there a way wherein I can access the data from an array coming from an Excel file then have it assigned on to a variable? Below is a snippet of my current code. For now, it just reads and outputs the data from the excel file and have it displayed via an array. #include <Array.au3> #include <Excel.au3> #include <MsgBoxConstants.au3> Local $oExcel = _Excel_Open(False) If @error Then Exit MsgBox(0, "Error", "Error creating application object." & @CRLF & "Error: " & @error & " Extends: " & @extended) ; Open Excel Woorkbook and return object Local $sWorkbook = @ScriptDir & "\Excel Files\Test Data.xlsx" Local $oWorkbook = _Excel_BookOpen($oExcel, $sWorkbook, False, True) If @error Then MsgBox(0, "Error", "Error opening workbook'" & $sWorkbook & ".'" & @CRLF & "Error: " & @error & "Extends: " & @extended) _Excel_Close($oExcel) Exit EndIf Local $aResult = _Excel_RangeRead($oWorkbook) ; Error Trapping If @error Then MsgBox(0, "Error", "Error reading data from '" & $sWorkbook & ".'" & @CRLF & "Error: " & @error & " Extends: " & @extended) _Excel_Close($oExcel) Exit EndIf _ArrayDisplay($aResult) My Excel file has values from Column A to H with values from 1 to 30, what I desired to do is have the value in "A7" assigned on to a variable. Any help is appreciated. Thanks in advance.
  17. Hello, I want to save a screenshot with _ScreenCapture_Capture. My code: #include <ScreenCapture.au3> _ScreenCapture_Capture(@ScriptDir & "/test.jpg", 0, 0, 1366, 700) The problem is not to capture the screen, the problem is to save the image. Can you help me? Thanks.
  18. Hi dear I have a question please Can we customize error messages in autoit script? I mean internal error messages for example AutoIt Error Line 4 (File "D:\my projects\NVDA Manager\New AutoIt v3 Script.au3"): $script[1] = 1 $script^ ERROR Error: Subscript used on non-accessible variable. For example, I want to customize this message Is this possible? am waiting for your answers
  19. i have a 3d array that is [10][20][6] for now lets assume that its [3][3][3] so it looks something like this [[[1,2,3],[1,2,3],[1,2,3]], [[1,2,3],[1,2,3],[1,2,3]], [[1,2,3],[1,2,3],[1,2,3]]] i need to add another 1d array to the position [2][3] ( i hope its clear) so it becomes like this [[[1,2,3],[1,2,3],[1,2,3]], [[1,2,3],[1,2,3],[1,2,3]], [[1,2,3],[1,2,3],[1,2,3],[4,5,6]]] and i have no idea how
  20. I'm trying to crap some info from a fullscreen window with AutoIt Window Info, but as soon I press the Finder Tool the fullscreen disables. Does anyone have an idea why it is doing that?
  21. Hi. My color of pixel exists more than one place. How can I control the position so I find the exact position before I continue in my code?
  22. cmd Unicode text maker

    Hi dear With this script you can print Unicode text in the CMD screen the script is easy to use just you write the text that contains Unicode in the first input and the script automatically reflect the code in the second input you can copy the text to the clipboard or you can try printing the text in the CMD window I apologize to everyone for colors and shape if not appropriate I'm a blind man and I do not see Thank you for your understanding Greetings to all of youCmdUtM.au3
  23. Hello all, i have about 20 arrays in my script and i need to delete the first element of each, i have the name of the arrays in another array (its used in another part of the script) and i tried to passing the names to from that array to the _ArrayDelete function but nothing happens and i get an error code :1 which state that i'm trying to delete an array which is not an array code example #include <Array.au3> global $allarrays[3] = ['array1','array2','array3'] global $array1[3] = ['1', '2', '3'] global $array2[3] = ['1', '2', '3'] global $array3[3] = ['1', '2', '3'] for $i = 0 to UBound($allarrays) - 1 _ArrayDelete($allarrays[$i], 0) Next _ArrayDisplay($array1) obviously i can just use _arraydelete over and over however i'm looking for a more elegant way of doing this
  24. File Search

    Hi all, Below is my script, Pls advise me if any wrong on that....File exit in location but the return -1. FileOpen($file, 0) $line = FileReadLine($file) MsgBox(0,'',$line) FileClose($file) Local $aArray = _FileListToArrayRec($serverpath, "*|*.txt", $FLTAR_FILES, $FLTAR_RECUR, $FLTAR_SORT, $FLTAR_NOPATH) If @error Then MsgBox($MB_SYSTEMMODAL, "Ooops!", "No files found") Else ;_ArrayDisplay($aArray, "Sorted tree") Local $hSearch = FileFindFirstFile($line) MsgBox(0,'',$hSearch)
  25. Hi, I am trying to use the ControlClick in a "save as"-window to select the path of where to save the document. I found out that when in press the icon in front of the path, i select the path. So I am trying to press that button (i have attached a print screen of this window). While trying to figure out how i had to use the ControlClick, it said somewhere that i could us Au3Info to find out what title,... i should use with the ControlClick. The result of the Au3Info I have attached aswel. The ControlClick that i tried are these: (and none of these even move the mouse) ControlClick("[CLASS:ToolbarWindow32; INSTANCE:4]", "", "", "Left" ,1 ,10,10) ControlClick("[CLASS:ToolbarWindow32; INSTANCE:4]", "", "1001", "Left" ,1 ,10,10) ControlClick("[CLASS:ToolbarWindow32]", "", "", "Left" ,1 ,10,10) ControlClick("Save project as", "", "", "Left" ,1 ,10,10) I don't know what I am doing wrong. Should I use a controlID? is my windowtitle wrong? Can anyone help me? Thanks in advance, Theo
×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.