Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 22:26

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Input als Hotkey aber wie?

Discussion on Input als Hotkey aber wie? within the AutoIt forum part of the Coders Den category.

Reply
 
Old 06/28/2009, 00:04   #16
 
elite*gold: 20
Join Date: Jan 2009
Posts: 826
Received Thanks: 75
add mich mal in icq bitte nummer hab ich glaub angegeben ...
Freakyx3 is offline  
Old 06/28/2009, 00:15   #17

 
Adroxxx's Avatar
 
elite*gold: 15
Join Date: Nov 2005
Posts: 13,021
Received Thanks: 5,323
Quote:
Originally Posted by AllesVergeben View Post
Da steht, wie man mit Hotkeys umgeht und wie man normale macht.

ICH will aber wissen, wie man eine Inputbo als Hotkey benutzt.
Ja da brauchst du doch nur etwas nachdanken und solltest drauf kommen.
Ist genauso als würdest du sagen, ich weiß wie man einen wert in eine variable schreibt, aber ich weiß nicht wie man zwei variablen addiert.

Deswegen meinte ich auch, les dir am besten nochmal die grundlagen tutorials durch.

PHP Code:
$read Guictrlread($input6)
Hotkeyset ($read"_SendeText" )
    
    
Func _SendeText()
    
$check1 GuiCtrlRead($Checkbox2)
    
$check2 GuiCtrlRead($Checkbox1)
    
$read1 Guictrlread($input1)
   If 
$check1 1 Then
        
If $check2 1 Then
            Send 
("{Enter}")
            
Send ($input1)
            
Send ("{Enter}")
            
Send ("{Enter}")
        Else
        
Send ($read1)
        EndIf
    EndIf
EndFunc 
Du musst auch schon sagen, was da nicht genau funktioniert.
Adroxxx is offline  
Old 06/28/2009, 23:48   #18
 
marcopolo1990's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,632
Received Thanks: 8,492
Quote:
Originally Posted by °Remus° View Post
Code:
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 164, 40, 662, 535)
$Input1 = GUICtrlCreateInput("{F5}", 8, 8, 141, 21)
GUISetState(@SW_SHOW)

HotKeySet(GUICtrlRead($input1),"Start")

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

func start()
	MsgBox(0,"test",GUICtrlRead($input1))
EndFunc
funzt perfekt
du meinst funzt nur einmal xD oder?

villeicht meint er ja auch eine stink normale inputbox statt eine controlinpubox

Code:
global $Hotkey = Inputbox ( "Inputbox" , "Type Hotkey here" )
hotkeyset ( $Hotkey , "_start" )

While (1)
Sleep (100)
if $Hotkey = "" then 
exit
endif
Wend

Func _start()
msgbox ( 0 , "MSGBox" , "works fine whit hotkey: " & $Hotkey )
endfunc
marcopolo1990 is offline  
Thanks
1 User
Old 06/29/2009, 14:51   #19
 
Knochenfabrikant's Avatar
 
elite*gold: 13
Join Date: Apr 2008
Posts: 4,278
Received Thanks: 573
Ich machs immer so:
Code:
$out1=GuiCtrlRead($input6)
Hotkeyset("{"&$input6&"}",start)
Dann muss man nur z.B: F5 in die Inputbox eingeben statt {F5}.
Knochenfabrikant is offline  
Old 07/01/2009, 10:50   #20
 
SCORNI's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 970
Received Thanks: 227
manchmal versteh ich die welt nicht mehr das ist doch sehr simpel

PHP Code:

#include <GUIConstantsEx.au3>






GUICreate("Fuer allesvergeben so macht man das"500300300300)
GUISetState(@SW_SHOW)
$hotkey GUICtrlCreateInput "{Hotkey}" ,104060,20)
while 
1
$a
=guictrlread ($hotkey)
hotkeyset ($a,"start")
sleep (1000)
wend
func start
()
msgbox (0,"","so macht man das")
endfunc 
So wer das immer noch nicht verstanden hatt dem kann ich auch nciht mehr helfen weil das das maximum an erklärungsmöglichkeiten ist. Ich hab´s selbst getestet und es klappt einwand frei. Verändert nix am code weil es dann nicht klappt und ihr dann wieder rumheult das es nicht klappt.
*jetzt mal bischen abchilln*
Wem ich geholfen hab der soll mir doch bitte mal ein thx geben. War es denn so schwer ???

MfG SCORNI
SCORNI is offline  
Old 07/01/2009, 11:10   #21
 
elite*gold: 20
Join Date: Feb 2007
Posts: 3,080
Received Thanks: 4,294
omg das hat dein vorredner bereits geschrieben, und dafür willste nen thx?
kknb is offline  
Reply


Similar Threads Similar Threads
Need some advice/help/input/know-how
11/28/2009 - Aion - 3 Replies
Seeing my acc banned after using Aion SZ im looking for an alternative. Highest priorety is ofc not getting banned again, though i dont want to lose alot of functionality. From what I have read on ElitePvPers over the past months I think it all comes down to: MacroGoblin MMOGuider AionNinja Seeing how each of them gets good and bad props all over the place i'm really wondering what to get now -.- Moneywise i dont rly care, I just want to get the best product for my money and get...
Need some input please
07/10/2009 - Dekaron Private Server - 9 Replies
OKay guys i got my client packed but i only have 2 problems: The loading map screen for deathlands is white and blank. also the minimap is blank. At first my mobs were pink but i reinstalled the textures and it fixed it. I reinstallled the files from data/texture/minimap and the loading one in texture/ui/game/loading. Wondering if anyone else might have an idea EDIT:: Its all new maps but they worked fine in unpacked mode same textures and etc ...
Hilfe bei input
12/05/2008 - Guild Wars - 9 Replies
Hi, bin grad an etwas kleinem drann wo anfangs ein fenster mit inputbox erscheint(geht auch). Nun möchte ich, dass die zahl wo man in die inputbox eingibt die wiederholungszahl einer zugewiesenen Funktion angibt.. Input: $input = GUICtrlCreateInput("Die Zahl", 216, 56, 81, 21) Hier soll die zahl aus der inputbox hin: for $i = 1 to $input
GUI Run (input...)
05/12/2008 - Guild Wars - 30 Replies
Hallo, ich mal wieder mit ne Frage. Und zwar habe ich eine Func _path() erstellt welche die Aufgabe hat den user auf zu fordern den Pfad zum GuildWars verzeichniss an zu geben. Die func klappt auch ohne Probleme, aber ich möchte es halt so das wenn der User dann start drückt das GuildWars startet von dem Verzeichniss aus wo der User sein GuildWars Installiert hat. Die Func sieht so aus.... func _path() MsgBox ( 0, "GuildWars Path", "Befor the bot can do autologin you have to...
hi some input plz?
05/11/2007 - Conquer Online 2 - 0 Replies
i made billions of high lv troj and got used to it, now i played on a new serv and made a lv110 war in 2weeks. however, i am very not used to it cuz cant even ss/fb. i wasthinking of making a new char, or stick with this one rb at 120, or make it 130 130 rb to troj? btw lvling with a sword/blade and shield at lv120 + , would it affect my exp a lot compare to using club shield?



All times are GMT +2. The time now is 22:26.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.