Jump to content

kayser2008

Members
  • Posts

    19
  • Joined

  • Last visited

Everything posted by kayser2008

  1. HotKeySet("{5}", "Play") Local $gui,$COLOR_BLACK = 0xFFFF00 ,$wdt = 800, $hdt = 600 $gui = GUICreate("", $hdt, $wdt, -1, -1, $WS_POPUP) GUICtrlCreatePic("Pics\main.jpg",-1,-1,$hdt,$wdt) GUISetState(@SW_SHOW) Func Play() $Images = Random(1,10,1) Sleep(200) SplashImageOn("","Pics\" & $Images & ".jpg",580,85,667,819,$DLG_NOTITLE) EndFunc Do If _IsPressed("36") Then While _IsPressed("36") WEnd Play() EndIf Until GUIGetMsg() = $GUI_EVENT_CLOSEI´m doing like that but that way just shows randon images in the end , is there a way to control wath image shows in the end or to control wath images to show?
  2. Hi all I´m doing a Gui that has one image on the background and need to show several images on top of that main image in diferent places (w/h) when i press a keyboard button i have done that with the Random() function, but that way i can´t control the last image that will show can someone point me what´s the best way to do that show 30 images and stop on image 24 show 30 images and stop on image 12 show 30 images and stop on image 1 Thanks
  3. Try URLHelper that will help you on most cases.
  4. i dont want run a program from the USB all i want is a way to replace a´folder that is on the HDD by the folder that i have on the USB by just plug a USB in to the PC. i wose thinking that maybe the confirmation of the replacement of the folder can be done by the function MouseClick .
  5. Excuse me if not well explained. What I want is : I have a folder for example C: and I want to insert the USB be automatically overwrite the folder located at C: by teh folder that i have in my USB. witouth the use of keyboard or mouse.
  6. Hello Anyone know an automated way to replace a folder for that inserting a USB stick without using a keyboard or mouse.
  7. Join the club @Belini.
  8. I'll tell you specifically what I want, I have a timer and what I want is to integrate a function in the script to block certain buttons on the joystick so if you do not have time to leave only one button to be used ,if you have time to release the remaining buttons and when the time comes again to zero lock the same buttons. On the keyboard i know what the function that does this now in the joystick do not know if there is this function ? Best Regards
  9. this would be the easiest way.lol lol
  10. good afternoon there is some function in AutoIT like (_BlockInputEx) but joystick to lock the buttons of the joystick you want? thank you
  11. I've been doing some research and it seems that the most effective way to ban the user will be the "mac address" it is possible to make a script instead of banning the IP ban for "mac address"? thank you JohnQSmith P.S- "beyng" = "being" - this right was what I wanted to say thanks
  12. The CBOX let`s us ban by the I.P what i want to now is if there is another way instead of the I.P i wose loking in HELP of CBOX and i diden´t found anithyng. I`m sorry about my English I`m from Portugal.
  13. I´m a moderator in a website i moderate the chat (Chat that we are using CBOX) the question is that we have some rules in the chat the problem is that some of the user don´t go by the rules and we have to ban them but the ban is doing by the nick and the I.P and some users allways arrange some away to get back to the chat insulting us and i wose wondring if there is possible to ban them without beyng by the I.P or nick by other way that thei only come back when we let them??? Thanks
  14. Its possible to do a script to ban a user from a chat in a website without beyng by the i.p?
  15. This is a script with a cowntdown timer for a internet kiosk wath i want is a way to incorporate the funcion Shutdown(2) in the script that avery time the time is over the computer will be restarted i have allready try to do it but the computer is restarting over and over again and if can give me an idea to optimaize my script. Best regards #include <GUIConstants.au3> #Include <WinAPI.au3> ProgressOn("A Carregar", "Abrir", "0%") For $i = 10 To 100 Step 10 Sleep(1000) ProgressSet($i, $i & "%") Next ProgressSet(100, "Carregado", "Completo") Sleep(500) ProgressOff() Local $comprimento = iniRead(".\Contador.ini", "Janela do Contador regressivo", "comprimento", ""); pega os dados do arquivo ini Local $altura = iniRead(".\Contador.ini", "Janela do Contador regressivo", "altura", ""); pega os dados do arquivo ini Local $horizontal = iniRead(".\Contador.ini", "Janela do Contador regressivo", "Horizontal", ""); pega os dados do arquivo ini Local $vertical = iniRead(".\Contador.ini", "Janela do Contador regressivo", "Vertical", ""); pega os dados do arquivo ini Local $fonte = iniRead(".\Contador.ini", "Janela do Contador regressivo", "Fonte Usada", ""); pega os dados do arquivo ini Local $font_size = iniRead(".\Contador.ini", "Janela do Contador regressivo", "Tamanho da fonte", ""); pega os dados do arquivo ini Local $bot_credito = iniRead(".\Contador.ini", "Botão usado para creditar tempo", "Creditar", ""); pega os dados do arquivo ini Local $JOYID = IniRead(".\contador.ini", "Identifica joy", "Id joy", ""); identifica qual joystick será usado Local $tempo, $temporizador, $horas, $minutos, $segundos; variáveis globais Local $JOYINFO, $bt_joy, $str $str = "int x;int y;int z;int buttons" $JOYINFO = DllStructCreate($str) $hWnd = WinGetHandle("[CLASS:Shell_TrayWnd]"); identifica a barra _WinAPI_ShowWindow($hWnd, @SW_SHOW); mostra a barra de tarefas AdlibRegister("sistema", 1000); Ajuste o tempo de acordo com o pulso do seu moedeiro While 1 $retjoy = DllCall("winmm.dll", "int", "joyGetPos", "int", $JOYID, "ptr", DllStructGetPtr($JOYINFO)) $bt_joy = DllStructGetData($JOYINFO, "buttons");pega os valores preenchidos pela função JoyGetPos If BitAND($bt_joy, $bot_credito) Then creditar(); chama a função creditar Endif If WinExists("Gestor de tarefas do Windows") Then ; verifica se a janela existe WinClose("Gestor de tarefas do Windows"); fecha o Gestor de tarefas MsgBox("", "", "Bloqueado pelo Administrador", 3); mostra a mensagem Endif If WinExists("Centro de ajuda e suporte")Then;verifica se a janela existe WinClose("Centro de ajuda e suporte");fecha o Centro de ajuda e suporte MsgBox("","","Bloqueado pelo Administrador",3);mostra a mensagem EndIf $tempo = IniRead(".\contador.ini", "Tempo Restante", "Restando", ""); pega a informação de fichas do arquivo ini $temporizador = "00:00:00"; formato do contador $horas = Int($tempo / 3600000); converte o valor em horas $minutos = Int(Mod($tempo, 3600000) / 60000); converte o valor em minutos $segundos = Int(Mod(Mod($tempo, 3600000), 60000) / 1000); converte o valor em segundos $temporizador = StringFormat("%02d:%02d:%02d", $horas, $minutos, $segundos); informações que serão mostradas no contador SplashTextOn("Tempo", "" & $temporizador, 115, 35, 4, 2, 300, "Bernard MT Condensed", 18); mostra o contador sleep(1000); ajuste este tempo de acordo com o pulso do seu moedeiro, terá que ser menor que o pulso Wend $JOYINFO = 0 Exit(0) func sistema() if $tempo >= 1000 then; verifica se o tempo chegou a 1 segundo se estiver em "0" para de gravar $diminui = (Number($tempo) - 1000); diminui 1 segundo IniWrite(".\contador.ini", "Tempo Restante", "Restando", ($diminui)); grava o tempo com 1 segundo a menos endif if $tempo <= 0 then; quando chegar a "0" Bloqueia o teclado BlockInput(0) endif if $tempo < 1 then ProcessClose("firefox.exe") endif If $tempo < 1 Then ProcessClose("msnmsgr.exe") endif if $tempo > 1 then; se o tempo for maior que "0" libera o teclado BlockInput(0); libera o teclado endif endfunc ;==>sistema func creditar() Local $valor_ficha, $converte, $tempo_rest, $adiciona Local $JOYID = IniRead(".\contador.ini", "Identifica joy", "Id joy", ""); identifica qual joystick será usado Local $JOYINFO, $bt_joy, $str Local $bot_credito = iniRead(".\Contador.ini", "Botão usado para creditar tempo", "Creditar", ""); pega os dados do arquivo ini $str = "int x;int y;int z;int buttons" $JOYINFO = DllStructCreate($str) While 1 $retjoy = DllCall("winmm.dll", "int", "joyGetPos", "int", $JOYID, "ptr", DllStructGetPtr($JOYINFO)) $bt_joy = DllStructGetData($JOYINFO, "buttons") ;pega os valores preenchidos pela função JoyGetPos If not BitAND($bt_joy, $bot_credito) Then ; credita somente quando o botão for solto $valor_ficha = IniRead(".\contador.ini", "Tempo que vale 1 ficha", "Tempo em minutos", ""); valor em minutos de 1 ficha $converte = (Number($valor_ficha) * 60000); converte o tempo que vale a ficha para milisegundos $tempo_rest = IniRead(".\contador.ini", "Tempo Restante", "Restando", ""); lê no contador.ini $adiciona = (Number($tempo_rest) + Number($converte)); soma o valor da ficha ao tempo restante IniWrite(".\contador.ini", "Tempo Restante", "Restando", String($adiciona)); grava no contador.ini ExitLoop endif sleep(20) Wend endfunc ;==>creditar
  16. I have made a script with help of some foruns of autoit but i can´t had this function to the script wath i need to do is every time the time get´s to 00:00:00 the p.c reboots for the deepfreze takes efect but i´am having dificulty to implante this function in my script can anyone give me a clue. func Shutdown(2) Hi will post the script i apreceat if someone give me a clue. coinkiosk.au3
  17. Hy i was triing to use this funcion to desable the use of the "windows" or "F1" key and wosw doybg this way but the "F1" i allready block but seams that i can´t get there with the "windows" key #include <_BlockInputEx.au3> if $tempo > 1 then _BlockInputEx(3,"","0x5C|0x5D|0x71") endif the codes are referent to Left windows , Right windows and F1 Is this possible? The codes are right? If no whish key codes should i use? Is there another way to do this? Thanks
  18. I have allready made with my limitacions and some help in another foruns a Autoit countdown timer that is trigered by a usb joystick pressing a especific button and waht he does in the end of the time e closes the firefox and blocks mousse and keyboard until someone press the button on the joystick again and has more time than he can use again the pc. I wose thinkin if is possible to put in the script a database maybe in txt. or another solution thats for wath for people o uses the pc keep the reamaning time by using a passord and nick for further use. Is it posiible??
×
×
  • Create New...