
kp3
Active Members-
Posts
44 -
Joined
-
Last visited
kp3's Achievements

Seeker (1/7)
0
Reputation
-
Can u post an example plz?
-
I just wanted to tell u that that was probably the most annoying script ever made ! xD It stops my mouse! I had to restart my computer xD How are u supposed to shut it down?
-
here u go... Acctualy i dont understand most of ur code but :/ I just added 4 things. I declared $progress_1. I added guictrlsetdata($progress_1,0) 1 time... #include <GuiConstants.au3> Opt ("TrayIconDebug", 1) GuiCreate ("MyGUI", 392, 323,-1, -1) $Checkbox_1 = GuiCtrlCreateCheckbox("Checkbox1", 20, 30, 100, 10) $Checkbox_2 = GuiCtrlCreateCheckbox("Checkbox2", 20, 60, 90, 20) $Checkbox_3 = GuiCtrlCreateCheckbox("Checkbox3", 20, 100, 90, 10) $Run = GUICtrlCreateButton ("Run", 20, 130, 50, 20) Dim $Progress_1 dim $check1 dim $check2 dim $check3 GuiSetState() getMsg() Func getMsg () Do $msg = GuiGetMsg() $check1 = GUICtrlRead ($Checkbox_1) $check2 = GUICtrlRead ($Checkbox_2) $check3 = GUICtrlRead ($Checkbox_3) Until $msg = $GUI_EVENT_CLOSE Or $msg = $Run If $msg = $GUI_EVENT_CLOSE Then Exit EndIf While $msg = 6 And $check1 = 4 And $check2 = 4 And $check3 = 4 MsgBox (0, "", "Please select a program to install.") getMsg () WEnd If $check1 = 1 Then function1 () If $check2 = 1 Or $check3 = 1 Then wait_progress () EndIf If $check2 = 1 Then function2 () If $check3 = 1 Then wait_progress () EndIf If $check3 = 1 Then function3 () getMsg () EndFunc Func function1 () MsgBox (0, "", "Running program 1", 2) EndFunc Func function2 () MsgBox (0, "", "Running program 2", 2) EndFunc Func function3 () MsgBox (0, "", "Running program 3", 2) EndFunc Func wait_progress () GUICreate("", 361, 110, -1, -1) $Calisto = "Calisto MT" $Progress_1 = GUICtrlCreateProgress(10, 40, 340, 20) GUICtrlSetColor(-1, 0x4169e1) $Label_2 = GUICtrlCreateLabel("Loading next program, please wait.", 10, 10, 300, 20) GUICtrlSetFont(-1, 11, 500, 0, $Calisto) $button = GUICtrlCreateButton("Cancel", 145, 70, 50, 30) Dim $Timer = TimerInit(), $i = 0 GUISetState () Do $msg = GUIGetMsg() If $msg = $button Then ExitLoop If TimerDiff($Timer) >= 1000 Then $i += 50 GUICtrlSetData($Progress_1, $i) $Timer = TimerInit() EndIf Until $i = 100 guictrlsetdata($Progress_1,0) EndFunc I know the last one doesnt work... But i think that u havnt made annything for the third one... U know... So the third one doesnt load at all... Annyway... Try to fix that last problem urself. *edit* U might wanna add If $check3 = 1 Then wait_progress () to function 3... I havnt tested yet tough... Ehh wai i mean that if check 3 = 1 and stuff...Add it below that i think. *edit again* U know what Im confuzed... Annyway.. I think u can just ignore what i wrote just.. Just use the "coded" part.... I think thats how u wanted it... I cant realy see another sulotion annyway. GL
-
Ok... Sience u didnt understand me... How do i get the value of ie coll 3 row 5 in table "tablename" of Server 127.0.0.1 with password "random pass"?
-
The porblem with yours is that its not reversable(i think :S) Am i wrong?
-
I made this for some guy in the support forums... If annyone else would want it. Im posting it here. Basicly, If u press space when the cursor is outside the gui named Test. Two message boxes appears. Everything is easy to change. But plz dont ask stupid questions!!!! #Region;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_outfile=..\..\..\..\Documents and Settings\Robert Nilsson\Mina dokument\ledamp #EndRegion;**** Directives created by AutoIt3Wrapper_GUI **** #include <GUIConstants.au3> #Include <Misc.au3> hotkeyset("{space}","one") Opt("GUIOnEventMode", 1) $Form1 = GUICreate("Test", 633, 449, 193, 115) $Label1 = GUICtrlCreateLabel("OMG! IT IS A GUI!!!!!!!!!!!!!!! WONDER WHAT HAPPENS IF I CLICK IT!!!!", 8, 32, 601, 28) GUICtrlSetFont(-1, 16, 400, 0, "MS Sans Serif") $Label2 = GUICtrlCreateLabel("nothing!", 56, 72, 44, 17) GUISetState(@SW_SHOW) ;values that i dunno why they got to be here; ;end of those crappy values While 1 Sleep(100) WEnd ;press space func one() if winactive("Test") then ;change winactive to whatever u want...If u want it even if the iwndow is hidden just remove it. $Pos = wingetpos("Test"); Get width, position, height and all that stuff of the windo $loc = mousegetpos(); get mouse position if $loc[1] <= $pos[1] or $loc[1] >= $pos[3]+$pos[1] or $loc[0] <= $pos[0] or $loc[0] >= $pos[2]+$pos[0] then;To make if thing so it continnues if u press inside the gui u should just invert the >:s msgbox("","YAY!","u pressed outside the gui") msgbox("","info","u pressed on x:"&$loc[0]&" y:"&$loc[1]) endif endif endfunc
-
***Uber Epic pwn edit Ok... Im done now Here is ur script... If u press space outside the gui (i know u wanted mouse click... But u can easily just put if _ispressed in the loop if u want that instead)...two msgboxes appears. #Region;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_outfile=..\..\..\..\Documents and Settings\Robert Nilsson\Mina dokument\ledamp #EndRegion;**** Directives created by AutoIt3Wrapper_GUI **** #include <GUIConstants.au3> #Include <Misc.au3> hotkeyset("{space}","one") Opt("GUIOnEventMode", 1) $Form1 = GUICreate("Test", 633, 449, 193, 115) $Label1 = GUICtrlCreateLabel("OMG! IT IS A GUI!!!!!!!!!!!!!!! WONDER WHAT HAPPENS IF I CLICK IT!!!!", 8, 32, 601, 28) GUICtrlSetFont(-1, 16, 400, 0, "MS Sans Serif") $Label2 = GUICtrlCreateLabel("nothing!", 56, 72, 44, 17) GUISetState(@SW_SHOW) ;values that i dunno why they got to be here; ;end of those crappy values While 1 Sleep(100) WEnd ;press space func one() if winactive("Test") then ;change winactive to whatever u want...If u want it even if the iwndow is hidden just remove it. $Pos = wingetpos("Test"); Get width, position, height and all that stuff of the windo $loc = mousegetpos(); get mouse position if $loc[1] <= $pos[1] or $loc[1] >= $pos[3]+$pos[1] or $loc[0] <= $pos[0] or $loc[0] >= $pos[2]+$pos[0] then;To make if thing so it continnues if u press inside the gui u should just invert the >:s msgbox("","YAY!","u pressed outside the gui") msgbox("","info","u pressed on x:"&$loc[0]&" y:"&$loc[1]) endif endif endfunc Now my sould can have its rest Im tired now Realy tired. Goodnight
-
Hey No problem. U dont got to thank me I think i got it know.
-
Working on it rightnow:P BRB... 10 min max :/ Oh shit That was hard Im trying to figure out how im gonna do the math
-
Omg! U created a monster ! xD J/K But its cool... You just have to make it more Ai... If i say how are you? Its sais I am bad. What about you. Then i answers: I am hungry. Its sais that it didnt understand me But, i couldnt have made it anny better myself.
-
How do u mean? What ui windows? Do u mean everything except the window for ur script or like the desktop?
-
Is there annyway of doing this with the sqllite.au3 udf?