Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/11/2013 in all areas

  1. Jon

    AutoIt v3.3.9.21 Beta

    File Name: AutoIt v3.3.9.21 Beta File Submitter: Jon File Submitted: 11 Sep 2013 File Category: Beta 3.3.9.21 (11th September, 2013) (Beta) AutoIt: - Added #2443: Monospaced in Fonts appendix. - Changed: Documentation for StringRegExp() re-written by jchd. - Changed: Default newline character for PCRE regexes changed to ANYCRLF. - Fixed #2066: DllStructSetData() returning int64 instead of int32 in some cases. - Fixed #2427: ControlTreeView() does not used Option2. - Fixed #2455: Mouse Cursor not changing on resizable GUIs. - Fixed #2105: RegRead() and DWORD types incorrectly stored as double. - Fixed #2299: GUI Button Text Left-Justify for colored button. - Fixed #1954: ListViewItem returns 0 (failure) even though it populates the ListView. - Fixed #2152: X^2 Not Working in Hex(). - Fixed #1870: @GUI_DRAGFILE. Click here to download this file
    3 points
  2. I do not like Charmap, it's too small and you can't test a character with another font, you only get all chars for each font so it's not very handy. SpecialCharactersViewer permit with the Segoe UI Symbol font to display a maximum ( not all! ) of Ascii and Unicode characters. Simple click on a char and the corresponding Chr or ChrW code is displayed. Free to you to choose another font for see if the selected character can be used with. Windows XP do not have Segoe UI Symbol font, so it's more for Win7/Win8 users... Previous downloads : 100 Source : SpecialCharactersViewer v1.0.1.0.au3 Executable : SpecialCharactersViewer.exe.html (Once this html file downloaded, double click on it for start the download) Will be added to the next version of SciTE Hopper. Hope it can help !
    2 points
  3. Welcome to AutoIt and the forum! Use function InputBox to get the number from the user and assign it to a variable. Then pass the variable to _ExcelReadSheetToArray. Make sure to use function "Number" to convert the string returned by InputBox to a number.
    1 point
  4. - Get all elements with tagname "a" - For each element in those elements - If element.classname equals to "download rep_sprite_backup" - then that element.href is the data you need, and you can exit the "for each" loop.
    1 point
  5. you'll need to do some research on GUICtrRead as well as fileopen and filewrite. and of course, you should at some point do a fileclose as good practice.
    1 point
  6. Welcome to AutoIt and the forum! I will have a look at a function to add (inline) pictures, shapes etc. to a worksheet.
    1 point
  7. As far as I know _FileCountLines() function needs a path and a filename instead of a handle, try this sample: #include <File.au3> Local $data DriveMapDel("M:") DriveMapAdd("M:", "\\MyServer\logs", 0, "Domain\UserName", "password") $file="M:\Test.log" ;$file = FileOpen("M:\Test.log", 0) ;If $file = -1 Then ; MsgBox(0, "Error", "Unable to open file.") ; Exit ;EndIf $lines = _FileCountLines($file) ;you should use a path and filename instead a file handle returned by FileOpen For $i = $lines-4 To $lines If Not FileReadLine($file, $i) = "" Then $data = $data & FileReadLine($file, $i) & @CRLF Next DriveMapDel("M:") MsgBox(0, "Test", StringTrimRight($data, 1)) I've tested it on my computer and a remote virtual machine and it is working as expected. Cheers, sahsanu
    1 point
  8. Cravin

    _ArrayUniqueConcatenate

    Fantastic work, czardas/kylomas! Glad I could inspire such collaborative effort through a single question!
    1 point
  9. The function is not safe (needs to be fixed), if there is no bookmarked chats it will crash.
    1 point
  10. Hi, This would be this: #include "Skype.au3" Local $sTopic = "Insert a Topic Here" Local $aBookMarkedChat = _Skype_ChatGetBookmarked(), $oChattmp = 0 For $i = 0 To UBound($aBookMarkedChat) -1 $oChattmp = $aBookMarkedChat[$i] If _Skype_ChatGetTopic($oChattmp) = $sTopic Then _Skype_ChatSendMessage($oChattmp, "Send a Message Here") EndIf Next Func _Skype_ChatGetTopic($oChat) Return $oChat.Topic EndFunc ;==>_Skype_ChatGetTopic Note that the Skype UDF is lacking of a _Skype_ChatGetTopic function (I forgot it), so I added it in this example. You can also try this: except that it's with a chatname and not a chat topic. Br, FireFox.
    1 point
  11. mLipok

    Cant check checkbox!

    take a look here: '?do=embed' frameborder='0' data-embedContent>> use this: _IE_test_FormElementCollection($oIE) and give me the result of the function, which is visible in the console. EDIT: remeber to use AutoIt 3.3.9.20 BETA
    1 point
  12. mLipok

    Cant check checkbox!

    try to replace _IELoadWait($oIE) Local $oForm = _IEFormGetCollection($oIE, 0) _IEFormElementCheckBoxSelect($oForm, 0, "stopCheck[]", 1, "byIndex") with that: _IELoadWait($oIE) ConsoleWrite('IsObj($oIE) = ' & IsObj($oIE) & @CRLF) $oForms = _IEFormGetCollection($oIE) ConsoleWrite('IsObj($oForms) = ' & IsObj($oForms) & @CRLF) For $oForm In $oForms ConsoleWrite('$oForm.name = ' & $oForm.name & @CRLF) ConsoleWrite('$oForm.id = ' & $oForm.id & @CRLF) Next Local $oForm = _IEFormGetCollection($oIE, 0) _IEFormElementCheckBoxSelect($oForm, 0, "stopCheck[]", 1, "byIndex") and show what you get in console EDIT: or just simply add a new function: Func _IE_test_FormCollection(ByRef $oIE) ConsoleWrite('! IsObj($oIE) = ' & IsObj($oIE) & @CRLF) $oForms = _IEFormGetCollection($oIE) ConsoleWrite('! IsObj($oForms) = ' & IsObj($oForms) & @CRLF) For $oForm In $oForms ConsoleWrite('! $oForm.name = ' & $oForm.name & @CRLF) ConsoleWrite('! $oForm.id = ' & $oForm.id & @CRLF) Next EndFunc ;==>_IE_test_FormCollection and change your script: _IELoadWait($oIE) _IE_test_FormCollection($oIE) Local $oForm = _IEFormGetCollection($oIE, 0) _IEFormElementCheckBoxSelect($oForm, 0, "stopCheck[]", 1, "byIndex")
    1 point
  13. Replace Run with ShellExecute Run is for an actual program while with ShellExecute you can open websites, text files etc. Also on a side note, you have set specific coordinates for your GUI to display at. If instead you set the last two parameters to -1 the GUI will always show on the screen in the centre of the screen no matter the resolution.
    1 point
  14. Maybe try this Local $button = _IEFormElementGetObjByName($oForm, "loginBtn") _IEAction($button, "click")
    1 point
  15. guinness

    AutoIt v3.3.9.20 Beta

    No UDFs this time I'm afraid.
    1 point
  16. Firefox, coming back to this one.. In a very primitive way, something like this: #include <WindowsConstants.au3> $Gui = GUICreate('My program', 450, 250, 300, 300) $MsgBox = GUICtrlCreateButton("Button", 20, 20, 90, 30) $txt = GUICtrlCreateLabel("", 20, 90, 400, 40) GUICtrlSetFont(-1, 20) GUISetState() While 1 Switch GUIGetMsg() Case $MsgBox $r = _MsgBox() GUICtrlSetData($txt, $r) Case -3 Exit EndSwitch WEnd Func _MsgBox() $Gui1 = GUICreate('Message', 300, 300, 300, 300, $WS_CAPTION + $WS_SYSMENU + $WS_POPUP, -1, $Gui) GUICtrlCreateLabel('Return a value', 20, 10, 180, 23) $returnval = GUICtrlCreateButton('click me', 220, 40, 80, 22) $inputbox = GUICtrlCreateInput("", 10, 80, 220, 22) GUICtrlSetData(-1, @YEAR & "-" & @MON & "-" & @MDAY & " " & @HOUR & ":" & @MIN & ":" & @SEC) GUISetState(@SW_SHOW, $Gui1) While 1 Switch GUIGetMsg() Case $returnval $myval = GUICtrlRead($inputbox) GUISetState(@SW_ENABLE, $Gui) GUIDelete($Gui1) return ($myval) ;ExitLoop Case -3 GUISetState(@SW_ENABLE, $Gui) GUIDelete($Gui1) return ("") ExitLoop EndSwitch WEnd EndFunc ;==>_MsgBox Only, the child form should be modal (should be no problem). Child form should have different looks depending on need, see my mockup in first post. This is the kind of functionality I would imagine would already exist as UDF. If not, I have a hole to fill
    1 point
×
×
  • Create New...