Jump to content

Recommended Posts

Posted

Hi. I want to make a hotkeyset that can hide/show a windows using the same hotkey.

I have quite some problems with it, i can get it to hide, but not to show again, (in this case SHIFT+2)

this is the code im having problems with :

  Quote

Func hide()

$STATE = WinGetState("Runescape", "")

If BitAND($STATE, @sw_show) Then

WinSetState("test", "", @SW_hide)

Else

EndIf

$1 = WinGetState("Runescape", "")

If BitAND($1, @sw_hide) then

WinSetState("test", "", @SW_SHOW)

Else

EndIf

EndFunc

  Quote

HotKeySet("+{2}", "hide")

While 1

sleep(1000)

WEnd

Func hide()

$STATE = WinGetState("Runescape", "")

If BitAND($STATE, @sw_show) Then

WinSetState("test", "", @SW_hide)

Else

EndIf

$1 = WinGetState("Runescape", "")

If BitAND($1, @sw_hide) then

WinSetState("test", "", @SW_SHOW)

Else

EndIf

EndFunc

  • Moderators
Posted

spymare,

  Quote

Runescape

Read this!

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...