Jump to content

Caladan

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by Caladan

  1. It's not Pokemon. --' I know they do not help with game things.
  2. Hi guys! I'm working in a Android app, and emulating in Nox. I make a little script to send mouse clicks in location settings, to constantly change my GPS position. And it's working with MouseClick. But... My ControlClick does not work! And I need my cursor free! ControlClick("[TITLE:Nox; CLASS:Qt5QWindow]","","", "left",3,1247,384) ;~ <- This is NOT working ;~ MouseClick("left",1247,384,3) ;~ <- This is working Sleep(300) ClipPut($eLat) There is no >>>Control<<< info. There is no ID. Just mouse coords. What I need to do guys?
  3. Awesome! Thanks! Perfect! Man, where I can learn all that stuff? Have books? Internet tutorial?
  4. Guys, Its a lot of information. I can't get it. I don't know what I need to do.
  5. Hey man! Thanks a lot! But when I run my code, I got this: >"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\AutoIT\Rascunho-ListView.au3" "C:\AutoIT\Rascunho-ListView.au3" (25) : ==> The requested action with this object has failed.: If Not .EOF Then $aResult = .GetRows() If Not ^ ERROR >Exit code: 1 Time: 2.21 What it means?
  6. Hello Guys, I'm new in Autoit and have no idea of what i'm doing. I'm traying to populate a listview with a SQL command, to get data in a spreadsheet in Access DataBase. So, here is my poor code. I can get 1 Item, but when a put the if's my code don't run. I think its a logic problem, like I said before, I have no ideia WTH I'm doing. #include <GUIConstantsEx.au3> #include <MsgBoxConstants.au3> #include <WindowsConstants.au3> Example() Func Example() Local $dbname = FileOpenDialog("Choose Access Database", @ScriptDir, "Access files (*.accdb)", 1) $adoCon = ObjCreate("ADODB.Connection") $adoCon.Open("Driver={Microsoft Access Driver (*.mdb, *.accdb)}; DBQ=" & $dbname & ";Uid=;Pwd=;") $adoRs = ObjCreate("ADODB.Recordset") $adoRs.CursorType = 1 $adoRs.LockType = 3 GUICreate("listview items", 550, 250, 100, 200, -1, $WS_EX_ACCEPTFILES) Local $idListview = GUICtrlCreateListView("Codigo |Nome |Valor ", 10, 10, 520, 150) ;,$LVS_SORTDESCENDING For $i=0 to 10 $query = "SELECT * FROM Produtos1 WHERE codigo < 10" $adoRs.Open ($query, $adoCon) $codigo = $adoRs.Fields("codigo").value $nome = $adoRs.Fields("Nome").value $valor = $adoRs.Fields("valor").value $adoCon.Close Local $idItem1 = GUICtrlCreateListViewItem($codigo & "|" & $nome & "|" & $valor , $idListview) GUISetState(@SW_SHOW) Next ; Loop until the user exits. While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop ;~ Case $idButton ;~ MsgBox($MB_SYSTEMMODAL, "listview item", GUICtrlRead(GUICtrlRead($idListview)), 2) Case $idListview MsgBox($MB_SYSTEMMODAL, "listview", "clicked=" & GUICtrlGetState($idListview), 2) EndSwitch WEnd EndFunc ;==>Example I have uploaded my .accdb file too. Guys, in this case, what I need to do!? bd-teste.accdb
×
×
  • Create New...