Jump to content

Raskus

Members
  • Posts

    9
  • Joined

  • Last visited

Raskus's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Not getting into a flame war. My problem was solved, thank you again monoscout. No thanks to the people bumping with no intention of providing help in a HELP FORUM.
  2. Thank you so much! That's exactly what I needed.
  3. It's for an interactive GUI I'm working on. Basically I have the cosmetic part finished. I have the Main GUI window with two buttons each which I would like to open their respective boxes that have labels on them. They also have buttons to close them but I can't figure out how to get buttons to work at all. I've looked around the forums, on youtube, even on sketchy hacking sites and haven't been able to get it to work.
  4. Instead of being rude why don't you state which rule was broken like a competent adult? I need help with a Button. This is the GUI section isn't it?
  5. I'm currently working on a GUI to automate software and I've run into an issue with buttons. I started coding in autoit last night so sorry if this is kind of silly, can someone take a look at my code and tell me what I'm doing wrong? I've looked around for tutorials and it took me about an hour and a half just to get this far. My entire GUI is all finished, all that's left is to get the buttons to work and I'm set. #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> Global $Sending, $Pause,$Button1,$Button2 $Pause = false $Form1_1 = GUICreate("WIZbot", 499, 380, 182, 120) $Pic1 = GUICtrlCreatePic(" ", 0, 0, 497, 377) $Main = GUICtrlCreateLabel("WIZbot", 80, 48, 136, 36) GUICtrlSetFont(-1, 32, 400, 0, "Terminal") GUICtrlSetColor(-1, 0x3399FF) GUICtrlSetBkColor(-1, 0xFFFFFF) $Button1 = GUICtrlCreateButton("Requirements", 88, 104, 145, 49) $Button2 = GUICtrlCreateButton("Instructions", 88, 184, 145, 57) $Label1 = GUICtrlCreateLabel("Credits:", 96, 280, 36, 17) GUICtrlSetColor(-1, 0x000000) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) $Label2 = GUICtrlCreateLabel("Raskoosh", 96, 304, 52, 17) GUICtrlSetColor(-1, 0x00FFFF) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) $Label3 = GUICtrlCreateLabel("Danbrisco", 96, 328, 57, 21) GUICtrlSetColor(-1, 0xFF00FF) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $Msg = GUIGetMsg() If $Msg=-3 Then Exit If $Msg=$Button1 Then Button1() If $Msg=$Button2 Then Button2() WEnd ;Button1 Func Button1() GUICreate("WIZbot Instructions", 300, 242, 330, 185) GUISetBkColor(0x000000) ;First Label GUICtrlCreateLabel("Instructions", 88, 0, 124, 21) GUICtrlSetFont(-1, 12, 400, 0, "OCR A Extended") GUICtrlSetColor(-1, 0xFF00FF) ;Second Label GUICtrlCreateLabel("", 40, 24, 165, 17) GUICtrlSetColor(-1, 0xFF00FF) ;Third Label GUICtrlCreateLabel("", 40, 48, 193, 17) GUICtrlSetColor(-1, 0xFF00FF) ;Fourth Label GUICtrlCreateLabel("", 40, 72, 195, 17) GUICtrlSetColor(-1, 0xFF00FF) ;Fifth Label GUICtrlCreateLabel("", 40, 96, 117, 17) GUICtrlSetColor(-1, 0xFF00FF) ;Sixth Label GUICtrlCreateLabel("", 40, 152, 127, 17) GUICtrlSetColor(-1, 0xFF00FF) ;Seventh Label GUICtrlCreateLabel("", 40, 168, 243, 17) GUICtrlSetColor(-1, 0xFF00FF) ;Eight Label GUICtrlCreateLabel("", 40, 184, 123, 17) GUICtrlSetColor(-1, 0xFF00FF) ;Ninth Label GUICtrlCreateLabel("", 104, 120, 84, 21) GUICtrlSetFont(-1, 12, 400, 0, "OCR A Extended") GUICtrlSetColor(-1, 0xFF00FF) ;Close Button GUICtrlCreateButton("Close", 80, 208, 105, 25) GUICtrlSetFont(-1, 12, 400, 0, "OCR A Extended") GUICtrlSetColor(-1, 0xFF00FF) GUICtrlSetBkColor(-1, 0x00FFFF) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### EndFunc While 1 $Msg = GUIGetMsg() Switch $Msg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd
  6. Yeah guys, controlclick seems to be the issue. It's just not clicking the window, inactive or active. Thanks for the help though, I learned a few things thanks to you.
  7. Eh, It gives mouse coords in relation to the desktop, not the active window. This really is a pain, you'd think it would be such a simple thing to find out xD.
  8. Thanks so much guys. I'll check it out.
  9. I'm currently trying to automate a simple browsing program that will continually skip through images on a site in the background while I'm doing other things on my computer. I know there are simpler alternatives like Tab + Enter to skip to the next image but something that really irked me was getting controlclick to work properly. I've searched up and down and can't find a straight forward way to get coordinates(static) within a window. I want to be able to move the window around,minimize it possibly, etc. Are there any simple scripts or commands for getting window coordinates?
×
×
  • Create New...