Leaderboard
Popular Content
Showing content with the highest reputation on 03/29/2013 in all areas
-
Hi! Today I want to show you my current AutoIt project: The ISN AutoIt Studio. The ISN AutoIt Studio is a complete IDE made with AutoIt, for AutoIt! It includes a GUI designer, a code editor (with syntax highlighting, auto complete & intelisense), a file viewer, a backup system, trophies and a lot more features!! Here are some screenshots: Here some higlights: -> easy to create/manage/public your AutoIt-projects! ->integrated GUI-Editor (ISN Form Studio 2) ->integrated - file & projectmanager ->auto backupfunction for your Projects ->extendable with plugins! ->available in several languages ->trophies ->Syntax highlighting /Autocomplete / Intelisense ->Dynamic Script ->detailed overview of the project (total working hours, total size...) And much more!!! -> -> Click here to download ISN AutoIt Studio <- <- Here is the link to the german autoit forum where I posted ISN AutoIt Studio the first time: http://autoit.de/index.php?page=Thread&threadID=29742&pageNo=1 For more information visit my Homepage: https://www.isnetwork.at So….have fun with ISN AutoIt Studio! PS: Sorry for my bad English! ^^1 point
-
There is no need to loop thru the button-id's. #include <GUIConstantsEx.au3> Global $aBtnIds[9] $hGui=GUICreate('Buttontest', 110, 110) For $i = 0 To 8 $aBtnIds[$i] = GUICtrlCreateButton($i + 1, 10 + Mod($i,3) * 30, 10 + Int($i/3) * 30, 25, 25) Next GUISetState() While 1 $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE Exit Case $aBtnIds[0] To $aBtnIds[8] MsgBox(0, 'Button', 'No. ' & $msg - $aBtnIds[0] + 1 & ' was clicked',0,$hGui) EndSwitch WEnd1 point
-
1 point
-
I have always found that StringFormat example only really shows the required format string when run - the double %% used in the printf strings really confused me when I first started using the function. I hope this proposal works both as a reference script and when run: _StringFormat_Example() Func _StringFormat_Example() Local $iInt_Unsigned = 43951789 Local $iInt_Negative = -43951789 ConsoleWrite(@CRLF & "Numeric Formats" & @CRLF) ShowFormat($iInt_Unsigned, "%d", "standard positive integer with no sign", 1) ; 43951789 ShowFormat($iInt_Negative, "%d", "standard negative integer with sign", 1) ; -43951789 ShowFormat($iInt_Unsigned, "%i", "standard integer", 1) ; 43951789 ShowFormat($iInt_Unsigned, "%09i", "9 digits with leading zero", 1) ; 043951789 ShowFormat($iInt_Unsigned, "%e", "scientific notation") ; 4.395179e+007 ShowFormat($iInt_Unsigned, "%u", "unsigned integer with positive integer", 1) ; 43951789 ShowFormat($iInt_Negative, "%u", "unsigned integer with negative integer", 1) ; 4251015507 ShowFormat($iInt_Unsigned, "%f", "floating point") ; 43951789.000000 ShowFormat($iInt_Unsigned, "%.2f", "floating point with 2 digits after decimal point", 1) ; 43951789.00 ShowFormat($iInt_Unsigned, "%o", "octal", 1) ; 247523255 ShowFormat($iInt_Unsigned, "%s", "string", 1) ; 43951789 ShowFormat($iInt_Unsigned, "%x", "hexadecimal (lower-case)", 1) ; 29ea6ad ShowFormat($iInt_Unsigned, "%X", "hexadecimal (upper-case)", 1) ; 29EA6AD ShowFormat($iInt_Unsigned, "%+d", "sign specifier on a positive integer", 1) ; +43951789 ShowFormat($iInt_Negative, "%+d", "sign specifier on a negative integer", 1) ; -43951789 Local $sString = "string" Local $sString_Long = "longstring" ConsoleWrite(@CRLF & "String Formats - [ ] used to show beginning/end of string" & @CRLF) ShowFormat($sString, "[%s]", "standard string", 1) ; [string] ShowFormat($sString, "[%10s]", "10 chars right justified with added spaces") ; [ string] ShowFormat($sString, "[%-10s]", "10 chars left justified with added spaces") ; [string ] ShowFormat($sString_Long, "[%10.8s]", "right justified but precision 8 so truncated") ; [ longer s] ShowFormat($sString_Long, "[%-10.8s]", "left justifed but precision 8 so truncated") ; [longer s ] ShowFormat($sString, "[%010s]", "10 chars with leading zero") ; [0000string] ConsoleWrite(@CRLF & "Date Format - each % uses a new parameter" & @CRLF) ConsoleWrite('"%02i\%02i\%04i" 0n (1, 9, 2013) => ' & StringFormat("%02i\%02i\%04i", 1, 9, 2013) & @CRLF & @CRLF) EndFunc Func ShowFormat($vVar, $sFormat, $sExplan, $iTab = 0) ConsoleWrite('"' & $sFormat & '" on ' & $vVar & @TAB & ' => ' & StringFormat($sFormat, $vVar)) If $iTab Then ConsoleWrite(@TAB) ConsoleWrite(@TAB & " ; " & $sExplan & @CRLF) EndFunc Numeric Formats "%d" on 43951789 => 43951789 ; standard positive integer with no sign "%d" on -43951789 => -43951789 ; standard negative integer with sign "%i" on 43951789 => 43951789 ; standard integer "%09i" on 43951789 => 043951789 ; 9 digits with leading zero "%e" on 43951789 => 4.395179e+007 ; scientific notation "%u" on 43951789 => 43951789 ; unsigned integer with positive integer "%u" on -43951789 => 4251015507 ; unsigned integer with negative integer "%f" on 43951789 => 43951789.000000 ; floating point "%.2f" on 43951789 => 43951789.00 ; floating point with 2 digits after decimal point "%o" on 43951789 => 247523255 ; octal "%s" on 43951789 => 43951789 ; string "%x" on 43951789 => 29ea6ad ; hexadecimal (lower-case) "%X" on 43951789 => 29EA6AD ; hexadecimal (upper-case) "%+d" on 43951789 => +43951789 ; sign specifier on a positive integer "%+d" on -43951789 => -43951789 ; sign specifier on a negative integer String Formats - [ ] used to show beginning/end of string "[%s]" on string => [string] ; standard string "[%10s]" on string => [ string] ; 10 chars right justified with added spaces "[%-10s]" on string => [string ] ; 10 chars left justified with added spaces "[%10.8s]" on longstring => [ longstri] ; right justified but precision 8 so truncated "[%-10.8s]" on longstring => [longstri ] ; left justifed but precision 8 so truncated "[%010s]" on string => [0000string] ; 10 chars with leading zero Date Format - each % uses a new parameter "%02i\%02i\%04i" 0n (1, 9, 2013) => 01\09\2013The various tabs all line up in SciTE - I really hate this editor! M231 point
-
TrayItemSetState1 point
-
1 point
-
guinness, As the code is exactly what I suggest, I am not surprised that it returns exactly the size of image that I think it should: - 1. 1680 x 1050 (full screen) - 2. 797 x 597 As I pointed out in the Trac ticket asking for (0, 0, 796, 596) should produce a 797 x 597 image - which it does. M231 point
-
#include <Array.au3> $sString = BinaryToString(InetRead("http://vnptonline.net/bb/xxxx2.txt")) ConsoleWrite($sString & @CR) $aReturn = StringRegExp( $sString, "(?is)<tr[^>]+>.*?<td>(.*?)</td>.*?<td>(.*?)</td>.*?<td>(?:\d{1,2}|/)+(\d{4}).*?</td>.*?<td>(.*?)</td>", 4 ) Local $l For $i = 0 To UBound($aReturn) - 1 $l = $aReturn[$i] ;~ _ArrayDisplay($l) If $l[2] = "03355" And $l[4] = "This person is here now" And $l[3] = "2011" Then _ArrayDisplay( $l, "BUZZ!! The Guy Here." ) Next #cs <tr class="alitem"> <td>1</td> <td>03192</td> <td>24/11/2011 09:32:12</td> <td>This person is not here anymore</td></tr> <tr class="alitem"> <td>2</td> <td>03224</td> <td>24/11/2011 09:32:12</td> <td>This person is not here anymore</td></tr> <tr class="alitem"> <td>3</td> <td>03355</td> <td>24/11/2011 09:32:12</td> <td>This person is here now</td></tr> <tr class="alitem"> <td>4</td> <td>02234</td> <td>24/11/2011 09:32:12</td> <td>This person is not here anymore</td></tr> #ceThumbs up if it helped1 point
-
I'm sure most people look at this and don't know anything about XML files, the number of views is irrelevant to the number of people able to help.1 point
-
ID3 UDF ID3v1 & ID3v2 MP3 Tags
BinaryBrother reacted to Tungsten for a topic
I just wanted to say thanks. to JoeyB 1275 and TheSaint. I have been using and modifying this au3 for years now, working it in to a few projects. Since the latest autoit upgrade I had to update to the latest id3.au3 version and subsiquently update most of my code. When i was done updating my most used project i realized that i had to only change a few lines of code and comment out almost all of my mods and additional functions. through my experience with this i have learned a lot about the file structure used for mp3's and it comes in pretty handy when my boss gives me a file and asks why it does not work with our system. i can just hex edit the thing and bring it back to life or tell him that its thoroughly thrashed with out any doubt. I know i don't post here much , but i have been using autoit since 2006 when a big name company(can't say) handed me testing process with autohotkey. I found a better way of doing things with autoit....saved the day, and have loved it ever since. so once again. Thank you.1 point