Jump to content

Rental

Active Members
  • Posts

    64
  • Joined

  • Last visited

Rental's Achievements

Wayfarer

Wayfarer (2/7)

0

Reputation

  1. you can use Processexists() to see if something is running, and processclose() to to close it Rental
  2. here a UDF to set a hotkey for mouse click.
  3. for the buttons do something like. $but1 = GuiCtrlCreateButton("button 1", 10, 10) while 1 $msg = Guigetmsg() if $msg = $but1 then msgbox(0, "","Button 1 pressed" endif wend Look it up in the help file, there is all kinds of ways to get a button to work.
  4. this one checks if the mouse is over the color back While 1 $mouse = MouseGetPos() $pix = PixelGetColor($mouse[0], $mouse[1]) If $pix = 0x000000 Then ;change this to the color you want. MouseClick("left") EndIf WEnd GL, Rental
  5. just install the newest one but with a different path as the one you already have, Copy and paste the include into your old one. and then you can delete the new one. or just install it over your old folder.
  6. Here is an example Lazycat gave a while ago. #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> Global Const $WM_DROPFILES = 0x233 Global $gaDropFiles[1] #Region ### START Koda GUI section ### Form= $hGUI = GUICreate("", 137, 131, -1, -1, BitOR($WS_DLGFRAME,$WS_POPUP,$WS_CLIPSIBLINGS), BitOR($WS_EX_ACCEPTFILES,$WS_EX_TOPMOST,$WS_EX_WINDOWEDGE)) GUISetBkColor(0xFFFFFF) $hList = GUICtrlCreateLabel("Drop files here", 0, 0, 135, 121, BitOR($SS_CENTER,$SS_CENTERIMAGE), $GUI_WS_EX_PARENTDRAG) GUICtrlSetState ($hList, $GUI_DROPACCEPTED) $hContext = GUICtrlCreateContextMenu($hList) $hExit = GUICtrlCreateMenuItem("Exit", $hContext) #EndRegion ### END Koda GUI section ### GUIRegisterMsg ($WM_DROPFILES, "WM_DROPFILES_FUNC") GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE, $hExit Exit Case $GUI_EVENT_DROPPED For $i = 0 To UBound($gaDropFiles) - 1 ConsoleWrite($gaDropFiles[$i] & @CR) Next EndSwitch WEnd Func WM_DROPFILES_FUNC($hWnd, $msgID, $wParam, $lParam) Local $nSize, $pFileName Local $nAmt = DllCall("shell32.dll", "int", "DragQueryFile", "hwnd", $wParam, "int", 0xFFFFFFFF, "ptr", 0, "int", 255) For $i = 0 To $nAmt[0] - 1 $nSize = DllCall("shell32.dll", "int", "DragQueryFile", "hwnd", $wParam, "int", $i, "ptr", 0, "int", 0) $nSize = $nSize[0] + 1 $pFileName = DllStructCreate("char[" & $nSize & "]") DllCall("shell32.dll", "int", "DragQueryFile", "hwnd", $wParam, "int", $i, "ptr", DllStructGetPtr($pFileName), "int", $nSize) ReDim $gaDropFiles[$i+1] $gaDropFiles[$i] = DllStructGetData($pFileName, 1) $pFileName = 0 Next EndFunc
  7. here i uploaded mine to 2shared,try putting it in your program files\autoit3 folder and see if that fixes it.
  8. try at the top of Scite click help then click help agian, that should bring it up without the hotkey, if it doesnt then you dont have the helpfile installed.
  9. its because _ispressed is looping back to fast before you release the mouse button, add a sleep in there and it'll work. If _IsPressed("01") Then $timer=TimerInit() $pos=MouseGetPos() IniWrite("Coords.ini","Coords","x"&$tick,$pos[0]) IniWrite("Coords.ini","Coords","y"&$tick,$pos[1]) sleep(60) EndIf the same thing happens for keyboard strokes then using _ispressed and writing that to a file.
  10. add #include <WindowsConstants.au3> to the script
  11. for #1 try #include <misc.au3> while 1 $mouse = mousegetpos() $x = $mouse[0] $y = $mouse[1] if _ispressed(01) then msgbox(0,"",$x&"-"&$y) endif wend #2 try using the advanced mode in guigetmsg. $msg = guigetmsg(1)
  12. i just started the same thing a couple days ago. i started by getting the layout of it and created the toolbars first. to write it to the screen i used gdiplus... i`d give you what i have so far but I am currently on my wii and wont have my computer near me till tomarrow
  13. here the code from the help file that I modified to get it to work. #include <GUIConstantsEx.au3> #include <IE.au3> #include <WindowsConstants.au3> _IEErrorHandlerRegister () $sHTML = "<h1>Hello World!</h1>" $oIE = _IECreateEmbedded () GUICreate("Embedded Web control Test", 640, 580, _ (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, _ $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS) $GUIActiveX = GUICtrlCreateObj($oIE, 10, 40, 600, 360) $GUI_Button_Back = GUICtrlCreateButton("Back", 10, 420, 100, 30) $GUI_Button_Forward = GUICtrlCreateButton("Forward", 120, 420, 100, 30) $GUI_Button_Home = GUICtrlCreateButton("Home", 230, 420, 100, 30) $GUI_Button_Stop = GUICtrlCreateButton("Stop", 340, 420, 100, 30) GUISetState() ;Show GUI _IENavigate ($oIE, "") _IEBodyWriteHTML ($oIE, $sHTML) ; Waiting for user to close the window While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $GUI_Button_Home _IENavigate ($oIE, $sHTML) Case $msg = $GUI_Button_Back _IEAction ($oIE, "back") Case $msg = $GUI_Button_Forward _IEAction ($oIE, "forward") Case $msg = $GUI_Button_Stop _IEAction ($oIE, "stop") EndSelect WEnd GUIDelete() Exit
  14. Here is an example Gerifield made
×
×
  • Create New...