Leaderboard
Popular Content
Showing content with the highest reputation on 01/09/2016 in all areas
-
YouTube ControlClick help
aa2zz6 reacted to InunoTaishou for a topic
ControlClick($hMain, "", "", "Left", 1, 50, 400)Worked fine for me using your example. As did ControlSend($hMain, "", "", "{Space}")(If the youtube video is the active object) Also, check out https://www.autoitscript.com/autoit3/docs/libfunctions/_Timer_GetIdleTime.htm instead of using your own timer, it might be a little simpler and cleaner1 point -
dBase udf and dll
argumentum reacted to jpam for a topic
update 09-01-2016: added foxpro 2.x and visual foxpro read support added foxpro 2.x .fpt memo read support added visual foxpro .fpt memo read support download at 1st post1 point -
If you dont want dll dependence you can hardcode. or better use raw AutoIt.Saludos1 point
-
Trong, show us what you have done so far, you ask for help and only post some code... This code is definitely not from you, so why don“t you ask the author if 64-bitcode is available? If you want to improve speed, use SSE/SIMD, this is 2-3 times faster than simply "translate" the code to 64bit. A dll is not necessary if you develop the code and call it directly in AutoIt via DllCallAddress().1 point
-
My suggestions . 1.- If you want to use that same code just use x64 register/instructions. (Not the best way if you don't know assembly) 2.- You can create your own dll using C/C++. I would be easy to do that code. 2.- Or even better (if speed does not matter) Create your own one using just AutoIt. Saludos1 point
-
work perfectly for me. A better example. Local $sStringSource = "abcde" Local $tString = DllStructCreate("char Data[" & StringLen($sStringSource) & "]") $tString.Data = $sStringSource Local $tSearchPattern = DllStructCreate("byte[" & StringLen($sStringSource) & "]") DllStructSetData($tSearchPattern, 1, "abcde") Local $tSearchMask = DllStructCreate("byte[" & StringLen($sStringSource) & "]") DllStructSetData($tSearchMask, 1, 0, 1) DllStructSetData($tSearchMask, 1, 0, 2) DllStructSetData($tSearchMask, 1, 0, 3) DllStructSetData($tSearchMask, 1, 0, 4) DllStructSetData($tSearchMask, 1, 0, 5) Local $treplacepattern = DllStructCreate("byte[" & StringLen($sStringSource) & "]") DllStructSetData($treplacepattern, 1, Asc("F"), 1) DllStructSetData($treplacepattern, 1, Asc("G"), 2) DllStructSetData($treplacepattern, 1, Asc("D"), 3) DllStructSetData($treplacepattern, 1, Asc("H"), 4) DllStructSetData($treplacepattern, 1, Asc("B"), 5) Local $treplacemask = DllStructCreate("byte[" & StringLen($sStringSource) & "]") DllStructSetData($treplacemask, 1, 1, 1);avoid a DllStructSetData($treplacemask, 1, 0, 2) DllStructSetData($treplacemask, 1, 0, 3) DllStructSetData($treplacemask, 1, 1, 4) ;avoid d DllStructSetData($treplacemask, 1, 0, 5) Local $_targetadress = DllStructGetPtr($tString) Local $_searchpattern = DllStructGetPtr($tSearchPattern) Local $_searchmask = DllStructGetPtr($tSearchMask) Local $_replacepattern = DllStructGetPtr($treplacepattern) Local $_replacemask = DllStructGetPtr($treplacemask) Local $_patternsize = DllStructGetSize($treplacepattern) Local $_searchsize = DllStructGetSize($tString) Local $_patchnumber = -1 Local $aRep = DllCall('snr_patchengine.dll', 'BYTE', 'SearchAndReplace', 'DWORD', $_targetadress, 'DWORD', $_searchpattern, 'DWORD', $_searchmask, 'DWORD', $_replacepattern, 'DWORD', $_replacemask, 'DWORD', $_patternsize, 'DWORD', $_searchsize, 'DWORD', $_patchnumber) ConsoleWrite($aRep[0] & @CRLF) ConsoleWrite($aRep & @CRLF) ConsoleWrite($tString.Data & @CRLF) Do it more dynamically. Saludos1 point
-
There are better way to format the code (chage parameter types, etc... but I'm lazy) I hope you got/rewrite the example. Local $sStringSource = "abcde" Local $tString = DllStructCreate("char Data[" & StringLen($sStringSource) & "]") $tString.Data = $sStringSource Local $tSearchPattern = DllStructCreate("byte[1]") DllStructSetData($tSearchPattern, 1, "c") Local $tSearchMask = DllStructCreate("byte[1]") DllStructSetData($tSearchMask, 1, 0, 1) Local $treplacepattern = DllStructCreate("byte[1]") DllStructSetData($treplacepattern, 1, Asc("F"), 1) Local $treplacemask = DllStructCreate("byte[1]") DllStructSetData($treplacemask, 1, 0, 1) Local $_targetadress = DllStructGetPtr($tString) Local $_searchpattern = DllStructGetPtr($tSearchPattern) Local $_searchmask = DllStructGetPtr($tSearchMask) Local $_replacepattern = DllStructGetPtr($treplacepattern) Local $_replacemask = DllStructGetPtr($treplacemask) Local $_patternsize = 1 Local $_searchsize = DllStructGetSize($tString) Local $_patchnumber = -1 Local $aRep = DllCall('snr_patchengine.dll', 'BYTE', 'SearchAndReplace', 'DWORD', $_targetadress, 'DWORD', $_searchpattern, 'DWORD', $_searchmask, 'DWORD', $_replacepattern, 'DWORD', $_replacemask, 'DWORD', $_patternsize, 'DWORD', $_searchsize, 'DWORD', $_patchnumber) ConsoleWrite($aRep[0] & @CRLF) ConsoleWrite($aRep & @CRLF) ConsoleWrite($tString.Data & @CRLF)Saludos1 point
-
GDI+ Firework for New Year's Eve with sound fx build 2016-01-08
argumentum reacted to UEZ for a topic
Last update for now! Added some more firework types and a background firework sound for a "better New Year's Eve feeling". You can find a GDI+ Simple Firework v2 version in the archive whereas new year countdown is enabled only in the executable version. It uses the GDIPlusEx UDF made by Eukalyptus which is faster than the GDI+ functions. N'joy.1 point -
Hey aa2zz6, If I understand your request correctly, Then you are looking for something like this: #include <Misc.au3> #include<GUIconstants.au3> HotKeySet("{END}", "_Quit") ; Hit "END" to quit $dll = DllOpen("user32.dll") ;Create A Semi-Transparent GUI $iWidth = 40 ;width for the highlight $iHeight = 40 ;Height for the highlight $hGUI = GUIcreate("",$iWidth,$iHeight,-1,-1,$WS_POPUP,$WS_EX_TOPMOST) ;Create the highlighter $WS_POPUP = no gui bar, $WS_EX_TOPMOST = always on top GUISetBkColor(0xFFFFFF,$hGUI) ;Set the colour of the GUI to white WinSetTrans($hGUI,"",100) ;Set the transparancy of the gui (from 0 - 255, 0 being invisible, 255 being solid) GUISetState(@SW_SHOW) ;Show the GUI While 1 If _IsPressed("01", $dll) Then $avMousePos = MouseGetPos() WinMove($hGUI,"",$avMousePos[0] - ($iWidth / 2),$avMousePos[1] - ($iHeight/ 2)) ;Move Centre of GUI to where mouse was clicked ToolTip("x = " & $avMousePos[0] & " y = " & $avMousePos[1]) EndIf WEnd Func _Quit() DllClose($dll) Exit EndFunc ;==>_Quit Cheers Javi1 point
-
SoftEther VPN Client Script - Question
aa2zz6 reacted to computergroove for a topic
When you are connected to your vpn your wan ip will show from Korea. #include <Inet.au3> #include <MsgBoxConstants.au3> Local $oIE = _INetGetSource("http://wanip.info/") Local $CharacterCount = StringInStr($oIE,'.png" alt="');return the number of characters that '.png" alt="' starts at in the html source Local $TrimmedHTML = StringTrimLeft($oIE,$CharacterCount + 10);trim the characters from the left of country Local $sCountry = StringLeft($TrimmedHTML,5);Read the characters from the country alt code in the HTML. Korea has 5 letters MsgBox(0,0,$sCountry)Use this to get your current wan ip detected location and use it to compare to what you want. If it says Korea then sleep 30 minutes. If it doesn't say Korea then reinitialize your vpn. For my the above returns 'us" /' because Im in the us with a us wan ip.1 point