Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/28/2016 in all areas

  1. We know. We'll be here all night to sign our books, feel free to come up and say hi.
    1 point
  2. Something like this ? : #include <StaticConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <GuiButton.au3> Opt("GUIOnEventMode", 1) $random_numbers = GUICreate("Random numbers", 351, 171, -1, -1, -1, -1) GUISetOnEvent($GUI_EVENT_CLOSE, "close") $lavel_number = GUICtrlCreateLabel("", 117, 36, 98, 26, BitOR($SS_CENTER, $SS_CENTERIMAGE), $WS_EX_STATICEDGE) GUICtrlSetBkColor(-1, "0xFFFFFF") $start = GUICtrlCreateButton("Start", 34, 95, 100, 30, -1, -1) GUICtrlSetOnEvent(-1, "start") $stop = GUICtrlCreateButton("Pause", 182, 95, 100, 30, -1, -1) GUICtrlSetOnEvent(-1, "pause") $exit = GUICtrlCreateButton("Exit", 112, 136, 100, 30, -1, -1) GUICtrlSetOnEvent(-1, "close") GUISetState(@SW_SHOW) Global $OptChoosen = 0 While 1 Sleep(50) While $OptChoosen = 1 Sleep(100) Local $a = Random(1, 10, 1) GUICtrlSetData($lavel_number, $a) WEnd WEnd Func start() $OptChoosen = 1 EndFunc ;==>start Func pause() $OptChoosen = 0 EndFunc ;==>pause Func close() Exit EndFunc ;==>c Jos
    1 point
  3. Maybe this : #Include <StructureConstants.au3> Local $tFILETIME = DllStructCreate($tagFILETIME) @dany : can you confirm ?
    1 point
  4. Structure should look like: Local Const $tagWINSTATIONINFORMATIONW = _ "char Reserved1[72];" & _ "uint SessionId;" & _ "char Reserved2[4];" & _ "dword;dword;" & _ "dword;dword;" & _ "dword;dword;" & _ "dword;dword;" & _ "char Reserved3[1096];" & _ "dword;dword;" dword;dword are FILETIME structure. Saludos
    1 point
  5. Danyfirex

    _ie problem slow

    You can do something like this. #include <IE.au3> #include <MsgBoxConstants.au3> _IEErrorHandlerRegister() Local $oIE = _IECreate("http://fakenamegenerator.com/" , 0, 1, 0, 1) Local $oButton=0 ;Wait Till Button Generate is valid While Sleep(30) $oButton=_IEGetObjById($oIE,"genbtn") ;you can wait for another element if is needed If IsObj($oButton) Then ExitLoop WEnd Local $oForm = _IEFormGetCollection($oIE, 0) Local $oSelect1 = _IEFormElementGetObjByName($oForm, "gen") Local $oSelect2 = _IEFormElementGetObjByName($oForm, "n") Local $oSelect3 = _IEFormElementGetObjByName($oForm, "c") _IEFormElementOptionSelect($oSelect1, "male", 1, "byValue") _IEFormElementOptionSelect($oSelect2, "ninja", 1, "byValue") _IEFormElementOptionSelect($oSelect3, "sp", 1, "byValue") Saludos
    1 point
×
×
  • Create New...