
infernothebest
Active Members-
Posts
129 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
infernothebest's Achievements

Adventurer (3/7)
0
Reputation
-
eeey:D cool program, is it possible that you send me the source?
-
please help me to understand GUI
infernothebest replied to microbious's topic in AutoIt General Help and Support
This is the only thing you need to know, this starts a gui. first you need to create a gui GUICreate("My GUI") then it need to know what state minimized normal etc GUISetState(@SW_SHOW) then you got the loop where gui commands can be placed While 1 $GUI= GUIGetMsg() If $GUI = $GUI_EVENT_CLOSE Then ExitLoop WEnd this var $GUI is just na name jou can call it everything link $dfdsfdsfds aslong you use a $ before the name, we use it to gather information, in this case GUIGetMsg() if gui got a message like a button or a click then you can gather information from that #include <GUIConstantsEx.au3> GUICreate("My GUI") GUISetState(@SW_SHOW) While 1 $GUI= GUIGetMsg() If $GUI = $GUI_EVENT_CLOSE Then ExitLoop WEnd -
Most efficient way to code this?
infernothebest replied to adroitful's topic in AutoIt General Help and Support
try use controlclick , then you dont have to search for a field where to enter a username or password etc -
not all autoit commands work in windows vista
-
Infinite Loop CPU Usage
infernothebest replied to chaswigger's topic in AutoIt General Help and Support
try use winwaitactive then you don't need a loop -
does anyone have a idea to change the volume in windows 7?
-
thx i was looking for this i let you know if it has problems ..
-
Apple keybord shortcuts for XP
infernothebest replied to infernothebest's topic in AutoIt Example Scripts
oke, does anyone know a fix for use ingame? because if i start css and play andd press a shortcut key css will mimize. Is there a way to view this ingame and not minize -
Apple keybord shortcuts for XP
infernothebest replied to infernothebest's topic in AutoIt Example Scripts
tidy? -
yes
-
If you got this Apple keyboard, then you don't need to install Apple bootcamp software or any other drivers any more. this utility simulates apple shortcuts V1 ;Apple keybord F-keys For XP #include <Misc.au3> #Include <Constants.au3> #include <WindowsConstants.au3> #include <audio.au3> HotKeySet("{F7}","F7") HotKeySet("{F8}","F8") HotKeySet("{F9}","F9") HotKeySet("{F10}","F10") HotKeySet("{F11}","F11") while 1;klaar sleep(1) if _IsPressed("7B", DllOpen("user32.dll")) Then GUIDelete () Send("{VOLUME_UP}") sleep(250) $hwnd = GUICreate("Text Region", 390, 30, @DesktopWidth-390, @DesktopHeight-70, $WS_POPUP, BitOR($WS_EX_TOPMOST,$WS_EX_TOOLWINDOW)) GUISetBkColor(0x00FF00);Groen $rgn = CreateTextRgn($hwnd,"Volume +",35,"Arial",10) SetWindowRgn($hwnd,$rgn) GUISetState() Sleep(500) GUIDelete () EndIf WEnd Func F7();Klaar Send("{MEDIA_PREV}") GUIDelete () $hwnd = GUICreate("Text Region", 390, 30, @DesktopWidth-390, @DesktopHeight-70, $WS_POPUP, BitOR($WS_EX_TOPMOST,$WS_EX_TOOLWINDOW)) GUISetBkColor(0xFF0000) ; text color rood $rgn = CreateTextRgn($hwnd,"Previous Song",35,"Arial",10) SetWindowRgn($hwnd,$rgn) GUISetState() Sleep(500) GUIDelete () EndFunc Func F8() Send("{MEDIA_PLAY_PAUSE}") GUIDelete () $hwnd = GUICreate("Text Region", 390, 30, @DesktopWidth-390, @DesktopHeight-70, $WS_POPUP, BitOR($WS_EX_TOPMOST,$WS_EX_TOOLWINDOW)) GUISetBkColor(0x00FF00);Groen/Rood $rgn = CreateTextRgn($hwnd,"Play/Stop",35,"Arial",10) SetWindowRgn($hwnd,$rgn) GUISetState() Sleep(500) GUIDelete () EndFunc Func F9() Send("{MEDIA_NEXT}") GUIDelete () $hwnd = GUICreate("Text Region", 390, 30, @DesktopWidth-390, @DesktopHeight-70, $WS_POPUP, BitOR($WS_EX_TOPMOST,$WS_EX_TOOLWINDOW)) GUISetBkColor(0x00FF00);Groen 0x00FF00 $rgn = CreateTextRgn($hwnd,"Next Song",35,"Arial",10) SetWindowRgn($hwnd,$rgn) GUISetState() Sleep(500) GUIDelete () EndFunc Func F10() Send("{VOLUME_MUTE}") GUIDelete () if _Ismute() = 1 Then $hwnd = GUICreate("Text Region", 390, 30, @DesktopWidth-390, @DesktopHeight-70, $WS_POPUP, BitOR($WS_EX_TOPMOST,$WS_EX_TOOLWINDOW)) GUISetBkColor(0xFF0000);Rood $rgn = CreateTextRgn($hwnd,"Volume MUTE",35,"Arial",10) SetWindowRgn($hwnd,$rgn) GUISetState() Sleep(500) GUIDelete () Else $hwnd = GUICreate("Text Region", 390, 30, @DesktopWidth-390, @DesktopHeight-70, $WS_POPUP, BitOR($WS_EX_TOPMOST,$WS_EX_TOOLWINDOW)) GUISetBkColor(0x00FF00);Groen $rgn = CreateTextRgn($hwnd,"Volume MUTE",35,"Arial",10) SetWindowRgn($hwnd,$rgn) GUISetState() Sleep(500) GUIDelete () EndIf EndFunc Func F11();Klaar Send("{VOLUME_DOWN}") GUIDelete () $hwnd = GUICreate("Text Region", 390, 30, @DesktopWidth-390, @DesktopHeight-70, $WS_POPUP, BitOR($WS_EX_TOPMOST,$WS_EX_TOOLWINDOW)) GUISetBkColor(0xFF0000) ; text color rood $rgn = CreateTextRgn($hwnd,"Volume -",35,"Arial",10) SetWindowRgn($hwnd,$rgn) GUISetState() Sleep(500) GUIDelete () EndFunc Func SetWindowRgn($h_win, $rgn) DllCall("user32.dll", "long", "SetWindowRgn", "hwnd", $h_win, "long", $rgn, "int", 1) EndFunc Func CreateTextRgn(ByRef $CTR_hwnd,$CTR_Text,$CTR_height,$CTR_font="Microsoft Sans Serif",$CTR_weight=1000) Local Const $ANSI_CHARSET = 0 Local Const $OUT_CHARACTER_PRECIS = 2 Local Const $CLIP_DEFAULT_PRECIS = 0 Local Const $PROOF_QUALITY = 2 Local Const $FIXED_PITCH = 1 Local Const $RGN_XOR = 3 If $CTR_font = "" Then $CTR_font = "Microsoft Sans Serif" If $CTR_weight = -1 Then $CTR_weight = 1000 Local $gdi_dll = DLLOpen("gdi32.dll") Local $CTR_hDC= DLLCall("user32.dll","int","GetDC","hwnd",$CTR_hwnd) Local $CTR_hMyFont = DLLCall($gdi_dll,"hwnd","CreateFont","int",$CTR_height,"int",0,"int",0,"int",0, _ "int",$CTR_weight,"int",0,"int",0,"int",0,"int",$ANSI_CHARSET,"int",$OUT_CHARACTER_PRECIS, _ "int",$CLIP_DEFAULT_PRECIS,"int",$PROOF_QUALITY,"int",$FIXED_PITCH,"str",$CTR_font ) Local $CTR_hOldFont = DLLCall($gdi_dll,"hwnd","SelectObject","int",$CTR_hDC[0],"hwnd",$CTR_hMyFont[0]) DLLCall($gdi_dll,"int","BeginPath","int",$CTR_hDC[0]) DLLCall($gdi_dll,"int","TextOut","int",$CTR_hDC[0],"int",0,"int",0,"str",$CTR_Text,"int",StringLen($CTR_Text)) DLLCall($gdi_dll,"int","EndPath","int",$CTR_hDC[0]) Local $CTR_hRgn1 = DLLCall($gdi_dll,"hwnd","PathToRegion","int",$CTR_hDC[0]) Local $CTR_rc = DLLStructCreate("int;int;int;int") DLLCall($gdi_dll,"int","GetRgnBox","hwnd",$CTR_hRgn1[0],"ptr",DllStructGetPtr($CTR_rc)) Local $CTR_hRgn2 = DLLCall($gdi_dll,"hwnd","CreateRectRgnIndirect","ptr",DllStructGetPtr($CTR_rc)) DLLCall($gdi_dll,"int","CombineRgn","hwnd",$CTR_hRgn2[0],"hwnd",$CTR_hRgn2[0],"hwnd",$CTR_hRgn1[0],"int",$RGN_XOR) DLLCall($gdi_dll,"int","DeleteObject","hwnd",$CTR_hRgn1[0]) DLLCall("user32.dll","int","ReleaseDC","hwnd",$CTR_hwnd,"int",$CTR_hDC[0]) DLLCall($gdi_dll,"int","SelectObject","int",$CTR_hDC[0],"hwnd",$CTR_hOldFont[0]) DLLClose($gdi_dll) Return $CTR_hRgn2[0] EndFuncaudio.au3
-
is pause or play music?
infernothebest replied to infernothebest's topic in AutoIt General Help and Support
yes i saw that one the problem is you cant use it because i use a playlist from windows media player -
is there a way to see if the current playing mp3 music is paused or playing?
-
write text on screen
infernothebest replied to infernothebest's topic in AutoIt General Help and Support
thx for replying this is my answer thank you -
i know there whas a script for it that you could write letters on the screen without gui or ary etc