All Activity

1. Past hour

5. Automatically connect to Wifi network

In this topic: there is link for this tool: https://support.arubanetworks.com/ToolsResources/tabid/76/EntryId/109/DMXModule/514/Default.aspx , maybe you can use it to first create wifi profile and then to connect

You can use Assign, for example Assign("Variable" & $aArray[$i], "Variable Value")
7. Chrome UDF

ChromeStartUp works fine but when i try to send keys, _chromeeval or any function it doesnt work.
8. Excel file generation UDF (don't need Excel to be installed)

Ok here is the fix for my problem above: Replace this in the udf: Func _XLSAddStyle($file,$name="S21", $font="Arial",$size=11, $fstyle=0,$pcolor="000000", $icolor="",$AlignHor=$XMLXLS_CENTER,$AlignVer=$XMLXLS_BOTTOM,$Border=0) Local $f,$fontfam="Swiss" FileWriteLine($file, ' <Style ss:ID="' &$name &'">') FileWriteLine($file, ' <Alignment ss:Horizontal="' &$AlignHor & '" ss:Vertical="' & $AlignVer &'"/>') With this: Func _XLSAddStyle($file, $name="S21",$font="Arial", $size=11,$fstyle=0, $pcolor="000000",$icolor="", $AlignHor=$XMLXLS_CENTER, $AlignVer=$XMLXLS_BOTTOM, $Border=0,$WrapText=1) Local $f,$fontfam="Swiss" FileWriteLine($file, ' <Style ss:ID="' &$name &'">') FileWriteLine($file, ' <Alignment ss:Horizontal="' &$AlignHor & '" ss:Vertical="' & $AlignVer &'" ss:WrapText="' &$WrapText & '"/>')

24. Automatically connect to Wifi network

I can connect only on wifi networks that already have the saved password and I want to connect in other networks I want to choose the network and enter the password of it, do I have to create some profile for new network? I guess I'm not sure how to use the _Wlan_Connect () function to send network name and password!
25. TreeView + GetText: only number of items is found

Hi, I am new to AutoIt and am trying my best to improve my skills and also one day hope to return some support to others here. I am currently struggling with an external application that I need to control. So far, I have been able to do some very basic stuff, e.g. launch it, wait for its main window to show up, select a menu item and click it, wait for another window to show up. This second window contains a large treeview control. It has many collapsed items with many sub-items, also collapsed, and then many entries. I was able to identify the control to get its window handle, class name, ID and I was also able to get the correct amount of items and sub-items. The point where I am stuck now is to search for a particular item, click on that item to both select it and return from the treeview window to the main window. Unfortunately, I cannot post an image of the treeview here because I use it at work and atm I am using my private Linux computer on which i cannot use autoit anyway. I am stuck because I do not get any string results, either I get 0 or no entry at all. As I am really quite new I might already be stuck deciding what function I should use to get the text items. Am I right to say that there are _GUI functions that are supposed to work only with autoit-built GUIs, or would all functions provided by autoit work both for internal and external GUIs? How about the admin-issue - would this cure my issue, if I ran autoit as admin (not sure why I get correct results for the number of items though)? Perhaps you can point me to a neat and fool-proof tutorial on how to setup autoit to properly find text in a treeview. Thanks a lot for your help in advance! It is highly appreciated. Marty.
26. Copy a file to clipboard to be manually pasted as shortcut

Oh, I thought you meant pasting as shortcut from the clipboard. I don't think copying the file to clipboard what you want to do as it only yields the one result. You can create lnk shortcut files in AutoIt for sure. And since you know the file exists and where it lives, this should not be a lot of problems. Explorer is just creating the .lnk file for you with paste as shortcut. Again, I am sure you can do this programatically with AutoIt. update, found it! FileCreateShortcut here is the sample from that page. #include <MsgBoxConstants.au3> Example() Func Example() ; Create a constant variable in Local scope of the shortcut filepath. Local Const $sFilePath = @DesktopDir & "\FileCreateShortcutExample.lnk" ; Create a shortcut on the desktop to explorer.exe and set the hotkey combination Ctrl+Alt+T or in AutoIt ^!t to the shortcut. FileCreateShortcut(@WindowsDir & "\explorer.exe",$sFilePath, @WindowsDir, "/e,c:\", _ "Tooltip description of the shortcut.", @SystemDir & "\shell32.dll", "^!t", "15", @SW_SHOWMAXIMIZED) ; Retrieve details about the shortcut. Local $aDetails = FileGetShortcut($sFilePath) If Not @error Then MsgBox($MB_SYSTEMMODAL, "", "Path: " &$aDetails[0] & @CRLF & _ "Working directory: " & $aDetails[1] & @CRLF & _ "Arguments: " &$aDetails[2] & @CRLF & _ "Description: " & $aDetails[3] & @CRLF & _ "Icon filename: " &$aDetails[4] & @CRLF & _ "Icon index: " & $aDetails[5] & @CRLF & _ "Shortcut state: " &$aDetails[6] & @CRLF) EndIf ; Delete the shortcut. FileDelete(\$sFilePath) EndFunc ;==>Example so, since you know where it is, and that it exists, you can just adapt that to your needs as a test mule.
27. Copy a file to clipboard to be manually pasted as shortcut

The file exists. I want to copy it to clipboard using AutoIt and THEN be able to MANUALLY "paste as clipboard" using Windows Explorer (or any File Manager). If you copy a file using Explorer after that you have 2 options: "Paste" and "Paste as shortcut". If you copy a file using AutoIt's _ClipPutFile after that you have only one option: "Paste". So in the end I want to simulate the Explorer's "Copy" command. @Earthshine I just want be sure I'm making it clear. So can you please confirm your previous reply?
×

• Wiki