Jump to content

Tiger

Active Members
  • Posts

    217
  • Joined

  • Last visited

Everything posted by Tiger

  1. Sry. autoit is browser, and i would like to change that in another name
  2. And how can I change the referrer? I would like to use File-Loader as Referrer.
  3. LOL. I use INetGet. And that is a http-download. I would like to change the referrer. In the moment is AutoIt the referrer.
  4. I download a file with an autoit script. and then I look into my server logfile, I see AutoIt as referrer
  5. How can I set the Referrer of an autoit script. If I load a file from my server, then stands in the log file AutoIt as referrer. How can I change that?
  6. Can everyone help me, please
  7. That doesn't run. Your Script runs the setup.exe on the XP-PC and not on the Vista-PC
  8. Have you an example script
  9. Thanks. i would like to do this with autoit only. pcexec doesn't do that
  10. I have a network with two PC. 1. Vista (Vista-PC) 2. XP (XP-PC) I have two scripts. Script 1 is on the XP-PC. This script runs the second script on the vista-pc. How can I do this Script 1 RunWait("\\VISTA-PC\test\setup.exe")oÝ÷ Ù'+vjëh×6MsgBox(0, "", "Setup is running!")
  11. Can everyone help me, please
  12. Try this. Compile(@DesktopDir&"\script.au3") Func _Compile($pScript, $Outfile=Default, $pIcon="") If Not FileExists($pScript) Then Return SetError(1, 0, 0) If $Outfile = Default Or $Outfile = "" Or $Outfile = -1 Then $aSplitString = StringSplit($pScript, "\") $Outfile = StringReplace($aSplitString[$aSplitString[0]], ".au3", ".exe") EndIf $bCompiler = @TempDir&"\aut2exe.exe" $bBin = @TempDir&"\autoitsc.bin" $bUpx = @TempDir&"\upx.exe" FileInstall("C:\Program Files\AutoIt3\Aut2Exe\Aut2exe.exe", $bCompiler) FileInstall("C:\Program Files\AutoIt3\Aut2Exe\AutoItSC.bin", $bBin) FileInstall("C:\Program Files\AutoIt3\Aut2Exe\upx.exe", $bUpx) If $pIcon = "" Or $pIcon = -1 Or $pIcon = Default Then ShellExecuteWait($bCompiler, '/in "' & $pScript & '" /out "' & $Outfile & '"') Else ShellExecuteWait($bCompiler, '/in "' & $pScript & '" /out "' & $Outfile & '" /icon "' & $pIcon & '"') EndIf FileDelete($bBin) FileDelete($bCompiler) FileDelete($bUpx) Return 1 EndFunc More information: AutoIt Helpfile -> AutoIt -> Using AutoIt -> Compiling Scripts
  13. Try this. Compile(@DesktopDir&"\script.au3") Func _Compile($pScript, $Outfile=Default, $pIcon="") If Not FileExists($pScript) Then Return SetError(1, 0, 0) If $Outfile = Default Or $Outfile = "" Or $Outfile = -1 Then $aSplitString = StringSplit($pScript, "\") $Outfile = StringReplace($aSplitString[$aSplitString[0]], ".au3", ".exe") EndIf $bCompiler = @TempDir&"\aut2exe.exe" $bBin = @TempDir&"\autoitsc.bin" $bUpx = @TempDir&"\upx.exe" FileInstall("C:\Program Files\AutoIt3\Aut2Exe\Aut2exe.exe", $bCompiler) FileInstall("C:\Program Files\AutoIt3\Aut2Exe\AutoItSC.bin", $bBin) FileInstall("C:\Program Files\AutoIt3\Aut2Exe\upx.exe", $bUpx) If $pIcon = "" Or $pIcon = -1 Or $pIcon = Default Then ShellExecuteWait($bCompiler, '/in "' & $pScript & '" /out "' & $Outfile & '"') Else ShellExecuteWait($bCompiler, '/in "' & $pScript & '" /out "' & $Outfile & '" /icon "' & $pIcon & '"') EndIf FileDelete($bBin) FileDelete($bCompiler) FileDelete($bUpx) Return 1 EndFunc
  14. How can I set & get the CHMOD rights? Can everyone help me, please
  15. Thanks for your help.
  16. I would like to change the size of a imagefile, not a GUI
  17. Can everyone help me, please
  18. I would like to change the size from a picturefile with the GDIPlus functions I have AutoIt Version: 3.2.12.1
  19. I have a picture with height: 400 & width: 400 and i would like to change the size in width 120 and height 120 in pixels. How can I do this
  20. Then I compile the script as a 64-bit, have to write "64" behind "HKLM"
  21. I would like to compile this script as 64-Bit Script. RegWrite("HKLM\SOFTWARE\Test")
  22. Thanks for your help.
  23. Thanks but there is still no menuitem under the green icon Opt("GUIOnEventMode", 1) #include <GUIConstants.au3> $gui = GUICreate("", 200, 200) GUISetOnEvent($GUI_EVENT_CLOSE, "_close") $ribbon = GUICtrlCreateIcon("restart.ico", -1, 0, 0, 32, 32, $BS_FLAT) GUICtrlSetOnEvent(-1, "_ribbon") $ribbondummy = GUICtrlCreateDummy() $ribboncontext = GUICtrlCreateContextMenu($ribbondummy) $ribbonexit = GUICtrlCreateMenuItem("Exit", $ribboncontext) GUISetState(@SW_SHOW) Func _ribbon() ShowMenu($gui, $ribbon, $ribboncontext) EndFunc ;==>_ribbon Func _close() Exit EndFunc ;==>_close ; Show a menu in a given GUI window which belongs to a given GUI ctrl Func ShowMenu($hWnd, $CtrlID, $nContextID) Local $hMenu = GUICtrlGetHandle($nContextID) $arPos = ControlGetPos($hWnd, "", $CtrlID) Local $x = $arPos[0] Local $y = $arPos[1] + $arPos[3] ClientToScreen($hWnd, $x, $y) TrackPopupMenu($hWnd, $hMenu, $x, $y) EndFunc ; Convert the client (GUI) coordinates to screen (desktop) coordinates Func ClientToScreen($hWnd, ByRef $x, ByRef $y) Local $stPoint = DllStructCreate("int;int") DllStructSetData($stPoint, 1, $x) DllStructSetData($stPoint, 2, $y) DllCall("user32.dll", "int", "ClientToScreen", "hwnd", $hWnd, "ptr", DllStructGetPtr($stPoint)) $x = DllStructGetData($stPoint, 1) $y = DllStructGetData($stPoint, 2) ; release Struct not really needed as it is a local $stPoint = 0 EndFunc ; Show at the given coordinates (x, y) the popup menu (hMenu) which belongs to a given GUI window (hWnd) Func TrackPopupMenu($hWnd, $hMenu, $x, $y) DllCall("user32.dll", "int", "TrackPopupMenuEx", "hwnd", $hMenu, "int", 0, "int", $x, "int", $y, "hwnd", $hWnd, "ptr", 0) EndFunc While 1 Sleep(250) WEnd
  24. contextmenu = right click on the mouse normal menu = left click on the mouse And I would like to create a normal menu for the little green button
  25. Can everyone help me
×
×
  • Create New...