spymare Posted February 2, 2011 Posted February 2, 2011 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 :Func hide()$STATE = WinGetState("Runescape", "")If BitAND($STATE, @sw_show) ThenWinSetState("test", "", @SW_hide)ElseEndIf$1 = WinGetState("Runescape", "")If BitAND($1, @sw_hide) thenWinSetState("test", "", @SW_SHOW)ElseEndIfEndFuncHotKeySet("+{2}", "hide")While 1sleep(1000)WEndFunc hide()$STATE = WinGetState("Runescape", "")If BitAND($STATE, @sw_show) ThenWinSetState("test", "", @SW_hide)ElseEndIf$1 = WinGetState("Runescape", "")If BitAND($1, @sw_hide) thenWinSetState("test", "", @SW_SHOW)ElseEndIfEndFunc
Moderators Melba23 Posted February 2, 2011 Moderators Posted February 2, 2011 spymare,RunescapeRead this!M23 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: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
spymare Posted February 3, 2011 Author Posted February 3, 2011 1. It's not a bot. 2.doesn't matter whT the title is....
spymare Posted February 3, 2011 Author Posted February 3, 2011 1. It's not a bot. 2.doesn't matter whT the title is....
spymare Posted February 3, 2011 Author Posted February 3, 2011 1. It's not a bot. 2.doesn't matter whT the title is....
Developers Jos Posted February 3, 2011 Developers Posted February 3, 2011 I believe you are repeating yourself and its not convincing. *click* SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Recommended Posts