Sign in to follow this  
Followers 0
BobiusMaximus

'Macro' Program?

8 posts in this topic

Well, I've been trying to make a macro program so when I push a button fro F9-F12 it will type something.

This is the code I got so far:

#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Bobs Macro Program", 342, 264, 226, 149)
$F9 = GUICtrlCreateTab(16, 32, 297, 193)
GUICtrlCreateTabItem("F9")
$F10 = GUICtrlCreateTab(16, 32, 297, 193)
GUICtrlCreateTabItem("F10")
$F11 = GUICtrlCreateTab(16, 32, 297, 193)
GUICtrlCreateTabItem("F11")
$F12 = GUICtrlCreateTab(16, 32, 297, 193)
GUICtrlCreateTabItem("F12")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd
oÝ÷ Øz0z÷«!ƧßÛ_«z­-¡£è§¦ëlÂ+aém^)Þ°ëaz)éºÛ,µ¬¨æÖ"ØbKayÊyú+¶rÛǶ*'Â)em殶­sevÆR¢b33c¶×6rÒuTvWD×6r¢bb33c¶×6rÒ´cÒFVâ6VæBçWBb33c´cçWB¢bb33c¶×6rÒ´cÒFVâ6VæBçWBb33c´cçWB¢bb33c¶×6rÒ´cÒFVâ6VæBçWBb33c´cçWB¢bb33c¶×6rÒ´c'ÒFVâ6VæBçWBb33c´c$çWB¥tVæ@

So, quite a lot of help needed here ;)

-Bob


Photoshop User and Noob AutoIt user.

Share this post


Link to post
Share on other sites



I helps when posted in the correct forum ... *moved*

Sorry, I thought it would go in the GUI one because the Tabs and Input thing are GUI related.

-Bob


Photoshop User and Noob AutoIt user.

Share this post


Link to post
Share on other sites

Look at _IsPressed() Or HotKeySet() In the helpfile ;)


# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
Share on other sites

Look at _IsPressed() Or HotKeySet() In the helpfile :lmao:

Um...I don't really get any of that at all ;)

-Bob


Photoshop User and Noob AutoIt user.

Share this post


Link to post
Share on other sites

#include <GUIConstants.au3>

HotKeySet("{F9}","F9")
HotKeySet("{F10}","F10")
HotKeySet("{F11}","F11")

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Bobs Macro Program", 342, 264, 226, 149)
GUICtrlCreateTab(16, 32, 297, 193)
$F9 = GUICtrlCreateTabItem("F9")
$F10 = GUICtrlCreateTabItem("F10")
$F11 = GUICtrlCreateTabItem("F11")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
    EndSwitch
WEnd

Func F9()
    GUICtrlSetState($F9, $GUI_SHOW)
EndFunc

Func F10()
    GUICtrlSetState($F10, $GUI_SHOW)
EndFunc

Func F11()
    GUICtrlSetState($F11, $GUI_SHOW)
EndFunc

Something like this? ;)

Neo


[center][font="Arial"]--- The Neo and Only --- [/font][font="Arial"]--Projects---[/font]Image to Text converterText to ASCII converter[/center]

Share this post


Link to post
Share on other sites

#include <GUIConstants.au3>

HotKeySet("{F9}","F9")
HotKeySet("{F10}","F10")
HotKeySet("{F11}","F11")

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Bobs Macro Program", 342, 264, 226, 149)
GUICtrlCreateTab(16, 32, 297, 193)
$F9 = GUICtrlCreateTabItem("F9")
$F10 = GUICtrlCreateTabItem("F10")
$F11 = GUICtrlCreateTabItem("F11")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
    EndSwitch
WEnd

Func F9()
    GUICtrlSetState($F9, $GUI_SHOW)
EndFunc

Func F10()
    GUICtrlSetState($F10, $GUI_SHOW)
EndFunc

Func F11()
    GUICtrlSetState($F11, $GUI_SHOW)
EndFunc

Something like this? ;)

Neo

Um, kinda like that, but that still doesn't type anything, though I think I understand the hotkey thing :lmao:

-Bob


Photoshop User and Noob AutoIt user.

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