Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/27/2014 in all areas

  1. He didn't say it is, he said it should be treated as. It is still not a real handle because that would cause a horrible memory leak if all those handles were created and not freed. Notice there is no TimerDestroy function.
    2 points
  2. BeepSongEditor v1.0.2.4 Create easily Beep Songs and Mp3 Ringtones After >Beep Song Creator by Paulie, mine is more intended to hobbyists musicians ( based on a TT22 idea ) Now you can easily create Beep Songs and Mp3 Ringtones without being musician ! Source and Executable are available in the Download Section See Tray menu for options and help. If somes includes are missing : Bass Includes.rar Somes examples of ini files : Ini files.rar Thanks to Brett Francis, Prog@ndy and Eukalyptus for Bass Udf and trancexx for >DSBeep.au3 As usual several files are downloaded at first execution. Beep Party is back !!! Hope you like it !
    1 point
  3. BinaryToAu3Kompressor v1.0.5.4 It's now possible to see the best compression ratio using LZMA, LZNT and Base64 compressions with differents combinations. Nothing too complicate, you drag'n drop a file on the picture and script Test all compression types and return the ratios. ( Test duration depends of file size, slowest compression is LZNT, but all decompressions are fast ) Free to you after, to choose the compression(s) you want... Yes, LZMA needs a dll ( embedded & compressed in script ) but brings a powerfull compression. It opens scite with your file compressed to an au3 script with or without decompression function as you want. Hold Left Shift key when clicking button for just copy script to clipboard. Use the 3 compressions at a time works but doesn't give a good ratio, that's why i don't display it. Usefull for little files you want include in your scripts ! No externals files needed, they are already in script. Previous downloads : 1103 Source and Executable BinaryToAu3Kompressor will be added to the next version of >SciTEHopper Thanks to Ward for his >Base64.au3 and LZMA.au3, and trancexx for his >LZNT functions and his >Base64Decode function.
    1 point
  4. SciTE Hopper : Jump to Any line by one click and many other helpfull functions ! As Ashalshaikh suggested me after leaving me the task to continue >SciTE Hopper, i open a new Topic about it. It will be more easy for futures updates. Many helpfull functions in contextual menu. SciTE Hopper is now multipurpose. • Color Catcher added • BinaryToAu3Kompressor added • TinyAu3Search replaced by StringFinder • RegJumper added • Edit With SciTE added (available in Options) • SpecialCharactersViewer added (available in Tray menu) New Contextual Menu : For a right Click on a function : • Copy function name • Insert a function header • Cut function • Copy function • Delete function • Create a variables List • Remove usseless Blank lines • Remove Debug lines ( all lines starting with ConsoleWrite or _ArrayDisplay ) • Set AutoIt Code Layout • Remove Comments For entire script : • Create a functions List • Create a variables List • Remove usseless Blank lines • Remove Debug lines ( all lines starting with ConsoleWrite or _ArrayDisplay ) • Set AutoIt Code Layout • Remove Comments • ( Open in SciTE a ) Duplicate of current Script in Temp Dir • ( Open in SciTE a ) Duplicate of current Script in Same Dir • Explore Parent Script Folder • Copy Script name • Copy Script path • Find Unused Functions • Find Unused Variables • Set all functions in alphabetic order.( func headers and regions ( in fact, all lines between functions ) are not supported.) SciTE Editor New Contextual Menu if SciTE Hopper is added ( in Options ) to SciTE Editor : when you made a selection in SciTE Editor you can : • Open a Reg Key in Regedit using RegJumper • Open a Url in your default Browser • Search on google in your default Browser • Search on AutoIt Website in your default Browser Now Can be added to windows start (minimized) Options are available by Tray Menu. A double click on tray icon will open clipboard content to SciTE Editor ( Handy when you have copied some code from your browser ) How to proceed for add SciTE Hopper to SciTE Editor : Run Scite Editor, run Scite Hopper ( compiled! ) go to Options and select Add/Remove to SciTE Tab. then click on Add button and it's done ! Right click on SciTE Editor and choose SciTE Hopper in Contextual Menu for run it when you need it ! Update of 07 Dec 2017 TinyAu3Search is replaced by StringFinder Previous downloads : 1287 Script and compiled version are available in the download section Thanks to Ashalshaikh, Melba23, Th3 MMA, Alzri2, taitel, Manadar, taz742, Yashield, Authenticity, Xenobiologist for their help and asdf8 for his >Includes Helper and azjio for his >FileSearch. Hope it help you and happy Scripting !
    1 point
  5. wakillon

    WallpaperBank v1.0.2.2

    A bit tired to search for new wallpapers, last month i have tried BaiduWP, a online Wallpaper Changer. Nice wallpapers but there was only a chinese version and i was a bit lost for understand his settings and how remove his unwanted toolbar ! So why not create my own in a language i (sometimes) understand ? After manually sorted by category more than 65000 wallpapers, ( a good method to be completely disgusted of wallpapers ) i keep (only) about 26.000 of them. In advance sorry if some wallpapers are not in the appropriate category... Here is the result : WallpaperBank allows you to use more than 26,000 online wallpapers from 3 websites : http://www.goodfon.com/ http://www.badfon.ru/ http://bizhi.baidu.com/ Wallpapers are downloaded and displayed after a random selection. The fifteenth category is disabled by default but can be enabled line 167. You can add current Wallpaper to a favorites or a banned directory (Attention there is yet some doublons). You can also use your own Wallpapers by selecting the "Yours" type. Landscape is the default type. Jpg, png, gif, bmp Wallpaper formats are supported. Access Settings by Tray Menu. Double click on tray icon for quickly change to a random Wallpaper of the selected category. External files and also includes are embbeded in script for compatibility with previous AutoIt version. Tested on xpsp3, win7x64 and win8.1x64 Previous downloads : 310 source : WallpaperBank v1.0.2.2.au3.html executable : WallpaperBank.exe.html (Once the html file is downloaded, double click on it for start the download) Hope you like it !
    1 point
  6. UEZ

    Resize & Rotate Image

    Sure: #include <Memory.au3> #include <ScreenCapture.au3> Example() Func Example() Local $hImage, $hImage2, $sCLSID, $tData, $tParams If FileExists(@ScriptDir & "\GDIPlus_Image2.jpg") Then FileDelete(@ScriptDir & "\GDIPlus_Image2.jpg") If FileExists(@ScriptDir & "\GDIPlus_Image.jpg") Then FileDelete(@ScriptDir & "\GDIPlus_Image.jpg") ; Capture screen _ScreenCapture_Capture(@ScriptDir & "\GDIPlus_Image.jpg") ; Initialize GDI+ library _GDIPlus_Startup() ; Load image $hImage = _GDIPlus_ImageLoadFromFile(@ScriptDir & "\GDIPlus_Image.jpg") $hImage2 = _GDIPlus_ImageResize($hImage, @DesktopWidth / 8, @DesktopHeight / 8, 7) $hBitmap_Compressed = _GDIPlus_StreamImage2BinaryString($hImage2, "JPG", 100) ;converting back the memory bitmap to a JPG format _GDIPlus_BitmapDispose($hImage2) $hImage2 = _GDIPlus_BitmapCreateFromMemory($hBitmap_Compressed) ;load the JPG formatted image ; Get JPEG encoder CLSID $sCLSID = _GDIPlus_EncodersGetCLSID("JPG") ; Set up parameters for 90 degree rotation $tData = DllStructCreate("int Data;") DllStructSetData($tData, "Data", $GDIP_EVTTRANSFORMROTATE90) $tParams = _GDIPlus_ParamInit(1) _GDIPlus_ParamAdd($tParams, $GDIP_EPGTRANSFORMATION, 1, $GDIP_EPTLONG, DllStructGetPtr($tData, "Data")) ; Save image with rotation _GDIPlus_ImageSaveToFileEx($hImage2, @ScriptDir & "\GDIPlus_Image2.jpg", $sCLSID, DllStructGetPtr($tParams)) ; Shut down GDI+ library _GDIPlus_Shutdown() ShellExecute(@ScriptDir & "\GDIPlus_Image2.jpg") EndFunc ;==>Example Func _GDIPlus_StreamImage2BinaryString($hBitmap, $sFormat = "JPG", $iQuality = 80, $bSave = False, $sFilename = @ScriptDir & "\Converted.jpg") ;coded by UEZ 2013 build 2014-01-25 Local $sImgCLSID, $tGUID, $tParams, $tData Switch $sFormat Case "JPG" $sImgCLSID = _GDIPlus_EncodersGetCLSID($sFormat) $tGUID = _WinAPI_GUIDFromString($sImgCLSID) $tData = DllStructCreate("int Quality") DllStructSetData($tData, "Quality", $iQuality) ;quality 0-100 Local $pData = DllStructGetPtr($tData) $tParams = _GDIPlus_ParamInit(1) _GDIPlus_ParamAdd($tParams, $GDIP_EPGQUALITY, 1, $GDIP_EPTLONG, $pData) Case "PNG", "BMP", "GIF", "TIF" $sImgCLSID = _GDIPlus_EncodersGetCLSID($sFormat) $tGUID = _WinAPI_GUIDFromString($sImgCLSID) Case Else Return SetError(1, 0, 0) EndSwitch Local $hStream = _WinAPI_CreateStreamOnHGlobal() ;http://msdn.microsoft.com/en-us/library/ms864401.aspx If @error Then Return SetError(2, 0, 0) _GDIPlus_ImageSaveToStream($hBitmap, $hStream, DllStructGetPtr($tGUID), DllStructGetPtr($tParams)) If @error Then Return SetError(3, 0, 0) Local $hMemory = _WinAPI_GetHGlobalFromStream($hStream) ;http://msdn.microsoft.com/en-us/library/aa911736.aspx If @error Then Return SetError(4, 0, 0) Local $iMemSize = _MemGlobalSize($hMemory) If Not $iMemSize Then Return SetError(5, 0, 0) Local $pMem = _MemGlobalLock($hMemory) $tData = DllStructCreate("byte[" & $iMemSize & "]", $pMem) Local $bData = DllStructGetData($tData, 1) _WinAPI_ReleaseStream($hStream) ;http://msdn.microsoft.com/en-us/library/windows/desktop/ms221473(v=vs.85).aspx _MemGlobalFree($hMemory) If $bSave Then Local $hFile = FileOpen($sFilename, 18) If @error Then Return SetError(6, 0, $bData) FileWrite($hFile, $bData) FileClose($hFile) EndIf Return $bData EndFunc ;==>_GDIPlus_StreamImage2BinaryString Br, UEZ
    1 point
  7. Your welcome, glad I could help. Since you was thinking it was an admin rights issue, I wanted to see what your UAC settings were, and they are located under HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem. Adam
    1 point
  8. Palestinian, In my opinion MBALZESHARI's attitude is justified, if expressed a trifle robustly. Could I remind you of this part of the Forum rules: "Do not flame or insult other members - and just report the thread to a Moderator" Then you would have got my response without the need to raise your blood pressure by posting. M23
    1 point
  9. It's returning simple timestamp but read what Mat said, it sums it up perfectly.
    1 point
  10. Mat

    TimerInit() handle

    It's never actually documented what the return type is. It could change in the next release to something completely different, so any code you write that uses the return value for anything other than TimerDiff could be broken and it wouldn't even be mentioned in the changelog. That's why Valik said to treat it as a handle: something which only has meaning internally.
    1 point
  11. jdelaney

    If Winexists

    That class is an 'enabled popup'. If you have the handle of the parent window, you can use this; $hpopup = _WinAPI_GetWindow($hParent,6) That's a really helpful function to dynamically grab any message from the application. Then use the title and text of the window to know what actions to perform.
    1 point
  12. Is your script compiled as 64-bit or 32-bit? Are you sure that the registry is not modified? Did you look at the keys under the "Wow6432Note"? What are the following values for the keys under the following key HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem? -FilterAdministratorToken -ConsentPromptBehaviorAdmin -EnableLUA Also, for running under a 64-bit system, please look at "Running under Windows 64-bit Edition" from the help file. Adam
    1 point
  13. I'm not sure what it is you're saying here. That's why he called it an opaque handle, as in it's not a handle but a pointer to something else. But it's not a timestamp as others were saying above, which is what I was trying to point out. This stuff is above my ability level, I just wanted people to not get the wrong idea as to what timerinit returns.
    1 point
  14. iamtheky

    World To Screen

    This is a good start for learning yourself: '?do=embed' frameborder='0' data-embedContent>> and re-word your question to "I want a template that allows me to mark any object, of any size, in somebody else's Navigable 3D environment (without trying anything myself)." that way you can be summarily dismissed without engagement in what is a ridiculous request.
    1 point
  15. It's good practice to wait for multiple states before attempting to perform action on a window. I use functions that not only check that a window exists, but also loops until a certain amount of states are found (wingetstate). I usually wait for Exists,Visible,Enabled. Same with grabbing controls, I loop until Exists,Enabled. This will help scripts run consistently.
    1 point
  16. $sResult = "somethingwithbooinit" If StringInStr($sResult, "boo") Then _MyFunction() Func _MyFunction() ConsoleWrite("It has a boo in it!") EndFunc
    1 point
  17. look for TCPSend() in the help file.
    1 point
  18. I have tried to run the -scanall swich in the past with the RUN command, and it did not cause the Fling program to SCAN. I will try it with ShellExecute and let you know. You are right in that it would obviously be preferable not to have to stop and start the app everytime i wanted to force a SCAN. thanks, jev
    1 point
  19. I'm just waiting for AutoItQ to be released. The Q being Quantum
    1 point
  20. Melba23

    World To Screen

    FlashpointBlack, You took the words right out of my mouth! GraaF1337, In this forum I think I count as "a person of authority" - and I am definitely asking if you would please be kind enough to provide an example. M23
    1 point
  21. That's a bug in the help file. You can copy and rename the file in one go. $iResult = FileCopy(@ScriptDir & "\" & @Scriptname, @ScriptDir & "\test.xyz") MsgBox(0, "Result", $iResult) Copies the script file file with a new name. MsgBox displays "1" if successful.
    1 point
  22. JohnOne

    TimerInit() handle

    As I understand it, TimerInit() does not create a handle, rather a current timestamp. TimerDiff() creates another, and returns the difference.
    1 point
  23. You have to remember that you only have 1 mouse cursor, so regardless off this lol thread the answer is of course, no.
    1 point
  24. Take a look here '?do=embed' frameborder='0' data-embedContent>>
    1 point
  25. Glad I could help. Let me know if it works for you. Adam
    1 point
  26. Are you sure? On Win 7 you tested with, do you have UAC turned off, or changed some Win 7 UAC registry settings with UAC turned on? I have seen this same issue on Win 7, as well as Win 8 and 8.1, with UAC turned on. For your Win 7 and Win 8.1, test boxes, what are the following values for the keys under the following key HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem? -FilterAdministratorToken -ConsentPromptBehaviorAdmin -EnableLUA After a little testin, give the following function a try. _ShellExecuteWaitAsAdmin("userlogin","userdomain", "userpassword", 0, "\\server\path_to_batch\batch.bat") Func _ShellExecuteWaitAsAdmin($sUserName, $sDomain, $sPassword, $iLogonFlag, $sFile, $sParamters = "") Local $sCmd = ' /AutoIt3ExecuteLine "ShellExecuteWait(''' & $sFile & ''', ''' & $sParamters & ''', '''', ''runas'')"' Return RunAsWait($sUserName, $sDomain, $sPassword, $iLogonFlag, @AutoItExe & $sCmd) EndFunc Adam
    1 point
  27. This is due to the RunAs function only running a process as another user. It does not give the process full admin rights, the admin token, even if the run as user is an admin. This requires another approach, such as using ShellExcute with the "runas" verb. Adam
    1 point
  28. TinyUninstaller v1.0.0.7 Uninstall your softs easily TipText over labels display Infos. Hold Left Ctrl key when clicking on a label for copy uninstall cmd to the clipboard. Gui is hiden when you launch a soft uninstall. Once uninstall is finished double click on tray icon for restore gui ( softs list will be refresh ) There is no filtering in softs display ( Not as Windows do ! ), like that, you can easily uninstall drivers or Microsoft Windows Components ! but be carefull... x64 Users : Do not Compil with X64 Version. Previous downloads : 43 Source : TinyUnInstaller v1.0.0.7.au3 executable : TinyUninstaller.exe.html (Once this html file downloaded, double click on it for start the download)
    1 point
  29. Found a solution. #NoTrayIcon #include <GuiConstantsEx.au3> #include <GuiListView.au3> #include <WindowsConstants.au3> GUIRegisterMsg($WM_NOTIFY, "WM_Notify_Events") Global $hGUI, $hListView, $hContextMenu, $Call, $hmsg $hGUI = GUICreate("Phonebook", 210, 300) GUISetIcon(@SystemDir & "\SHELL32.dll", 310, $hGUI) $hListView = GUICtrlCreateListView("Name |Number", 5, 5, 200, 290) GUICtrlSendMsg($hListView, $LVM_SETEXTENDEDLISTVIEWSTYLE, $LVS_EX_GRIDLINES, $LVS_EX_GRIDLINES) GUICtrlSendMsg($hListView, $LVM_SETEXTENDEDLISTVIEWSTYLE, $LVS_EX_FULLROWSELECT, $LVS_EX_FULLROWSELECT) $HelpContext = GUICtrlCreateContextMenu($hListView) $HelpWWW = GUICtrlCreateMenuItem("Website", $HelpContext) For $a = 100 To 110 GUICtrlCreateListViewItem("Name" & $a & "|" & $a, $hListView) Next GUISetState() While 1 $hmsg = GUIGetMsg() Switch $hmsg Case $GUI_EVENT_CLOSE Exit Case $HelpWWW MsgBox(0,"","TEST") EndSwitch Sleep(50) WEnd Func WM_Notify_Events($hWndGUI, $MsgID, $wParam, $lParam) #forceref $hWndGUI, $MsgID, $wParam Local $tagNMHDR, $event, $hwndFrom, $code $tagNMHDR = DllStructCreate("int;int;int", $lParam) If @error Then Return $event = DllStructGetData($tagNMHDR, 3) Select Case $wParam = $hlistview Select Case $event = $NM_RCLICK $avSel = _GUICtrlListView_GetSelectedIndices($hListView, 1) If IsArray($avSel) And $avSel[0] > 0 Then $sItemTxt = _GUICtrlListView_GetItemText($hListView, $avSel[1], 1) $infoitem = GUICtrlSetData($HelpWWW, "Call " & $sItemTxt) EndIf EndSelect EndSelect $tagNMHDR = 0 $event = 0 $lParam = 0 EndFunc ;==>WM_Notify_Events
    1 point
  30. Give this a try ... requires BETA: #include <GUIConstants.au3> ;~ #define PBT_APMQUERYSUSPEND 0x0000 ;~ #define PBT_APMQUERYSTANDBY 0x0001 ;~ #define PBT_APMQUERYSUSPENDFAILED 0x0002 ;~ #define PBT_APMQUERYSTANDBYFAILED 0x0003 ;~ #define PBT_APMSUSPEND 0x0004 ;~ #define PBT_APMSTANDBY 0x0005 ;~ #define PBT_APMRESUMECRITICAL 0x0006 ;~ #define PBT_APMRESUMESUSPEND 0x0007 ;~ #define PBT_APMRESUMESTANDBY 0x0008 ;~ #define PBTF_APMRESUMEFROMFAILURE 0x00000001 ;~ #define PBT_APMBATTERYLOW 0x0009 ;~ #define PBT_APMPOWERSTATUSCHANGE 0x000A ;~ #define PBT_APMOEMEVENT 0x000B ;~ #define PBT_APMRESUMEAUTOMATIC 0x0012 ; Global $WM_POWERBROADCAST = 536 Global $PBT_APMRESUMESUSPEND = 0x0007 $hGUI = GUICreate("Test", 100, 100,1,1) GUIRegisterMsg($WM_POWERBROADCAST, "Standby") GUISetState() While 1 $GUIMsg = GUIGetMsg() Switch $GUIMsg Case $GUI_EVENT_CLOSE ExitLoop EndSwitch WEnd ; Exit ; Func Standby($hWnd, $Msg, $wParam, $lParam) If $wParam = $PBT_APMRESUMESUSPEND Then MsgBox(0,"Hello Back", " You just woke up") EndIf EndFunc
    1 point
×
×
  • Create New...