Leaderboard
Popular Content
Showing content with the highest reputation on 07/23/2018 in all areas
-
Notificacions on android phone
ternal reacted to alienclone for a topic
if you are big into automation and have an android then you should have Tasker on your phone, i would suggest also adding Join, its like Pushbullet but with TONS more options. also suggest getting some of the AutoApps plugins for Tasker, mainly the AutoRemote plugin, it lets you send commands from anywhere to your phone, then your phone can react to each command for total automation. you can also use EventGhost and have your phone send commands to your pc which can then be run with Autoit. then stand back and watch as the machines take over the planet and rule the humans.1 point -
How to create a window multiple times for repeated data entry
barrano247 reacted to ternal for a topic
That is quite possible. I gave it my best shot but I am not smart enough, my apologies I would have suggested to add a msgbox just before winwaitactive but it seems as the problem is really deeper. I am clueless edit: I am not sure but I have seen people state that the forum is more readable if you dont quote people unnessecary. kind regards, and good luck, Ternal1 point -
1 point
-
How to create a window multiple times for repeated data entry
barrano247 reacted to ternal for a topic
you should not use global variables in functions as a thumbrule. I am quite new myself but I would dare to guess when it runs a second time through there there is conflict with the variables that adress your buttons since they are global. edit: you can always pass variables from function to function by using filling the variables in between parentheses (see helpfile and also checkout byref). return is also an option Kind regards, Ternal1 point -
SciTE Config - Syntax Color Question
jaberwacky reacted to QwertoX for a topic
Here is a Monokai style dark theme for SCITE Editor: Look alike or similar to Sublime Text 3. Simply copy that code in your "SciTEUser.properties" wich is in Options > Open User Options File Happy coding everyone # SciTE Customization GUI ---------------------------------------- # Do not remove these lines or anything between them position.left=-1 position.top=-1 position.width=-1 position.height=-1 position.maximize=0 position.tile=0 minimize.to.tray=0 save.position=1 toolbar.visible=0 end.at.last.line=0 ensure.final.line.end=1 statusbar.visible=1 full.screen.hides.menu=0 title.full.path=1 title.show.buffers=0 blank.margin.right=0 blank.margin.left=6 split.vertical=0 output.vertical.size=256 output.horizontal.size=0 output.initial.hide=1 clear.before.execute=1 output.scroll=1 fold=1 fold.on.open=0 fold.compact=0 fold.preprocessor=0 fold.comment=1 fold.flags=0 fold.symbols=0 fold.highlight=1 fold.highlight.colour=#71FF1C fold.margin.colour=#282923 fold.margin.highlight.colour=#1E1E1E fold.margin.width=16 use.tabs=0 tabsize=4 tab.indents=4 backspace.unindents=1 indent.size.$(au3)=4 view.indentation.guides=1 style.au3.37=fore:#1E1E1E,back:#282923 highlight.indentation.guides=1 selection.fore=#38FF1C selection.back=#f9f9f9 selection.alpha=50 selection.multiple=1 selection.additional.typing=1 selection.additional.back=#282923 selection.additional.alpha=50 highlight.current.word=1 highlight.current.word.by.style=0 highlight.current.word.autoselectword=0 highlight.current.word.wholeword=0 highlight.current.word.matchcase=1 highlight.current.word.minlength=2 highlight.current.word.colour=#C2FFAE margin.width=16 braces.check=1 braces.sloppy=1 style.au3.34=fore:#8F9D6A,back:#282923,bold,notitalics,notunderlined style.au3.35=fore:#e7db74,back:#282923,bold,notitalics,notunderlined caret.fore=#A0A0A0 caret.width=3 caret.period=700 caret.additional.blinks=1 caret.sticky=1 virtual.space=1 caret.line.back=#F8F8F8 caret.line.back.alpha=10 caret.policy.xslop=1 caret.policy.width=20 caret.policy.xstrict=0 caret.policy.xeven=0 caret.policy.xjumps=0 caret.policy.yslop=1 caret.policy.lines=1 caret.policy.ystrict=1 caret.policy.yeven=1 caret.policy.yjumps=0 line.margin.visible=1 line.margin.width=1+ style.*.33=fore:#DADADA,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics error.select.line=0 style.errorlist.3=fore:#DADADA,back:#282923 error.marker.fore=#DADADA error.marker.back=#282923 error.inline=0 style.error.1=fore:#e7db74,back:#282923 style.error.2=fore:#FF0000,back:#282923 are.you.sure=1 are.you.sure.for.build=0 are.you.sure.on.reload=0 save.all.for.build=0 load.on.activate=0 save.on.deactivate=0 reload.preserves.undo=1 check.if.already.open=0 quit.on.close.last=0 save.recent=1 save.session=1 save.find=1 session.bookmarks=1 session.folds=1 save.on.timer=600 strip.trailing.spaces=1 open.dialog.in.file.directory=1 calltips.color.highlight=#e7db74 style.au3.38=fore:#DADADA,back:#282923 calltips.set.above=0 calltip.au3.ignorecase=1 calltip.*.use.escapes=0 mousehover.calltips.dwelltime=750 autocomplete.au3.disable=0 autocomplete.choose.single=0 autocomplete.au3.ignorecase=1 autocompleteword.automatic=0 autocomplete.*.fillups = buffers=100 buffers.zorder.switching=1 tabbar.visible=1 tabbar.multiline=0 tabbar.hideone=0 find.mark=1 find.replace.matchcase=0 find.replace.regexp=0 find.replace.regexp.posix=0 find.replace.wrap=1 find.replace.escapes=0 find.replacewith.focus=1 find.use.strip=0 replace.use.strip=0 find.close.on.find=1 find.in.files.close.on.find=1 find.replace.advanced=1 buffered.draw=1 two.phase.draw=1 technology=1 cache.layout=2 output.cache.layout=0 font.quality=3 ext.lua.auto.reload=1 ext.lua.reset=0 edge.mode=0 edge.column=143 edge.colour=#e7db74 indicators.alpha=50 indicators.under=1 style.au3.32=back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined style.au3.0=fore:#A688FF,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined style.au3.1=fore:#74705d,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined style.au3.2=fore:#77FFBB,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined style.au3.3=fore:#e7db74,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined style.au3.4=fore:#f92472,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined style.au3.5=fore:#FFB96A,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined style.au3.6=fore:#C4FF55,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined style.au3.7=fore:#e7db74,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined style.au3.8=fore:#FF3E3E,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined style.au3.9=fore:#ffffff,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined style.au3.10=fore:#DADADA,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined style.au3.11=fore:#8996A8,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined style.au3.12=fore:#4ABDAF,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined style.au3.13=fore:#CEF7BD,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined style.au3.14=fore:#0080FF,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined style.au3.15=fore:#FF80FF,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined style.errorlist.32=fore:#DADADA,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined style.errorlist.4=fore:#8F9D6A,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined style.errorlist.10=fore:#e7db74,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined style.errorlist.11=fore:#ffffff,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined style.errorlist.12=fore:#F9EE98,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined style.errorlist.0=fore:#FFFFFF,back:#282923,font:Ubuntu Mono,size:12,notbold,notitalics,notunderlined style.errorlist.1=fore:#DADADA,back:#282923,font:monoOne,size:12,notbold,notitalics,notunderlined backup.files=0 check.updates.scite4autoit3=1 proper.case=1 debug.msgbox.option=-1 debug.console.option=0 debug.trace.option=3 # Do not remove these lines or anything between them # - SciTE Customization GUI ---------------------------------------- import au3.UserUdfs import au3.keywords.user.abbreviations "1 point -
If you have skype on your phone and your pc and constant internet connection you could have autoit send you something through skype. Kind regards, Ternal1 point
-
Autocamo is able to do this with its ability to seed the bulders token generator. Many moons ago1 point
-
_Excel_RangeRead
FrancescoDiMuro reacted to water for a topic
BTW: Do not use the "Quote" button when you intend to reply to an answer. We all know what has been posted before. Post your reply at the end of the thread in the "Reply to this thread ..." field. Unnecessary quoting just clutters the thread1 point -
In the post #1 example, your declaration appears not to have a closing square bracket at the end of the declaration, only a coma. This missing "]" will cause an error. If you want $1V7 to $2IL put into an array, then the following example does that. #include <Array.au3> Global $2IL[_Base36ToDec("2IL") - _Base36ToDec("1V7") + 1] For $i = 0 To UBound($2IL) - 1 $2IL[$i] = "$" & _Dec2Base36(_Base36ToDec("1V7") + $i) ;ConsoleWrite($i & " " & _Dec2Base36(_Base36ToDec("1V7") + $i) & @CRLF) Next _ArrayDisplay($2IL) Func _Dec2Base36($iDec) Local $aBase36 = StringSplit("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", "", 2) Local $sRet = "" For $i = 0 To Int(Log($iDec) / Log(36)) $sRet = $aBase36[Mod($iDec / 36 ^ $i, 36)] & $sRet Next Return $sRet EndFunc ;==>_Dec2Base36 Func _Base36ToDec($str) Local $iRet, $a = StringSplit($str, "", 2), $UB = UBound($a) - 1 For $i = 0 To $UB $iRet += 36 ^ ($UB - $i) * (StringInStr("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", $a[$i]) - 1) Next Return $iRet EndFunc ;==>_Base36ToDec Edit: Replaced:- $aTemp = StringRegExp("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", "(?i)(.*)" & $a[$i], 3) $Index = StringLen($aTemp[0]) $iRet += 36 ^ ($UB - $i) * $Index with:- $iRet += 36 ^ ($UB - $i) * (StringInStr("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", $a[$i]) - 1) Similar example, but with variable base functions. #include <Array.au3> ; https://www.autoitscript.com/forum/topic/194949-array-troubles/?do=findComment&comment=1398101 Local $iBase = 36 ; 62 ; Local $2IL[_BaseX2Dec("2IL", $iBase) - _BaseX2Dec("1V7", $iBase) + 1] For $i = 0 To UBound($2IL) - 1 $2IL[$i] = "$" & _Dec2BaseX(_BaseX2Dec("1V7", $iBase) + $i, $iBase) ;ConsoleWrite($i & " " & _Dec2BaseX(_BaseX2Dec("1V7", $iBase) + $i, $iBase) & @CRLF) Next _ArrayDisplay($2IL) ; Base 62 is maximum Func _Dec2BaseX($iDec, $iBase) Local $sBaseX = StringLeft("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", $iBase) Local $aBaseX = StringSplit($sBaseX, "", 2) Local $sRet = "" For $i = 0 To (Log($iDec) / Log($iBase)) $sRet = $aBaseX[Mod($iDec / $iBase ^ $i, $iBase)] & $sRet Next Return $sRet EndFunc ;==>_Dec2BaseX ; Base 62 is maximum Func _BaseX2Dec($str, $iBase) Local $sBaseX = StringLeft("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", $iBase) Local $iRet, $a = StringSplit($str, "", 2), $UB = UBound($a) - 1 For $i = 0 To $UB $iRet += $iBase ^ ($UB - $i) * (StringInStr($sBaseX, $a[$i], 1) - 1) Next Return $iRet EndFunc ;==>_BaseX2Dec A base13 example. MsgBox(0, "", 'The ultimate question of life the universe and everything is "What is 6 times 9?".' & @CRLF & _ 'The ultimate answer of life the universe and everything is "' & _Dec2BaseX(6 * 9, 13) & '" (Base 13).') ; Base 62 is maximum Func _Dec2BaseX($iDec, $iBase) Local $sBaseX = StringLeft("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", $iBase) Local $aBaseX = StringSplit($sBaseX, "", 2) Local $sRet = "" For $i = 0 To (Log($iDec) / Log($iBase)) $sRet = $aBaseX[Mod($iDec / $iBase ^ $i, $iBase)] & $sRet Next Return $sRet EndFunc ;==>_Dec2BaseX1 point
-
Batch Ebook Convert updated, to v1.4, see Post #41. Three new screenshots. See previous two posts for a complete explanation of recent additions and changes. (v1.4) Added a Splash image that appears when a list entry is clicked, if a 'cover.jpg' file is found in the same folder as the OPF file. Moving the mouse or clicking its left button closes the splash image. Program Information and Open Calibre Library folder buttons have been shrunk to accommodate the new 'Program Options' button. The method added in v1.3 has now become optional, and one of three choices, available on the new 'Program Options' window. Some very minor bugfixes also applied. NOTE - Showing the splash Cover Image, can be turned off on the 'Program Options' window.1 point
-
Excellent idea, TD.1 point
-
I agree. A practical example and the reason why I am looking forward to this feature is because I develop a program called ProxAllium, it is a frontend for Tor which is a security related software, I won't go into much detail, but I will say that users of Tor and the Tor project take security/trustworthiness somewhat more seriously than normal people. In order for a software to be accepted by the community, the binaries should ideally be reproducible, so that they can verify that it has indeed been compiled from the public source code. Unfortunately it is impossible to do this in AutoIt as tokenization adds a random factor to the compile process That is only one of the many advantages of reproducible builds, more incentives and advantages can be found here: https://reproducible-builds.org/ Also, the wikipedia entry on this topic: https://en.wikipedia.org/wiki/Deterministic_compilation It is a valuable technique which open source software can take advantage of1 point
-
You shouldn't have needed to bump. But clearly you did have to. I am surprised you got no response, as I consider your request as quite worthwhile, going by our recent discussions. Perhaps you should outlay your current situation, to make things perfectly clear to the powers-that-be, why this is needed.1 point
-
Upon further reflection, I have had a rethink in regard to the Cover Image issue mentioned etc in the previous post. With regards to Batch Ebook Convert, which now by default, replaces or adds any existing 'cover.jpg' into the conversion to EPUB process ... embeds it. I now think it would be best, if I leave what occurs, up to the user, and just provide three options. The first option, is to not do anything, just go with whatever calibre does automatically. With the result of that, if the user then wants to add or fix a missing cover image in the EPUB file, they can use something like the wonderful Sigil to do so .... or they can use the FIX COVER option in my Add Book & All Formats To Calibre program. The second option, is to do the other thing that is available to us, and just have the 'cover.jpg' file embedded anyway, regardless of whether a working cover image already exists. That will mean, that most (at least in my experience) EPUB conversions will contain two cover images. Overkill and a bit 'B' grade to say the least, but perhaps the easiest solution of all. The EPUB will be slightly bigger of course, dependent on the file size of the 'cover.jpg' file. In this day and age of large storage, that last is probably a non-issue. The third option of course, is the one I currently have implemented, and is discussed in some detail in the previous post above. So stay tuned for an update to Batch Ebook Convert, which I shall work on shortly and provide soon, which will provide those 3 options. P.S. No doubt I need to discuss this issue with calibre again, with Kovid Goyal. Last time I mentioned it, was in passing, while discussing something else, and I did not have any good examples at hand, and he was not aware of the issue. That was maybe 9 months to a year ago. Add Book & All Formats To Calibre does log the fixed epubs, so I now have a record to refer to. The only other issue, of course, is access to the ebook in question, so I need to check that whatever sample I give is still a DRM-Free freebie at Amazon. At the moment, the problem EPUBs I am discovering, were obtained from Amazon a few months ago ... me having a huge backlog to still work through. Many of those DRM-Free freebies are no longer so.1 point
-
Hello Try this: #include <String.au3> #include <Array.au3> Local $sData = FileRead("xml.xml") Local $aData = _StringBetween($sData, 'xd:inline="', '"') _ArrayDisplay($aData) Local $sImageName = "" Local $hFile = 0 For $i = 0 To UBound($aData) - 1 $sImageName = "Image-" & $i + 1 & "." & _Base64ImageType($aData[$i]) $hFile=FileOpen($sImageName, 18) FileWrite($hFile, _Encoding_Base64Decode($aData[$i])) FileClose($hFile) Next Func _Base64ImageType($sBase64Image) Local $sType = "" Local $sChar = StringMid($sBase64Image, 1, 1) Switch $sChar Case "/" $sType = "jpg" Case "R" $sType = "gif" Case "i" $sType = "png" Case Else EndSwitch Return $sType EndFunc ;==>_Base64ImageType Func _Encoding_Base64Decode($sData) Local $struct = DllStructCreate("int") $a_Call = DllCall("Crypt32.dll", "int", "CryptStringToBinary", _ "str", $sData, _ "int", 0, _ "int", 1, _ "ptr", 0, _ "ptr", DllStructGetPtr($struct, 1), _ "ptr", 0, _ "ptr", 0) If @error Or Not $a_Call[0] Then Return SetError(1, 0, "") ; error calculating the length of the buffer needed EndIf Local $a = DllStructCreate("byte[" & DllStructGetData($struct, 1) & "]") $a_Call = DllCall("Crypt32.dll", "int", "CryptStringToBinary", _ "str", $sData, _ "int", 0, _ "int", 1, _ "ptr", DllStructGetPtr($a), _ "ptr", DllStructGetPtr($struct, 1), _ "ptr", 0, _ "ptr", 0) If @error Or Not $a_Call[0] Then Return SetError(2, 0, "") ; error decoding EndIf Return BinaryToString(DllStructGetData($a, 1)) EndFunc ;==>_Encoding_Base64Decode Saludos1 point
-
spikespaz, There are many posts (often by me) on the forum which explain why the rule exists as it does, so I am not going to explain it yet again. Suffice to say that the site owner, and author of AutoIt, wrote those rules personally - so if you want to post in his forum you need to obey them. If that does not meet with your personal feelings of what should be allowed - tough. We cannot, and indeed have no wish, to determine what use people make of AutoIt - but we do, and most certainly will, police what is discussed in this forum. And so to prevent yet another Oozlum bird meeting a premature end, this thread is locked. M231 point
-
As it seems that some members do not bother to read the "Announcements" section, I have added the above to the list of prohibited activities in the Forum rules. M231 point