
ronmage
Active Members-
Posts
32 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
ronmage's Achievements

Seeker (1/7)
0
Reputation
-
To be clear not a game, but with the OS its self
-
example would be bluelstacks an android OS Emulator. But I don't have an app in mind at the moment more of a project to figure out a way around it.
-
Billy that is what I am using, note the _Run() Function. However as you pointed out the problem resisting the ControlClick more than anything that is what I am trying to find a way around
-
For the longest time I have been running into a problem where I can’t control click unless the window is active. It will work on some programs and not others. I don’t have a specific program in mind at the moment but here Is some example code. #RequireAdmin HotKeySet("{ESC}","_exit") HotKeySet("X","_Run") Global $x= 45 Global $y= 30 $Title = "Program Name" $hwnd = WinGetHandle($Title) While 1 Sleep (100) WEnd Func _Run() ControlClick($hwnd,"","","left",1,$x,$y) EndFunc Func _Exit() Exit EndFunc I know this is not very well written but it’s just an example. When the window is active it clicks as it should however it won’t in the background. My question is this, how can get a mouse click to a client without activating the window?
-
So I have a loop that keeps reading data from an array and searching it for the same value. If the value is no there it does work then adds the value to the array to prevent it from doing the same work. If _ArraySearch($ID,$filearray[$i]) = -1 Then Work.... _ArrayAdd($ID,$filearray[$i]) EndIf This is in a for loop hence $i So what is happening is the code works great for several hours. After a period of time _ArraySearch($ID,$filearray[$i]) will result in -1 even if $ID = $filearray. So it ready as if there is no data in the array. Anyone have this problem? Also I am just running in using F5 not compiling it and running it if that makes a difference.
-
So what I am trying to do it read from the command console of a dedicated server. I have tried a handful of ways but I show the last attempt I made. I get blank or ill read "0", even with text on the window. #include <FileConstants.au3> #include <MsgBoxConstants.au3> #include <Constants.au3> Global $pid, $Message $pid = Run("C:\isr\Build\IR.exe -server", "", @SW_MINIMIZE , $STDERR_CHILD + $STDOUT_CHILD) While 1 $Message = StdoutRead($pid,True) if @error then exitloop ConsoleWrite($Message + @CRLF) Sleep(500) WEnd This is an Interstellar Rift game server.
-
ADO.au3 UDF - BETA - Support Topic
ronmage replied to mLipok's topic in AutoIt Projects and Collaboration
Wow fixed in code and missed the part where I typed it out -
ADO.au3 UDF - BETA - Support Topic
ronmage replied to mLipok's topic in AutoIt Projects and Collaboration
It was a free web host so I did not care much but it is fixed -
ADO.au3 UDF - BETA - Support Topic
ronmage replied to mLipok's topic in AutoIt Projects and Collaboration
I am using the example au3 you made “thank you for that”. And I am entering all the info using MySQL and it’s not working. The driver is downloaded and working however I am getting a connection problem listed below. $oADO_Error.description is: [MySQL][ODBC 5.3(a) Driver]Can't connect to MySQL server on '206.72.206.123' (10060) $oADO_Error.windescription: Exception occurred. $oADO_Error.number is: 80020009 $oADO_Error.lastdllerror is: 0 $oADO_Error.scriptline is: 970 $oADO_Error.source is: Microsoft OLE DB Provider for ODBC Drivers $oADO_Error.helpfile is: $oADO_Error.helpcontext is: 0 ############################### ############################### ADO.au3 v.2.1.13 BETA (970) : ==> COM Error intercepted ! $oADO_Error.description is: [MySQL][ODBC 5.3(a) Driver]Can't connect to MySQL server on '206.72.206.123' (10060) $oADO_Error.windescription: Exception occurred. $oADO_Error.number is: 80020009 $oADO_Error.lastdllerror is: 0 $oADO_Error.scriptline is: 970 $oADO_Error.source is: Microsoft OLE DB Provider for ODBC Drivers $oADO_Error.helpfile is: $oADO_Error.helpcontext is: 0 ############################### ############################### ADO.au3 v.2.1.13 BETA (970) : ==> COM Error intercepted ! $oADO_Error.description is: [MySQL][ODBC 5.3(a) Driver]Can't connect to MySQL server on '206.72.206.123' (10060) $oADO_Error.windescription: Exception occurred. $oADO_Error.number is: 80020009 $oADO_Error.lastdllerror is: 0 $oADO_Error.scriptline is: 970 $oADO_Error.source is: Microsoft OLE DB Provider for ODBC Drivers $oADO_Error.helpfile is: $oADO_Error.helpcontext is: 0 ############################### The url is Rsbot.cu.ma or ip 206.72.206.123, I have checked it is on port 3306 Here is the sql config section from the examples Func _Example_MySQL() ; Link to Windows MySQL ODBC drivers ; https://dev.mysql.com/downloads/connector/odbc/ Local $sDriver = 'MySQL ODBC 5.3 ANSI Driver' ; 'MySQL ODBC 5.3 UNICODE Driver' Local $sServer = '206.72.206.123' ; change this string to YourServerLocation Local $sDatabase = 'rsbotcum_rsbot' ; change this string to YourDatabaseName Local $sPort = '3306' ; change this string to If your Server use non standard PORT Local $sUser = 'XXXXXXXX' ; change this string to YourUserName Local $sPassword = 'XXXXXX' ; change this string to YourPassword ; Local $sConnectionString = 'Driver={' & $sDriver & '};SERVER=' & $sServer & ';PORT=' & $sPort & ';DATABASE=' & $sDatabase & ';User=' & $sUser & ';Passwd=' & $sPassword & ';' Local $sConnectionString = _ADO_ConnectionString_MySQL($sUser , $sPassword , $sDatabase, $sDriver , $sServer , $sPort ) _Example_1_RecordsetToConsole($sConnectionString, "SELECT * FROM city ") _Example_2_RecordsetDisplay($sConnectionString, "SELECT * FROM country WHERE Continent = 'Europe'") _Example_3_ConnectionProperties($sConnectionString) EndFunc ;==>_Example_PostgreSQL -
I am trying to get remote autoit to work with SQL. I know that I can use SQLLite however I have a server that I have SQL setup on already that I have used. I am using a SQL include “see attached”. However I can’t get it to work. Here is a simple snippet of code that I am using. I have looked in both google and here but can’t get anything working. Was wondering if it is a problem with being on windows 10. #include <Array.au3> #include <SQL.au3> $IP = "192.168.1.100" $User = "user" $Pass = "pass" $DB = "Login" $out = _SQLConnect($IP,$DB,1,$User,$Pass) _ArrayDisplay($out) MsgBox(0,"",$out) Here is the error I am getting when it runs. --> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop "C:\Program Files (x86)\AutoIt3\Include\SQL.au3" (29) : ==> The requested action with this object has failed.: If $fAuthMode Then $oConn.Open ("DRIVER=" & $sDriver & ";SERVER=" & $sServer & ";DATABASE=" & $sDatabase & ";UID=" & $sUsername & ";PWD=" & $sPassword & ";") If $fAuthMode Then $oConn^ ERROR ->22:36:28 AutoIt3.exe ended.rc:1 +>22:36:28 AutoIt3Wrapper Finished. >Exit code: 1 Time: 16.16 SQL.au3
-
ronmage reacted to a post in a topic: Memory in autoit
-
well I did get it to work using #requireadmin that was the missing part. So I am going to like at the end here the code, thank you everyone for the help. #include <NomadMemory2.au3> #include <Array.au3> #requireadmin Global $mainwindow = "Tutorial-i386" Global $pid = WinGetProcess($mainwindow) Global $iHD = 0 Global $address = "0x0174B328" ;This is the addres found in step 2 for the tutorial in cheat $MemArray = _Memoryopen($pid) _ArrayDisplay($MemArray) ;this is not outputing correctly $out = _MemoryRead($address, $MemArray) MsgBox(0,"test",$out) _Memoryclose($pid)
-
Fair. #1 - I am trying to get memory to work in autoit. #2 I am linking the nomads includes so that anyone that follows me having a problem with memory reading can follow what I did and fixed it using this post. #3- Here is some code to only read a memory location using the tutorial in cheat engine and output #include <NomadMemory2.au3> #include <Array.au3> Global $mainwindow = "Tutorial-i386" Global $pid = WinGetProcess($mainwindow) Global $iHD = 0 Global $address = "0x0014B2B0" ;This is the addres found in step 2 for the tutorial in cheat $MemArray = _Memoryopen($pid) _ArrayDisplay($MemArray) ;this is not outputing correctly $out = _MemoryRead($address, $MemArray) MsgBox(0,"test",$out) _Memoryclose($pid)
-
Well as stated I am trying to get memory to work. I am using the cheat engine tutorial just trying to read a memory values. I am using NomadMemory and Nomadmemory2 which I will link for you all and anyone else that is having the same problem. At this point I am thinking my OS and Autoit are too new for it. Can anyone help with getting this to work? NomadMemory.au3 NomadMemory2.au3
-
I'm really hoping i'm not double posting but i have been looking around and have not found the answer. I have the Arduino Uno, and it communicates to the USB via COM port 3. however I'm trying to use auto IT in order to send and receive data from the unit. The format of the data I send is not important, string would probably be the easiest. However I can't find any information on how to communicate over COM port 3. If anybody has a snippet of code, or can point me in the right direction it would be appreciated.
-
hey real quick question, i have looked over all the post and it is not clear. I am on windows 7 64 bit. i have downloaded many of the dills but nothing is working. i have one that was 64 and have tried a 32 bit however it is hard to pin down where the problem is. i have even removed the need for the au3 include, however when i run it i get $result[0]="0" then return 0 if $result^ ERROR so with that, anyone that has this working on a 64 bit OS i would love a simple clip of code you used and the dill if your willing i have tryed many thign but i am going to link my last try at getting it working. $findImage = "Untitled.bmp" $resultPosition = 1 $tolerance = 255 $x = 0 $y = 0 _ImageSearchArea($findImage,$resultPosition,0,0,@DesktopWidth,@DesktopHeight,$x,$y,$tolerance) Func _ImageSearchArea($findImage,$resultPosition,$x1,$y1,$right,$bottom,ByRef $x, ByRef $y, $tolerance,$HBMP=0) MsgBox(0,"asd","" & $x1 & " " & $y1 & " " & $right & " " & $bottom) if $tolerance>0 then $findImage = "*" & $tolerance & " " & $findImage If IsString($findImage) Then $result = DllCall(@ScriptDir & "\ImageSearchDLL.dll","str","ImageSearch","int",$x1,"int",$y1,"int",$right,"int",$bottom,"str",$findImage,"ptr",$HBMP) Else $result = DllCall(@ScriptDir & "\ImageSearchDLL.dll","str","ImageSearch","int",$x1,"int",$y1,"int",$right,"int",$bottom,"ptr",$findImage,"ptr",$HBMP) EndIf; If error exit if $result[0]="0" then return 0 ; Otherwise get the x,y location of the match and the size of the image to ; compute the centre of search $array = StringSplit($result[0],"|") $x=Int(Number($array[2])) $y=Int(Number($array[3])) if $resultPosition=1 then $x=$x + Int(Number($array[4])/2) $y=$y + Int(Number($array[5])/2) endif return 1 EndFunc the DLL is in root dir