-
Posts
93 -
Joined
-
Last visited
Everything posted by x_bennY
-
awesome project, congrats.
-
Autoit-Socket-IO - Networking in AutoIt made simple!
x_bennY replied to tarretarretarre's topic in AutoIt Example Scripts
very well written code @tarretarretarre does it now supports socket.io with node.js? -
now it's working! thanks again i was using that func, but i need to delete the columns, i know that your UDF has a function to delete it, but it don't delete all the columns, i will write one
-
@pixelsearch and @Melba23 you guys were faster than me! sorry for not giving more information, and thx for the bug fix. now i'm getting this error after deleting the last column: $aData_Colour_Ordered[0][0] = $aData_Colour[0][0] is there a easier way to delete all items and columns of a listview?
-
i'm getting this error on exemple6 when adding new columns: ocal $iHdrResize = $aHdrData[3][$iCol] Local $iHdrResize = ^ ERROR
-
Take a look at "_WinAPI_EmptyWorkingSet()" function.
-
Yes, with au3stripper my script doesn't work
-
In my opnion depending on the size of the project when you just change the names of vars and funcs you almost make the code unreadeble. I tried to do it with some obfuscators but i always get some erros on functions (of course) like "hotkeyset", "onautoitexit", "execute" and etc...
-
Faster way to show animated gif on screen
x_bennY replied to x_bennY's topic in AutoIt General Help and Support
Hey @Chimp, using browser is faster, but it uses too much CPU and GPU, i'm trying use this one from JScript: It's seems it solved my problem, it's faster and do not use to much CPU and GPU, but i'm doing another tests... -
Hey, i'm trying to display a big animated gif on the screen (1440x1080 15Mb), i already tried this UDF from trancexx: but it is too slow... it takes around 15s to display it, there is another alteranative to do this thing? maybe with GDI.. i don't know. It's curious because the windows image previewer shows it instantly.
-
Probably the problem is in the first code that you posted. You're declaring the LOCAL var "$SplashScreen_Form", so you enter in a if-condition, if the flag is "1" you create the GUI, elseif you're deleting it!?! why? you didin't created anything, why are you deleting? You maybe thought use this function more than once, but when you declare a local variable you lose the id value of the _Metro_CreateGUI, you should store it in a global var.
-
where is yours @VIP?
-
mysteriously that message disappeared, but i can't get it working, it says that the message has been sent but it's not, this is the console output: Message Sent Sucessfully! MessageId: ThreadId: Sent message labels_ids: Problem solved! Several possible reasons: 1) Your trial period could have expired (if you use one). Check your status at admin.google.com 2) There is no email address that you use in FROM field created in your G Suite. So just create one. 3) Your email address is not a Gmail account. It is possible to be a Google Account but not a Gmail account (for example if you use the account for YouTube but have never enabled Gmail). 4) You may need to enable the Gmail feature or Gmail API access in your G Suite.
-
that problem is now fixed but i'm getting some kind of transport message error and the email is not beeing sent, i don't know why, i already have tried all ports/ssl combinations and i just can't get it working.
-
[UDF] Gmail API - Emails automation with AutoIt!
x_bennY replied to Ascer's topic in AutoIt Example Scripts
it's says that the email has been sent sucessfully but i do not receive values in "meesageid" and "threadid"... and the email is not sent, what's happening?- 54 replies
-
- gmail
- send emails
-
(and 3 more)
Tagged with:
-
i'm receiving this error: "+++ Line: 93, Func: aAuthGetAccessToken() -> Error durning reading $oHttp.ResponseText. Google must changed *json respond for this request."
-
Change the color of a picture using GDI+
x_bennY replied to x_bennY's topic in AutoIt General Help and Support
anyone? -
PageScript 32 (pscript.dll)
x_bennY replied to CarontePizzuto's topic in AutoIt General Help and Support
Hey, try this function: Use the DEV_PREVIEW Constant Value Description DEV_PRINTER 1 The output is sent to the selected printer. DEV_PREVIEW 2 The output is sent to the print preview dialog box DEV_PDFFILE 3 The output is saved in a .pdf file. The file name is set by calling PSSetFileName() before starting the print job. Reserved 4 Reserved for future use DEV_EMFFILE 5 The output is saved in a series of EMF files. The path of the files to be created is set by calling PSSetFileName() before starting the print job. Files are named Page1.emf, Page2.emf, Pagen.emf func PSSetDevice($nDevice) DllCall($DllHandle, "NONE", "PSSetDevice", "INT", $nDevice) endfunc -
@CarontePizzuto, could you post your code?
-
Thanks @jchd!
-
I'm not stupid, and yes, i tried (should i really need to answer it?). As i asked, i want a good tutorial with autoit functions, and this is not what i was really asking for. Your answer is totally contemptible. if you don't know how to help, or don't whant to, don't waste your time posting these things...
-
I created a .txt db and i want to read the values using the RegEx (i know that iniread exists but i wanna know how regex works and creat my "own database") Btw, where could i find a good tutorial explaining how regex works? I read the help file but it did not help me much. My .txt data: 051=88343028.2365754 052=19078966.1324966 053=61125189.3627208 054=48630688.0627125 055=65556281.3590232 056=48912705.1316237 057=60764618.3087908 058=3329069.66959535 059=98765958.9522598 0510=80757418.0493819 0511=85644294.163586 0512=82394592.0824025 0513=53262646.2197832 0514=77111584.5041542 0515=15618731.8799041 0516=96351384.9912536 0517=10705940.2717704 I'm reading than with this function, but i don't know if it is 100% correct: $ret = StringRegExp(fileread("data.txt"), '(?i)' & $sControl & '=(.*)', 3) _arraydisplay($ret) Thx!
-
_IniString Functions (was Ini_InMem)
x_bennY replied to ResNullius's topic in AutoIt Example Scripts
Why this is slower than IniRead? It gets slower according to the amount of data, IniRead dosen't seem to be affected. -
StringSize - M23 - BugFix version 27 Dec 23
x_bennY replied to Melba23's topic in AutoIt Example Scripts
Hei @Melba23, i'm using your UDF to center my rich edit txts, the problem is that i have different font types and sizes, how could i deal with it? to center it, it only works with equal font sizes. I'm using this UDF too: For example, center the text of the preview: #include <GUIConstantsEx.au3> #include <GUIEdit.au3> #include <ComboConstants.au3> #include <WindowsConstants.au3> #include "GUIRichLabel.au3" Global $iLast_Focused_Ctrl = 0 Global $iEdit_Changed = 0 $hGUI = GUICreate("Formatted Labels Editor", 650, 400) #Region Formate text panel GUICtrlCreateLabel("Size:", 10, 8, -1, 15) $nSize_Combo = GUICtrlCreateCombo("", 40, 5, 80, 20, BitOr($GUI_SS_DEFAULT_COMBO, $CBS_DROPDOWNLIST)) GUICtrlSetData(-1, "None|8|8.5|9|10|11|12|14|16|18|20|22|24|26|28|36|48|72", "None") GUICtrlCreateLabel("Attrib:", 10, 33, -1, 15) $nAttrib_Combo = GUICtrlCreateCombo("", 40, 30, 155, 20, BitOr($GUI_SS_DEFAULT_COMBO, $CBS_DROPDOWNLIST)) GUICtrlSetData(-1, "None|bold|italic|underline|strike|bold+italic+underline+strike|bold+italic+underline|bold+italic|bold+underline|bold+strike|italic+underline+strike|italic+underline|italic+strike|underline+strike", "None") GUICtrlCreateLabel("Name:", 230, 15, 50, 15) $nName_Combo = GUICtrlCreateCombo("", 230, 30, 160, 20, BitOr($GUI_SS_DEFAULT_COMBO, $CBS_DROPDOWNLIST)) GUICtrlSetData(-1, "None|Arial|Comic Sans Ms|Tahoma|Times|Georgia|Lucida Sans Unicode|Verdana|Times New Roman|Courier New", "None") GUICtrlCreateLabel("Color:", 425, 15, 50, 15) $nColor_Combo = GUICtrlCreateCombo("", 425, 30, 90, 20, BitOr($GUI_SS_DEFAULT_COMBO, $CBS_DROPDOWNLIST)) GUICtrlSetData(-1, "None|Red|Green|Blue|Yellow|Orange|Gray|Brown|White", "None") GUICtrlCreateLabel("Bk Color:", 550, 15, 50, 15) $nBkColor_Combo = GUICtrlCreateCombo("", 550, 30, 90, 20, BitOr($GUI_SS_DEFAULT_COMBO, $CBS_DROPDOWNLIST)) GUICtrlSetData(-1, "None|Red|Green|Blue|Yellow|Orange|Gray|Brown|White", "None") #EndRegion Formate text panel GUICtrlCreateGroup("Select text and then select the formatting parameters from the above panel:", 10, 60, 630, 150) $nSrcText_Edit = GUICtrlCreateEdit("", 20, 80, 610, 120) GUICtrlCreateGroup("Preview:", 10, 230, 630, 130) GUICtrlSetFont(-1, 10, 800) $nClose_Button = GUICtrlCreateButton("Close", 10, 370, 60, 20) $nCopy_Button = GUICtrlCreateButton("Copy", 90, 370, 60, 20) GUIRegisterMsg($WM_COMMAND, "WM_COMMAND") GUISetState(@SW_SHOW, $hGUI) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE, $nClose_Button Exit Case $nSize_Combo, $nAttrib_Combo, $nName_Combo, $nColor_Combo, $nBkColor_Combo $iLast_Focused_Ctrl = $nMsg Local $sParam = StringLower(StringRegExpReplace(GUICtrlRead($nMsg - 1), '\h+|:', '')) Local $sValue = GUICtrlRead($nMsg) _SetFormattedText_Proc($sParam, $sValue) Case $nCopy_Button Local $sText = GUICtrlRead($nSrcText_Edit) If $sText <> "" Then ClipPut($sText) EndIf EndSwitch If $iEdit_Changed Then _GUICtrlRichLabel_Destroy(-1) _GUICtrlRichLabel_Create($hGUI, GUICtrlRead($nSrcText_Edit), 20, 245, 610, 110) If $iEdit_Changed = 1 Then GUICtrlSetState($nSrcText_Edit, $GUI_FOCUS) Else GUICtrlSetState($iLast_Focused_Ctrl, $GUI_FOCUS) EndIf $iEdit_Changed = 0 EndIf WEnd Func _SetFormattedText_Proc($sParam, $sValue) If $sParam = "attrib" And Not StringRegExp($sValue, '(?i)\A(None)?\z') Then Local $aSplit = StringSplit($sValue, "+") $sValue = "" For $i = 1 To $aSplit[0] $sValue &= StringLeft($aSplit[$i], 1) If $i < $aSplit[0] Then $sValue &= "+" EndIf Next EndIf Local $sSelectionData = ControlCommand($hGUI, "", $nSrcText_Edit, "GetSelected") Local $sAddParamValue = ' ' & $sParam & '="' & $sValue & '"' If $sSelectionData = '' Then Return EndIf If StringRegExp($sSelectionData, '(?i)<font.*>.*</font>') Then $sSelectionData = StringRegExpReplace($sSelectionData, '(?i)(<font.*)( ' & $sParam & '=".*?")(.*>.*</font>)', '\1\3') If Not StringRegExp($sValue, '(?i)\A(None)?\z') Then $sSelectionData = StringRegExpReplace($sSelectionData, '(?i)(<font.*)(>.*</font>)', '\1' & $sAddParamValue & '\2') EndIf If StringRegExp($sSelectionData, '(?i)<font\h*>.*</font>') Then $sSelectionData = StringRegExpReplace($sSelectionData, '(?i)<font.*>(.*)</font>', '\1') EndIf ElseIf $sAddParamValue <> '' Then $sSelectionData = '<font' & $sAddParamValue & '>' & $sSelectionData & '</font>' EndIf Local $iStart, $iEnd GUIRegisterMsg($WM_COMMAND, "") _GUICtrlEdit_ReplaceSel($nSrcText_Edit, $sSelectionData) $iStart = StringInStr(GUICtrlRead($nSrcText_Edit), $sSelectionData)-1 $iEnd = $iStart + StringLen($sSelectionData) GUICtrlSendMsg($nSrcText_Edit, $EM_SETSEL, $iStart, $iEnd) $iEdit_Changed = 2 GUIRegisterMsg($WM_COMMAND, "WM_COMMAND") EndFunc Func WM_COMMAND($hWnd, $nMsg, $wParam, $lParam) Local $nNotifyCode = BitShift($wParam, 16) Local $nID = BitAND($wParam, 0xFFFF) Local $hCtrl = $lParam Switch $nID Case $nSrcText_Edit Switch $nNotifyCode Case $EN_UPDATE $iEdit_Changed = 1 EndSwitch EndSwitch Return $GUI_RUNDEFMSG EndFunc