Jump to content

'Macro' Program?


 Share

Recommended Posts

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.
Link to comment
Share on other sites

  • Developers

So, quite a lot of help needed here ;)

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

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.
  :)

Link to comment
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]

Link to comment
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.
Link to comment
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
 Share

  • Recently Browsing   0 members

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