Sign in to follow this  
Followers 0
FuZi0h

What's wrong?

11 posts in this topic

Hi all,

can anyone see whats wrong in this code?

#region;Hotkeys
HotKeySet("pgdn", "Hide")
HotKeySet("pgup", "Unhide")
#endregion


#region;Gui'en
GUICreate("Hvilket Window?",200,200)
GUISetState()
Opt("wintitlematchmode", 2)
$Window=GUICtrlCreateInput("",0,75,155,25)
$Hvilket=GUICtrlCreateLabel("Hvilket vindue skal hides?",0,50)
$Credit = GUICtrlCreateLabel("Created by Mathias Blohm",0,180)
$go = GUICtrlCreateButton("Go!",155,72,30,30)
while 1
    
    $msg = GUIGetMsg()
    
    Select
    case $msg=$GUI_EVENT_CLOSE
        Exit
    Case $msg = $go
        Sleep(2500)
        Send("pgdn") 
        sleep(1000)
        exit
    EndSelect
WEnd
#endregion
 #region;Funcs
 
 Func Hide() 
     WinSetState($Window,"",@SW_HIDE)
 EndFunc
 
 Func Unhide()
     WinSetState($Window,"",@SW_SHOW)
 EndFunc
 #endregion

[~FuZi0h~]ScriptRipping? = ┴¬┴¬┴┴¬ (My word for sucks.)'FuZi0h, Liope and Rambo3889 4-EvaHelp me by pressin This!all clicks appreciated :)

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

#region;Hotkeys
HotKeySet("{pgdn}", "Hide")
HotKeySet("{pgup}", "Unhide")
#endregion


#region;Gui'en
GUICreate("Hvilket Window?",200,200)
GUISetState()
Opt("wintitlematchmode", 2)
$Window=GUICtrlCreateInput("",0,75,155,25)
$Hvilket=GUICtrlCreateLabel("Hvilket vindue skal hides?",0,50)
$Credit = GUICtrlCreateLabel("Created by Mathias Blohm",0,180)
$go = GUICtrlCreateButton("Go!",155,72,30,30)
while 1
    
    $msg = GUIGetMsg()
    
    Select
    case $msg=$GUI_EVENT_CLOSE
        Exit
    Case $msg = $go
        Sleep(2500)
        Send("{pgdn}")
        sleep(1000)
        exit
    EndSelect
WEnd
#endregion
#region;Funcs

Func Hide()
     WinSetState($Window,"",@SW_HIDE)
EndFunc

Func Unhide()
     WinSetState($Window,"",@SW_SHOW)
EndFunc
#endregion

that should do it..

Edited by Liope

Share this post


Link to post
Share on other sites

cant tell the difference?


[~FuZi0h~]ScriptRipping? = ┴¬┴¬┴┴¬ (My word for sucks.)'FuZi0h, Liope and Rambo3889 4-EvaHelp me by pressin This!all clicks appreciated :)

Share this post


Link to post
Share on other sites

cant tell the difference?

this was yours hotkeys

#region;Hotkeys
HotKeySet("pgdn", "Hide")
HotKeySet("pgup", "Unhide")
#endregion

this is mine

#region;Hotkeys
HotKeySet("{pgdn}", "Hide")
HotKeySet("{pgup}", "Unhide")
#endregion

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Nope, that aint it.. :lmao:

Edited by FuZi0h

[~FuZi0h~]ScriptRipping? = ┴¬┴¬┴┴¬ (My word for sucks.)'FuZi0h, Liope and Rambo3889 4-EvaHelp me by pressin This!all clicks appreciated :)

Share this post


Link to post
Share on other sites

aye

Now you are talking Scottish. :lmao:


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

Now you are talking Scottish. ;)

:lmao:

[~FuZi0h~]ScriptRipping? = ┴¬┴¬┴┴¬ (My word for sucks.)'FuZi0h, Liope and Rambo3889 4-EvaHelp me by pressin This!all clicks appreciated :)

Share this post


Link to post
Share on other sites

#include <GuiConstants.au3>
#region;Hotkeys
HotKeySet("{pgdn}", "Hide")
HotKeySet("{pgup}", "Unhide")
#endregion


#region;Gui'en
GUICreate("Hvilket Window?",200,200)
GUISetState()
Opt("wintitlematchmode", 2)
$Window=GUICtrlCreateInput("",0,75,155,25)
$Hvilket=GUICtrlCreateLabel("Hvilket vindue skal hides?",0,50)
$Credit = GUICtrlCreateLabel("Created by Mathias Blohm",0,180)
$go = GUICtrlCreateButton("Go!",155,72,30,30)
while 1
    
    $msg = GUIGetMsg()
    
    Select
    case $msg =$GUI_EVENT_CLOSE
        Exit
    Case $msg = $go
        Sleep(2500)
        Send("{pgdn}")
        sleep(1000)
        exit
    EndSelect
WEnd
#endregion
#region;Funcs

Func Hide()
     WinSetState($Window,"",@SW_HIDE)
EndFunc

Func Unhide()
     WinSetState($Window,"",@SW_SHOW)
EndFunc
#endregion

this worked you need to add guiconstants.au3 else it doesnt know Gui_Event_Close

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

this worked you need to add guiconstants.au3 else it doesnt know Gui_Event_Close

Do'h! cant belive i forgot that.. :lmao: Edited by FuZi0h

[~FuZi0h~]ScriptRipping? = ┴¬┴¬┴┴¬ (My word for sucks.)'FuZi0h, Liope and Rambo3889 4-EvaHelp me by pressin This!all clicks appreciated :)

Share this post


Link to post
Share on other sites

Do'h! cant belive i forgot that.. :lmao:

lmao ;)

Share this post


Link to post
Share on other sites

though i didnt just forgot to get it inhere..

still not workin.


[~FuZi0h~]ScriptRipping? = ┴¬┴¬┴┴¬ (My word for sucks.)'FuZi0h, Liope and Rambo3889 4-EvaHelp me by pressin This!all clicks appreciated :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0