Jump to content

Recommended Posts

Posted

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.

MCR.jpg?t=1286371579

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

  • Moderators
Posted

Damein,

Works fine for me! ;)

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:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Posted (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 by Damein

MCR.jpg?t=1286371579

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

Posted (edited)

Works fine for me! ;)

Same here. ;)

EDIT: Didn't saw Damein's edit. :)

Edited 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.

  • Moderators
Posted

Damein,

$Count1 += 1

Look in the Help file under <Language Reference - Operators>. ;)

maybe I'm using the help file wrong

Just 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

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:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

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
×
×
  • Create New...