Jump to content

Cyber

Active Members
  • Posts

    239
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Cyber's Achievements

Polymath

Polymath (5/7)

2

Reputation

  1. Item 0, SubItem 1 - Item 0, SubItem 2 - Item 0, SubItem 3 - Item 0, SubItem 4 - Item 0, SubItem 5 - Item 0, SubItem 6 - Item 1, SubItem 1 - Item 1, SubItem 2 - Item 1, SubItem 3 - Item 1, SubItem 4 - Item 1, SubItem 5 - Item 1, SubItem 6 - .... 😔 thanks anyway
  2. nothing Item 0, SubItem 1 - Item 0, SubItem 2 - Item 0, SubItem 3 - Item 0, SubItem 4 - Item 0, SubItem 5 - Item 0, SubItem 6 - Item 1, SubItem 1 - Item 1, SubItem 2 - Item 1, SubItem 3 - Item 1, SubItem 4 - Item 1, SubItem 5 - Item 1, SubItem 6 - Item 3, SubItem 6 - Item 4, SubItem 1 - Item 4, SubItem 2 - Item 4, SubItem 3 - Item 4, SubItem 4 - Item 4, SubItem 5 - Item 4, SubItem 6 - 😔
  3. nothing 😔 thanks anyway #include <File.au3> #RequireAdmin Global $Combine,$strc,$num = 0,$np Local $wintitle = "* - MetaTrader 4 Manager", $class ="SysListView32" ,$instance ="17" ; _RetrieveItems2($wintitle,$class,$instance) Func _RetrieveItems2($wintitle,$class,$instance) MsgBox(0,"",ControlListView ( $wintitle, "",$class&$instance, "GetItemCount")) For $i = 0 To ControlListView ( $wintitle, "",$class&$instance, "GetItemCount") Step 1 $strc = ControlListView ( $wintitle, "",$class&$instance, "GetText", $i, $num) if $strc = "" Then $num = $num + 1 $i = 0 if StringLen($np) = 0 And $strc = "" Then ExitLoop EndIf Else $Combine &= ControlListView ($wintitle, "",$class&$instance, "GetText", $i, $num) &@CRLF Endif $np = $strc Next Return MsgBox(0,"", $Combine) EndFunc
  4. thanks ClassnameNN integrate instance
  5. Thanks, but not work 😔 the handle is correct but nothing return, the element is 23 (is correct) buy empty
  6. Hi, i have a problem, i can't retrive all items from list: $win ="Optimus64" $iListView=ControlGetHandle ($win, "","SysListView32") $array=_GUICtrlListView_GetItemTextArray ($iListView) _GUICtrlListView_GetItemTextArray retrive an array with 23 elements but blank. why? i can retrive all item with select all and copy with Send("^c") but is very orrible thanks
  7. FANTASTIC!!!!! THANKS!!!!
  8. Hi, I want to insert a linked table in excel I have a data on the sheet and i want to make the table (Insert -> Table) can i do from code? thanks
  9. Don't work! i can't do this!!! if I exec this: $secondsToHoldKey = 10 ;change this if you want $KeyToPress = "w" ;also change this if you want Send ("{"&$KeyToPress&" DOWN}") Sleep ($secondsToHoldKey*1000) Send ("{"&$KeyToPress&" UP}")the result is: w and stop..... whyyyyyy?!?!
  10. You can create a .bat file? like this: cd Testfolder myApps.exe save in 12345.bat and: ShellExecute("12345.bat","","","",@SW_HIDE)
  11. ok il try i use this code for read input from pin 3 of my arduino: #include <WinAPI.au3> $RESULT = _WinAPI_CreateFile("\\.\COM3", 2, 2) $nBytes=1 $nBytesw=0 $pin = 3 If $RESULT = 0 then msgbox(16, "", "Port not available, please plug in your device") else $tBuffer = DllStructCreate("byte[6]") _WinAPI_ReadFile($RESULT, DllStructGetPtr($tBuffer),$pin , $nBytes) _WinAPI_CloseHandle($RESULT) $sText = BinaryToString(DllStructGetData($tBuffer, 1)) msgbox(64, "Reading", "This is the output of 6 bytes from COM3: " & $sText) EndIf I take the code from this post.... and now, i want to send input 0 or 1 to digital pin 3 is it possibile?
  12. Yes, sorry I use it for read of relay state Can i send write on digital input? General input Not for gps
  13. Fantastic! this code is good for read but for write? thanks
×
×
  • Create New...