Jump to content

jackhab

Members
  • Posts

    7
  • Joined

  • Last visited

jackhab's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Thanks! I think having access to all automation functionality combined with C# and ability to use VS debugger will make the AU development much easier than writing AU scripts.
  2. So let's say I can build a GUI using VS C# tools and I don't need user functions like _ArrayReverse since, well C#... Are there any important AutoIt functionality that will be missing in AutoItX?
  3. I'm asking because of this remark in the AutoItX help: What is this subset exactly - are there any AutoIt features that will not be available if I use C#+AutoItX instead of AutoIt scripting?
  4. I'm trying to create a list of files and get the name of selected file. When I click the file name I can read the item index but text is always empty. Where is the error here? #include <GUIConstantsEx.au3> #include <GuiListView.au3> #include <MsgBoxConstants.au3> #include <File.au3> #include <FileConstants.au3> #include <Array.au3> _DebugSetup() AutoItSetOption("MustDeclareVars", 0) GUICreate("Notes", 400, 300) Local $idListview = GUICtrlCreateListView("", -1, -1, 400, 700) GUISetState(@SW_SHOW) _GUICtrlListView_AddColumn($idListview, "", 400) $aFiles = _FileListToArrayRec("c:\My\OneDrive\Notes\", "*.txt", $FLTAR_FILES, $FLTAR_RECUR, $FLTAR_SORT, $FLTAR_NOPATH) Local $aItems[1][1] Local $i For $i = 0 To UBound($aFiles)-1 _ArrayAdd($aItems, $aFiles[$i], 0) Next _GUICtrlListView_AddArray($idListview, $aItems) While 1 $m = GUIGetMsg() if $m = $GUI_EVENT_PRIMARYUP Then Local $idx = _GUICtrlListView_GetSelectedIndices($idListview) _DebugOut($idx) _DebugOut(_GUICtrlListView_GetItemTextString($idListview, $idx)) Exit EndIf Wend
  5. Great! _IsPressed is, indeed, the way to prevent "sticky" Ctrl. Thanks.
  6. Hi I created a shortcut to send my email address: HotKeySet("^{NUMPAD7}", "SendEmail") Func SendEmail() Send("address@gmail.com") EndFunc I have an issue with Ctrl not releasing after pressing CtrlNum7, the text got sent but keyboard behaves as if I'm still holding Ctrl. I tried to add Opt("SendKeyDelay", 50), and Sleep() before sending the text but it did not help. So what am I doing wrong?
×
×
  • Create New...