Damein Posted October 4, 2010 Share Posted October 4, 2010 I guess I'm doing something wrong.. but I've gotten the hotkeys to work before and the GUI.. but combining them seems to be different. #include <GUIConstantsEx.au3> HotKeySet("`", "ShowGUI") While 1 Sleep(10) WEnd Func ShowGUI() GUICreate("Hello World", 200, 100) GUICtrlCreateLabel("Hello world! How are you?", 30, 10) GUICtrlCreateButton("OK", 70, 50, 60) GUISetState(@SW_SHOW) Sleep(2000) EndFunc It's just a basic GUI from the help file, and if I take out the hotkey section it works, but with it I can't seem to get it to show up.. I did a search on forums but after searching for GUI Show with Hotkey and looking through several pages of GUI help I didn't see anything. Most recent sig. I made Quick Launcher W/ Profiles Topic Movie Database Topic & Website | LiveStreamer Pro Website | YouTube Stand-Alone Playlist Manager: Topic | Weather Desktop Widget: Topic | Flash Memory Game: Topic | Volume Control With Mouse / iTunes Hotkeys: Topic | Weather program: Topic | Paws & Tales radio drama podcast mini-player: Topic | Quick Math Calculations: Topic Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 4, 2010 Moderators Share Posted October 4, 2010 Damein, Works fine for me! 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 Link to comment Share on other sites More sharing options...
Damein Posted October 4, 2010 Author Share Posted October 4, 2010 (edited) jisdfouisdhfuidf! That doesn't help me at all then! Lol, how could it work for you and not for me..? * EDIT * I just opened a new document, pasted it and tried it and it works now.. Maybe something got corrupted on the other file? Odd.. I compared the two documents and both are identical, lol. Anyways, quick question: How do I add +1 to a var? HotKeySet("1", "Login") While 1 Sleep(10) WEnd Func Login() $Count1 = 0 MsgBox(0, "Test", $Count1) Do $Count1 = +1 MsgBox(0, "Test", $Count1) Until $Count1 = 3 EndFunc I need it to count up each time, but I can't seem to find a reference in the help file for this either.. maybe I'm using the help file wrong? lol :/ Edited October 4, 2010 by Damein Most recent sig. I made Quick Launcher W/ Profiles Topic Movie Database Topic & Website | LiveStreamer Pro Website | YouTube Stand-Alone Playlist Manager: Topic | Weather Desktop Widget: Topic | Flash Memory Game: Topic | Volume Control With Mouse / iTunes Hotkeys: Topic | Weather program: Topic | Paws & Tales radio drama podcast mini-player: Topic | Quick Math Calculations: Topic Link to comment Share on other sites More sharing options...
AlmarM Posted October 4, 2010 Share Posted October 4, 2010 (edited) Works fine for me! Same here. EDIT: Didn't saw Damein's edit. Edited October 4, 2010 by AlmarM Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 4, 2010 Moderators Share Posted October 4, 2010 Damein, $Count1 += 1 Look in the Help file under <Language Reference - Operators>. maybe I'm using the help file wrongJust slow down a bit. Read the initial chapters of the Help file carefully before posting here - the answer to basic questions like the ones you have posted so far are usually found in there somewhere! Did you try the tutorials I linked to in your other topic? That will give you a good grounding in the basics of AutoIt. 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now