Leaderboard
Popular Content
Showing content with the highest reputation on 11/17/2015 in all areas
-
New version 1.7.3.0 is out! Download current release Place to post bugs and suggestions (Bug tracker) Online help (Wiki) What's new: Graphic editorBetter support of limited accounts and UAC under Vista/SevenStyles editor allow multiple selectionIcons in additional controls (Tab, ListView, TreeView)Redone Object tree, with support of editable descriptionsAwareness of GUI_SS_DEFAULT stylesAnd many smaller changes (see full history) New version 1.7.2.0 is out! What's new: Added small abilities that become in latest beta of AutoitImproved language systemImproved update checkingImproved siteNew version 1.7.1.0 is out! What's new: Customizing colorsExternal import frameworkCustom controls (ones that available via standard UDFs)Rewritten support for icon - now it support full color onesBetter support (bugtracker, wiki)Bugfix release 1.7.0.1 is out! After another year, new version 1.7.0.0 is out! Most significant changes in this release: Customizable toolbarsUndo supportAligning paletteImport Autoit GUI scriptsFull help file, with context sensitive help supportAnd as usually, lots of bugfixes and small changes. After long period of development and testing, new release 1.6.0.0 is finally here! Thanks to all who support us and help done this work! Most significant changes from previous release: New, more fast and reliable form read/write routines.Rewritten form list handling codeMenus support (with visual editor)Obj support (with visual browser)Templates-based code generationGenerating event-based codeHelp file (unfinished)Old topic is here, some bugs posted there are not resolved yet, so please check it too.1 point
-
Global Pause, and general pause functions.
guestscripter reacted to JohnOne for a topic
I've made a makeshift universal pause function hack, which works by an external script controlling AutoIt's tray pause capability. Here's how it works,,, You Include the GlobalPause.au3 in your script, when you do that and run your script, it writes Pause.au3 to your script folder. Pause.au3 is the binary string which you see in GlobalPause.au3, it's just much neater to write it this way, The actual code of Pause.au3 is below. Your script (shown below as TestingPause.au3) needs everything you see in it except the Sleep and ConsoleWrite which is just there for demonstration purposes. It's pretty self explanatory really, you hit pause key and it should pause your script immediately, you press it again and it will resume it as though you hit the pause button in the system tray. That is all it is, automating that button and a bit of logic, the reason is just convenience and I've seen many people wanting a boil in the bag pause function. Most of the automation code comes from M32 / rover in >this post, or one similar to it (cannot quite remember, I found a few), with a few adjustments. Here is the setback, your script's system tray icon must be visible in the tray and not hidden, I simply cannot find a way to automate the hidden ones. You can make it stay there by using the customize icon link in the hidden tray. The Code The Include: GlobalPause.au3 The test script: TestingPause.au3 The code which the included binary resolves to: Pause.au3 It's trivial to get all this working with your compiled scripts, or have the Pause.au3 compiled, in fact that's how I started it, but then thought about non compiled scripts and changed it. Probably mostly just help noob botters, but I hope someone at least gets some use from it, basically just saves you writing your embedded pause function. And this probably won't even work on a machine other than my own. EDIT: This thread now includes other more general Pause implementations. >General pause function for hot key. >General pause function for gui button. >Classic MsgBox pause. >Pause via Tray Menu. Please feel free to add any other pause implementations. The Zip for global pause: GlobalPause.zip1 point -
Hi trancexx I manage to solve this by simply adding $sReportLink to this part of your provided code, thank you very much While StringInStr($sHtml, "<title>Working...</title>") $sHtml = _WinHttpSimpleFormFill($hConnect, $sReportLink) ;adding $sReportLink as parameter MsgBox(0, 0, "true") WEnd1 point
-
In this case the number, without using scientific notation, would be .00003763 seconds the e-005 tells you to move the decimal point 5 places to the left.1 point
-
Don't use notepad or notepad++ at all...use filewrite.1 point
-
Sometimes the result is using exponents, so the >1 actually isn't greater than one, it's actually much less.1 point
-
Windows Registry - Finding the proper "{...}Machine\" path
Duck reacted to JLogan3o13 for a topic
Hi, @Duck welcome to the forum. You can always enumerate the keys in the registry to find the one you need: $sKey = "HKCU\Software\Microsoft\Windows\CurrentVersion\Group Policy Objects" For $i = 1 to 10 Local $sSubKey = RegEnumKey($sKey, $i) If StringInStr($sSubKey, "}Machine") Then ConsoleWrite($sSubKey & @CRLF) Next1 point -
1 point
-
Compile error: Unable to add resources
ericbartha reacted to pellefsen for a topic
Oops - who needs a dog or a cardboard cut-out to talk to when we have this forum? Turns out that the icon file was corrupt and that was what was triggering the 'unable to add resources'. Thanks for listening :-)1 point -
AutoIt Snippets
guestscripter reacted to Iczer for a topic
function without arrays and dependences to calculate number of days in any month in any year For $i = 1 to 12 ConsoleWrite(_DaysInMonth($i,2000)&@CRLF) Next Func _DaysInMonth ($iMonth,$iYear) return 28 + Mod($iMonth + Floor($iMonth / 8), 2) + Mod(2, $iMonth) + Floor((2 - Mod(Mod($iYear, 4) * (Mod($iYear, 100) + Mod($iYear, 400)) + 2, (Mod($iYear, 4) * (Mod($iYear, 100) + Mod($iYear, 400)) + 1))) / $iMonth) + Floor(1/$iMonth) - Floor((1 - Mod((Mod($iYear, 4) * (Mod($iYear, 100) + Mod($iYear, 400)) + 2), (Mod($iYear, 4) * (Mod($iYear, 100) + Mod($iYear, 400)) + 1)))/$iMonth) EndFunc1 point -
Global Pause, and general pause functions.
guestscripter reacted to JohnOne for a topic
I've decided to dedicate this thread to general pause functions. This is a general in script Pause function. It requires no global variables, just the function and a hotkey linked to it. It's so small I just put the example in with it.. HotKeySet("{PAUSE}", "_Pause") HotKeySet("{Esc}", "_Exit") While 3 Sleep(500) ConsoleWrite("Testing 123..." & @LF) ;Your code starts in this main loop WEnd Func _Pause() Local Static $bPaused = False $bPaused = Not $bPaused While $bPaused Sleep(333) WEnd EndFunc ;==>_Pause Func _Exit() Exit EndFunc ;==>_Exit1 point -
SunMoon calculator
guestscripter reacted to ravkr for a topic
This script calculates information about the Moon and the Sun (position on the sky, rise, transit, set, Moon phase etc.) Just enter your longitude and latitude wait a second Maybe I'll add ISS, asteroids and planets but I don't promise anything. Needed help with translating! If you want to translate it to your language just copy section (eg. [English]) from lang.ini, translate all messages and post it here Download link: http://ravkr.duckdns.org/autoit/sunmoon_v1.zip Report any bugs. Feedback is welcome PS. It's my first script published on this forum1 point -
Get text between 2 letters in a string
bikerbrooks reacted to Dracil for a topic
Hello i need a little help. Lets say i have a string with "Army Troops : 1000 x" The number 1000 changes all the time, so how do i grab something by between the ":" and then "x" ? Thanks in advance1 point